projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c65a3
)
KVM: SVM: Check for asid != 0 on nested vmrun
author
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 2 Aug 2010 14:46:45 +0000
(16:46 +0200)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:50:32 +0000
(10:50 +0200)
This patch lets a nested vmrun fail if the L1 hypervisor
left the asid zero. This fixes the asid_zero unit test.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index a0e5c7e26104f77f473ab49b1b52c02d2c9f2354..af5b9ea51965d62b5a9ce82e5b8f38253492b0ae 100644
(file)
--- a/
arch/x86/kvm/svm.c
+++ b/
arch/x86/kvm/svm.c
@@
-2019,6
+2019,9
@@
static bool nested_vmcb_checks(struct vmcb *vmcb)
if ((vmcb->control.intercept & (1ULL << INTERCEPT_VMRUN)) == 0)
return false;
+ if (vmcb->control.asid == 0)
+ return false;
+
return true;
}