summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-03-07 15:26:44 +0200
committerAvi Kivity <avi@redhat.com>2011-05-11 07:56:54 -0400
commit69c730289011df706a1c9890d6e6c5ee822623c7 (patch)
tree773398749dde9980fb12c13c016ca9b780673329 /arch/x86/include/asm/kvm_host.h
parentf4c63e5d5a356b652a3d984edbefca289176c40f (diff)
downloadblackbird-op-linux-69c730289011df706a1c9890d6e6c5ee822623c7.tar.gz
blackbird-op-linux-69c730289011df706a1c9890d6e6c5ee822623c7.zip
KVM: VMX: Cache cpl
We may read the cpl quite often in the same vmexit (instruction privilege check, memory access checks for instruction and operands), so we gain a bit if we cache the value. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 5af426464954..35f81b110260 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -119,6 +119,7 @@ enum kvm_reg_ex {
VCPU_EXREG_PDPTR = NR_VCPU_REGS,
VCPU_EXREG_CR3,
VCPU_EXREG_RFLAGS,
+ VCPU_EXREG_CPL,
};
enum {
OpenPOWER on IntegriCloud