From: Joerg Roedel <[email protected]>

This is correct since vmrun with asid 0 is not allowed.

Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>

diff --git a/kvm/test/x86/svm.c b/kvm/test/x86/svm.c
index 628f3aa..dd4a8da 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();
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to