]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use vcpu->arch.regs directly when saving/loading guest state
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Jan 2019 15:41:08 +0000 (07:41 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Feb 2019 12:12:26 +0000 (13:12 +0100)
commitc37b34b238ce44a596f6b60bae0ae2f3e78c194d
tree62d5c3c8e1cdc61ce5f78dac95ef02facae26046
parente7e6ee03bc9071b955e549de0bca853d2e1965c9
KVM: VMX: Use vcpu->arch.regs directly when saving/loading guest state

...now that all other references to struct vcpu_vmx have been removed.

Note that 'vmx' still needs to be passed into the asm blob in _ASM_ARG1
as it is consumed by vmx_update_host_rsp().  And similar to that code,
use _ASM_ARG2 in the assembly code to prepare for moving to proper asm,
while explicitly referencing the exact registers in the clobber list for
clarity in the short term and to avoid additional precompiler games.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c