]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86: Explicitly #define the VCPU_REGS_* indices
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Jan 2019 15:41:09 +0000 (07:41 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Feb 2019 12:12:27 +0000 (13:12 +0100)
commit1561fcbc8e1663268bc69dc59b1c86aca4cf203d
tree8179e36a97f6aced19e1a495d68abf139aa1fa89
parentd55892049171872a8f1aba542aa0691efe3da52d
KVM: x86: Explicitly #define the VCPU_REGS_* indices

Declaring the VCPU_REGS_* as enums allows for more robust C code, but it
prevents using the values in assembly files.  Expliciting #define the
indices in an asm-friendly file to prepare for VMX moving its transition
code to a proper assembly file, but keep the enums for general usage.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h