KVM: VMX: Cache cpl
authorAvi Kivity <avi@redhat.com>
Mon, 7 Mar 2011 13:26:44 +0000 (15:26 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:56:54 +0000 (07:56 -0400)
commit69c730289011df706a1c9890d6e6c5ee822623c7
tree773398749dde9980fb12c13c016ca9b780673329
parentf4c63e5d5a356b652a3d984edbefca289176c40f
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c