Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177282882
D61226.1794078863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
738 B
Referenced Files
None
Subscribers
None
D61226.1794078863.diff
View Options
Index: sys/amd64/vmm/amd/svm.c
===================================================================
--- sys/amd64/vmm/amd/svm.c
+++ sys/amd64/vmm/amd/svm.c
@@ -1996,10 +1996,13 @@
if (vcpu->asid.gen != asid[cpu].gen) {
alloc_asid = true; /* (c) and (d) */
} else if (vcpu->eptgen != eptgen) {
- if (flush_by_asid())
- ctrl->tlb_ctrl = VMCB_TLB_FLUSH_GUEST; /* (b1) */
- else
- alloc_asid = true; /* (b2) */
+ /*
+ * flush-by-asid doesn't reliably evict cached NPT walk
+ * state for addresses with no prior translation (e.g.
+ * bhyve UEFI bootrom execute faults); force a new ASID
+ * instead, as in the asidgen-mismatch case above.
+ */
+ alloc_asid = true;
} else {
/*
* This is the common case (a).
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 7, 7:14 PM (1 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41533576
Default Alt Text
D61226.1794078863.diff (738 B)
Attached To
Mode
D61226: vmm/svm: force new ASID on eptgen-only invalidation when flush-by-asid is insufficient
Attached
Detach File
Event Timeline