]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Explicitly reference the scratch reg in nested early checks
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Jan 2019 15:40:57 +0000 (07:40 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Feb 2019 12:12:19 +0000 (13:12 +0100)
commit0075ac437558af26ae6aa62424f2a6b2165f015f
treed79b646be4cfc4fa5152f507b3d4bbd87f6ef43e
parent592beed01388a1c57d4430fcc51f72bc9b6b25be
KVM: nVMX: Explicitly reference the scratch reg in nested early checks

Using %1 to reference RCX, i.e. the 'vmx' pointer', is obtuse and
fragile, e.g. it results in cryptic and infurating compile errors if the
output constraints are touched by anything more than a gentle breeze.

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