Skip to content

Nested virtualization for VMX

Qing He xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 51 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16vmx: nest: rename host_vmcsxen/arch/x86/hvm/vmx/vmcs.c+7 -71 reply
2/16vmx: nest: wrapper for control updatexen/arch/x86/hvm/vmx/intr.c xen/arch/x86/hvm/vmx/vmcs.c xen/arch/x86/hvm/vmx/vmx.c +2 more+52 -341 reply
3/16vmx: nest: nested availability and status flagsxen/include/asm-x86/hvm/hvm.h xen/include/asm-x86/hvm/vcpu.h xen/include/public/hvm/params.h+10 -12 replies
4/16vmx: nest: nested control structurexen/include/asm-x86/hvm/vmx/nest.h xen/include/asm-x86/hvm/vmx/vmcs.h+49 -07 replies
5/16vmx: nest: virtual vmcs layoutxen/include/asm-x86/hvm/vmx/vvmcs.h+154 -01 reply
6/16vmx: nest: handling VMX instruction exitsxen/arch/x86/hvm/vmx/Makefile xen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c +1 more+682 -729 replies
7/16vmx: nest: switch current vmcsxen/arch/x86/hvm/vmx/vmcs.c xen/include/asm-x86/hvm/vmx/vmcs.h+39 -00 replies
8/16vmx: nest: vmresume/vmlaunchxen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/vmx/nest.h+62 -23 replies
9/16vmx: nest: shadow controlsxen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/vmx/nest.h+51 -40 replies
10/16vmx: nest: L1 <-> L2 context switchxen/arch/x86/hvm/vmx/entry.S xen/arch/x86/hvm/vmx/nest.c xen/include/asm-x86/hvm/vmx/nest.h+351 -00 replies
11/16vmx: nest: interrupt handlingxen/arch/x86/hvm/vmx/intr.c xen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c +1 more+224 -260 replies
12/16vmx: nest: VMExit handler in L2xen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/vmx/nest.h +1 more+231 -00 replies
13/16vmx: nest: L2 tscxen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/vmx/nest.h+39 -00 replies
14/16vmx: nest: CR0.TS and #NMxen/arch/x86/hvm/vmx/nest.c+12 -10 replies
15/16vmx: nest: capability reporting MSRsxen/arch/x86/hvm/vmx/nest.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/vmx/nest.h +2 more+109 -45 replies
16/16vmx: nest: expose cpuid and CR4.VMXEtools/libxc/xc_cpuid_x86.c xen/include/asm-x86/hvm/hvm.h+11 -11 reply

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchChristoph Egger
1/16A-b
2/16A-b
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/16] Nested virtualization for VMX

This patch set is the upgraded version of nested virtualization for VMX, that allows a VMX guest (L1) to run other VMX guests (L2).

The nested virtualization for vmx is built on homogeneous L1 and L2 for better performance and minimal emulation, the common code involved is small and contained in patch 03/16, for two flags, one for feature availability, the other for indicating current mode.

The userspace components (xend/xm/xl) is not included since Christopher's userspace patch has similar coverage. vEPT is not included as well because it's still WIP.

Major changes to last version:
- address Tim's comments on error handling and others
- split context switch into smaller pieces with certain restructure for better readability
- update interrupt handling, rewrite comments
- move cpuid into userspace
- etc.

The patch set includes the following patches.

[PATCH 01/16] vmx: nest: rename host_vmcs
[PATCH 02/16] vmx: nest: wrapper for control update [PATCH 03/16] vmx: nest: nested availability and status flags [PATCH 04/16] vmx: nest: nested control structure [PATCH 05/16] vmx: nest: virtual vmcs layout
[PATCH 06/16] vmx: nest: handling VMX instruction exits [PATCH 07/16] vmx: nest: switch current vmcs
[PATCH 08/16] vmx: nest: vmresume/vmlaunch
[PATCH 09/16] vmx: nest: shadow controls
[PATCH 10/16] vmx: nest: L1 <-> L2 context switch [PATCH 11/16] vmx: nest: interrupt handling
[PATCH 12/16] vmx: nest: VMExit handler in L2 [PATCH 13/16] vmx: nest: L2 tsc
[PATCH 14/16] vmx: nest: CR0.TS and #NM
[PATCH 15/16] vmx: nest: capability reporting MSRs [PATCH 16/16] vmx: nest: expose cpuid and CR4.VMXE

Thanks,
Qing He