KVM: VMX: Access @flags as a 32-bit value in __vmx_vcpu_run()
authorSean Christopherson <seanjc@google.com>
Sat, 19 Nov 2022 00:37:47 +0000 (00:37 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:07:00 +0000 (10:07 -0800)
commit5a7a64779e7ad21f71824faee234b33654df57bb
tree9617426fc89e62d2d42864ae0c1ba3449eec0a1a
parent7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f
KVM: VMX: Access @flags as a 32-bit value in __vmx_vcpu_run()

Access @flags using 32-bit operands when saving and testing @flags for
VMX_RUN_VMRESUME, as using 8-bit operands is unnecessarily fragile due
to relying on VMX_RUN_VMRESUME being in bits 0-7.  The behavior of
treating @flags a single byte is a holdover from when the param was
"bool launched", i.e. is not deliberate.

Cc: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20221119003747.2615229-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmenter.S