]> asedeno.scripts.mit.edu Git - 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>
Wed, 20 Feb 2019 21:47:38 +0000 (22:47 +0100)
commit95c7b77d6e40a407ca5bd21d7ba2e1c28ad8e85a
treee983a3defbed2603a8f3a95f7200520cb532ce97
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
arch/x86/include/asm/kvm_vcpu_regs.h [new file with mode: 0644]