]> 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)
commit63896731e743ba7c6cb2c26fdb82192ea29cef97
tree62d5c3c8e1cdc61ce5f78dac95ef02facae26046
parent1c265de113a678e17401b0fd4976e99395cd90f1
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