KVM: VMX: Avoid exit when setting cr8 if the local apic is in the kernel
authorAvi Kivity <avi@qumranet.com>
Thu, 6 Dec 2007 14:32:45 +0000 (16:32 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:19 +0000 (17:53 +0200)
commite5314067f6a77688a3d36548e7618430ce4a6236
treea03623c7ae33403d7e4de0deeb581367bef67ae3
parente934c9c1c8742872a53efb84966d9c1d7b8c8e24
KVM: VMX: Avoid exit when setting cr8 if the local apic is in the kernel

With apic in userspace, we must exit to userspace after a cr8 write in order
to update the tpr.  But if the apic is in the kernel, the exit is unnecessary.

Noticed by Joerg Roedel.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c