]> 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)
commit4a21d735e3f7db1ae6129b388a8714ae9635c02d
tree6fc460fc648a24b594fd104c6b022c63c2c4203c
parenta57228559d9de5b1ace0b99fcef1713e9ccad601
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