aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2007-02-19 07:37:47 -0500
committerAvi Kivity <avi@qumranet.com>2007-03-04 04:12:41 -0500
commit0152527b76b72333121d5a1243f9e091b58d4580 (patch)
treed622f4f95998cca751507c21e1515798f2bd7fda /drivers/kvm
parentcd205625e9bf2090d9bd95848ef4b34ad3f1a8b3 (diff)
KVM: SVM: intercept SMI to handle it at host level
This patch changes the SVM code to intercept SMIs and handle it outside the guest. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/svm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 57aad502e078..5a200c0b4b48 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -486,6 +486,7 @@ static void init_vmcb(struct vmcb *vmcb)
486 486
487 control->intercept = (1ULL << INTERCEPT_INTR) | 487 control->intercept = (1ULL << INTERCEPT_INTR) |
488 (1ULL << INTERCEPT_NMI) | 488 (1ULL << INTERCEPT_NMI) |
489 (1ULL << INTERCEPT_SMI) |
489 /* 490 /*
490 * selective cr0 intercept bug? 491 * selective cr0 intercept bug?
491 * 0: 0f 22 d8 mov %eax,%cr3 492 * 0: 0f 22 d8 mov %eax,%cr3