summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-08-02 15:33:33 +0200
committerAvi Kivity <avi@redhat.com>2010-08-02 17:43:50 +0300
commit927d37a9a2d7cc7d7d7623fd8de04262d6c74f87 (patch)
treeba2a985e9e95b72f7a5111ab6920e97b04d11502
parentb83d4fb84583ce2c7860584750d42183f7fef5c5 (diff)
test: Run tests with asid 1
This is correct since vmrun with asid 0 is not allowed. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--kvm/test/x86/svm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm/test/x86/svm.c b/kvm/test/x86/svm.c
index 628f3aa09..dd4a8da44 100644
--- a/kvm/test/x86/svm.c
+++ b/kvm/test/x86/svm.c
@@ -43,6 +43,7 @@ static void vmcb_ident(struct vmcb *vmcb)
vmcb_set_seg(&save->gdtr, 0, desc_table_ptr.base, desc_table_ptr.limit, 0);
sidt(&desc_table_ptr);
vmcb_set_seg(&save->idtr, 0, desc_table_ptr.base, desc_table_ptr.limit, 0);
+ ctrl->asid = 1;
save->cpl = 0;
save->efer = rdmsr(MSR_EFER);
save->cr4 = read_cr4();