]> git.baikalelectronics.ru Git - kernel.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)
commit12625d191b9b6d7741d4b1da0d7977a8a9606a0e
treee983a3defbed2603a8f3a95f7200520cb532ce97
parentc37b34b238ce44a596f6b60bae0ae2f3e78c194d
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]