x86: KVM: Limit guest physical bits when 5-level EPT is unsupported
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 31 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86: KVM: Limit guest physical bits when 5-level EPT is unsupportedarch/ arch/ arch/ | +11 | 26 replies | |
| 2/2 | x86: KVM: Emulate instruction when GPA can't be translated by EPTarch/ | +7 | 5 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Yi Lai | Xudong Hao |
|---|---|---|
| 1/2 | T-b | T-b |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] x86: KVM: Limit guest physical bits when 5-level EPT is unsupported
When host doesn't support 5-level EPT, bits 51:48 of the guest physical address must all be zero, otherwise an EPT violation always occurs[1], and current handler can't resolve if the GPA is in RAM region. So, instruction will be re-executed again and again, which causes infinite EPT violation.
Six KVM selftests are timeout due to this issue:
kvm:access_tracking_perf_test
kvm:demand_paging_test
kvm:dirty_log_test
kvm:dirty_log_perf_test
kvm:kvm_page_table_test
kvm:memslot_modification_stress_test
Just report the max supported physical bits and not host physical bits to guest which is limited by TDP.
Tao Su (2):
x86: KVM: Limit guest physical bits when 5-level EPT is unsupported
x86: KVM: Emulate instruction when GPA can't be translated by EPT
arch/x86/kvm/cpuid.c | 5 +++-- arch/x86/kvm/mmu.h | 1 + arch/x86/kvm/mmu/mmu.c | 7 +++++++ arch/x86/kvm/vmx/vmx.c | 7 +++++++ 4 files changed, 18 insertions(+), 2 deletions(-)
base-commit: ceb6a6f023fd3e8b07761ed900352ef574010bcb
Signature · 1 line
2.34.1