Skip to content

Nested Virtualization: Overview

Christoph Egger xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 of 13 patches 2 repliesIn review

12 of 13 patches are in this archive. The cover letter announces 13.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Nested Virtualization: toolstools/libxc/xc_cpuid_x86.c tools/libxl/libxl.idl tools/libxl/libxl_dom.c +6 more+95 -140 replies
2/13Nested Virtualization: data structurexen/arch/x86/hvm/svm/vmcb.c xen/include/asm-x86/hvm/hvm.h xen/include/asm-x86/hvm/svm/vmcb.h +1 more+57 -40 replies
4/13Nested Virtualization: corexen/arch/x86/hvm/Makefile xen/arch/x86/hvm/nestedhvm.c xen/include/asm-x86/hvm/nestedhvm.h+532 -00 replies
5/13Nested Virtualization: CRn & paged real modexen/arch/x86/hvm/hvm.c+4 -20 replies
6/13Nested Virtualization: trapxen/arch/x86/hvm/hvm.c xen/include/asm-x86/hvm/hvm.h+42 -50 replies
7/13Nested Virtualization: eferxen/arch/x86/hvm/hvm.c xen/include/asm-x86/cpufeature.h+16 -70 replies
8/13Nested Virtualization: interrupts (generic part)xen/arch/x86/hvm/hvm.c xen/arch/x86/x86_32/asm-offsets.c xen/arch/x86/x86_64/asm-offsets.c+14 -00 replies
9/13Nested Virtualization: svm specific implementationxen/arch/x86/hvm/svm/Makefile xen/arch/x86/hvm/svm/emulate.c xen/arch/x86/hvm/svm/nestedsvm.c +7 more+1546 -1320 replies
10/13Nested Virtualization: interrupts (svm specific)xen/arch/x86/hvm/svm/entry.S xen/arch/x86/hvm/svm/intr.c xen/arch/x86/hvm/svm/nestedsvm.c +3 more+168 -70 replies
11/13Nested Virtualization: enablementxen/arch/x86/hvm/hvm.c+26 -20 replies
12/13Nested Virtualization: vramxen/arch/x86/mm/hap/hap.c xen/arch/x86/mm/shadow/common.c xen/arch/x86/mm/shadow/multi.c +2 more+36 -290 replies
13/13Nested Virtualiztion: hap-on-hapxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/nestedhvm.c xen/arch/x86/hvm/svm/nestedsvm.c +14 more+1004 -530 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] Nested Virtualization: Overview

Hi!

This patch series brings Nested Virtualization to Xen. This is the fifth patch series. Improvements to the previous patch submission:

- Incorporated feedback from discussion with Tim and Eddie.
- Reworked common data structure and function hooks (patch #2 and #3) Adjusted all patches affected by this.
- Make use of hvm_map_guest_frame() introduced in c/s 22228:02e199c96ece
- Removed workaround in hap-on-hap patch thanks to c/s 22215:c8331262efe6
- Some bugfixes

The patch series:

patch 01: add nestedhvm guest config option to the tools.
This is the only one patch touching the tools
patch 02: Add data structures for nested virtualization.
patch 03: add nestedhvm function hooks.
patch 04: The heart of nested virtualization.
patch 05: Allow switch to paged real mode during vmrun emulation.
Emulate cr0 and cr4 when guest does not intercept them (i.e. Hyper-V/Windows7, KVM)
patch 06: When injecting an exception into nested guest, inject
#VMEXIT into the guest if intercepted.
patch 07: Allow guest to enable SVM in EFER only on AMD.
patch 08: Handle interrupts (generic part).
patch 09: SVM specific implementation for nested virtualization. patch 10: Handle interrupts (SVM specific).
patch 11: The piece of code that effectively turns on nested virtualization. patch 12: Move dirty_vram from struct hvm_domain to struct p2m_domain.
This change is the first part from a larger not-yet-ready change where the vram and log_dirty tracking is teached to work on per p2m.
patch 13: Handle nested pagefault to enable hap-on-hap and handle
nested guest page-table-walks to emulate instructions the guest does not intercept (i.e. WBINVD with Windows 7).

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632