]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: do not use KVM_X86_OP_OPTIONAL_RET0 for get_mt_mask
authorMaxim Levitsky <mlevitsk@redhat.com>
Fri, 18 Mar 2022 16:27:41 +0000 (12:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2022 13:28:25 +0000 (09:28 -0400)
commit24449ae33b306ab433a1b6c410c9384c3da885b6
tree6fc460fc648a24b594fd104c6b022c63c2c4203c
parentbf60868b783a84111b4a91684c2e804c0a9c37cc
KVM: x86: do not use KVM_X86_OP_OPTIONAL_RET0 for get_mt_mask

KVM_X86_OP_OPTIONAL_RET0 can only be used with 32-bit return values on 32-bit
systems, because unsigned long is only 32-bits wide there and 64-bit values
are returned in edx:eax.

Reported-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/kvm/svm/svm.c