Message ID | 20200630094516.22983-4-namit@vmware.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | x86: svm: fixes | expand |
diff --git a/x86/svm.c b/x86/svm.c index f35c063..0fcad8d 100644 --- a/x86/svm.c +++ b/x86/svm.c @@ -170,6 +170,7 @@ void vmcb_ident(struct vmcb *vmcb) if (npt_supported()) { ctrl->nested_ctl = 1; ctrl->nested_cr3 = (u64)pml4e; + ctrl->tlb_ctl = TLB_CONTROL_FLUSH_ALL_ASID; } }
Several svm tests change PTEs but do not flush the TLB. To avoid messing around or encountering new bugs in the future, flush the TLB on every test. Signed-off-by: Nadav Amit <namit@vmware.com> --- x86/svm.c | 1 + 1 file changed, 1 insertion(+)