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)
commitbf07be36cd881b50684aca8f76d4b407da6cb058
tree6fc460fc648a24b594fd104c6b022c63c2c4203c
parent873dd122172f8cce329113cfb0dfe3d2344d80c0
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