aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2007-04-23 10:17:21 -0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:31 -0400
commit7807fa6ca5af2e5660a0eb3cd90276ca0c5bdfc8 (patch)
tree8f97af3538acc40a6a72af29f31351d8f0f69296 /drivers/kvm/kvm.h
parent4c690a1e8667a84b61a6114a4ad293681f32cb11 (diff)
KVM: Lazy FPU support for SVM
Avoid saving and restoring the guest fpu state on every exit. This shaves ~100 cycles off the guest/host switch. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index d1a90c5d76ce..61ff085df7e6 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -63,6 +63,7 @@
63#define FX_BUF_SIZE (2 * FX_IMAGE_SIZE + FX_IMAGE_ALIGN) 63#define FX_BUF_SIZE (2 * FX_IMAGE_SIZE + FX_IMAGE_ALIGN)
64 64
65#define DE_VECTOR 0 65#define DE_VECTOR 0
66#define NM_VECTOR 7
66#define DF_VECTOR 8 67#define DF_VECTOR 8
67#define TS_VECTOR 10 68#define TS_VECTOR 10
68#define NP_VECTOR 11 69#define NP_VECTOR 11
@@ -301,6 +302,7 @@ struct kvm_vcpu {
301 char fx_buf[FX_BUF_SIZE]; 302 char fx_buf[FX_BUF_SIZE];
302 char *host_fx_image; 303 char *host_fx_image;
303 char *guest_fx_image; 304 char *guest_fx_image;
305 int fpu_active;
304 306
305 int mmio_needed; 307 int mmio_needed;
306 int mmio_read_completed; 308 int mmio_read_completed;