AMD Nested Virt Preparation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | x86/cpuid-policy: Add AMD SVM CPUID leaf to featuresettools/ tools/ xen/ +4 more | +43 | 0 replies | |
| 2/14 | x86/cpu-policy: HACK Disable PCID when nested virt is enabledxen/ | +1 | 0 replies | |
| 3/14 | xenalyze: Basic nested virt processingtools/ | +45 | 0 replies | |
| 4/14 | xenalyze: Track generic event information when not in summary modetools/ | +4 | 0 replies | |
| 5/14 | xenalyze: Ignore vmexits where an HVM_HANDLER traces would be redundanttools/ | +8 | 0 replies | |
| 6/14 | xen/svm: Remove redundant HVM_HANDLER trace for EXCEPTION_ACxen/ | +0 | 0 replies | |
| 7/14 | xen/hvm: Don't skip MSR_READ trace recordxen/ | +1 | 1 reply | |
| 8/14 | svm: Do NPF trace before calling hvm_hap_nested_page_faultxen/ | +2 | 0 replies | |
| 9/14 | x86/emulate: Don't trace cr reads during emulationxen/ | +0 | 0 replies | |
| 10/14 | xenalyze: Quiet warnings about VMEXIT_IOIOtools/ | +18 | 0 replies | |
| 11/14 | x86/trace: Add trace to xsetbv svm/vmx handler pathxen/ | +2 | 0 replies | |
| 12/14 | xenalyze: Basic processing for XSETBV exits and handlerstools/ | +9 | 0 replies | |
| 13/14 | x86/svm: Add a trace for VMEXIT_VMRUNtools/ xen/ xen/ | +22 | 0 replies | |
| 14/14 | x86/nestedsvm: Note some places for improvementxen/ | +13 | 0 replies |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | R-b |
| 8/14 | |
| 9/14 | |
| 10/14 | |
| 11/14 | |
| 12/14 | |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH WIP 00/14] AMD Nested Virt Preparation
This is my work-in-progress series for getting nested virt working again on AMD.
The first patch is an early draft to integrate the SVM bits into the CPUID framework. It will be partially superseded by a series Andrew has posted but which has not yet been checked in.
The second patch is a workaround which hides the PCID bit from the L1 when nested HVM is enabled. Long-term, nested support for PCID will be necessary for performance.
Most of the rest of the patches involve improving tracing: Either fixing what's bitrotted in xenalyze, what's bitrotted specifically on the SVM side, or what could be improved in the upstream tracing.
The last patch is a placeholder for future work, commenting a place where behavior is wrong and another where more work needs to be done to assure safety.
George Dunlap (14):
x86/cpuid-policy: Add AMD SVM CPUID leaf to featureset x86/cpu-policy: HACK Disable PCID when nested virt is enabled
xenalyze: Basic nested virt processing
xenalyze: Track generic event information when not in summary mode
xenalyze: Ignore vmexits where an HVM_HANDLER traces would be
redundant
xen/svm: Remove redundant HVM_HANDLER trace for EXCEPTION_AC xen/hvm: Don't skip MSR_READ trace record
svm: Do NPF trace before calling hvm_hap_nested_page_fault x86/emulate: Don't trace cr reads during emulation
xenalyze: Quiet warnings about VMEXIT_IOIO
x86/trace: Add trace to xsetbv svm/vmx handler path
xenalyze: Basic processing for XSETBV exits and handlers x86/svm: Add a trace for VMEXIT_VMRUN
x86/nestedsvm: Note some places for improvement
tools/libs/light/libxl_cpuid.c | 1 + tools/misc/xen-cpuid.c | 1 + tools/xentrace/xenalyze.c | 133 +++++++++++++++----- xen/arch/x86/cpu-policy.c | 24 ++-- xen/arch/x86/cpu/common.c | 2 + xen/arch/x86/hvm/emulate.c | 1 - xen/arch/x86/hvm/hvm.c | 4 +- xen/arch/x86/hvm/svm/nestedsvm.c | 13 ++ xen/arch/x86/hvm/svm/svm.c | 7 +- xen/include/public/arch-x86/cpufeatureset.h | 16 +++ xen/include/public/trace.h | 1 + xen/include/xen/lib/x86/cpu-policy.h | 10 +- xen/lib/x86/cpuid.c | 4 +- 13 files changed, 167 insertions(+), 50 deletions(-)
Signature · 1 line
2.25.1