Skip to content

: PVH changes for xen

Mukesh Rathor xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest18 patches 104 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18: PVH xen: turn gdb_frames/gdt_ents into uniontools/libxc/xc_domain_restore.c tools/libxc/xc_domain_save.c xen/arch/x86/domain.c +2 more+1 -28 replies
2/18: PVH xen: add XENMEM_add_to_physmap_rangexen/arch/x86/mm.c+79 -312 replies
3/18: PVH xen: create domctl_memory_mapping() functionxen/arch/x86/domctl.c xen/include/xen/domain.h+65 -562 replies
4/18: PVH xen: add params to read_segment_registerxen/arch/x86/domain.c xen/arch/x86/traps.c xen/arch/x86/x86_64/traps.c +2 more+28 -273 replies
5/18: PVH xen: more preparatory changes for PVHxen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/hvm/vmx/vvmx.c xen/arch/x86/traps.c +3 more+52 -471 reply
6/18: PVH xen: Introduce PVH guest typexen/arch/x86/debug.c xen/arch/x86/domain.c xen/common/domain.c +6 more+44 -2110 replies
7/18: PVH xen: tools changes to create PVH domaintools/debugger/gdbsx/xg/xg_main.c tools/libxc/xc_dom.h tools/libxc/xc_dom_x86.c +7 more+54 -121 reply
8/18: PVH xen: domain creation code changesxen/arch/x86/domain.c xen/include/asm-x86/hvm/hvm.h xen/include/asm-x86/hvm/vcpu.h +1 more+101 -337 replies
9/18: PVH xen: create PVH vmcs, and initializationxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/vmx/vmcs.c xen/arch/x86/hvm/vmx/vmx.c+383 -76 replies
10/18: PVH xen: introduce vmx_pvh.c and pvh.cxen/arch/x86/hvm/Makefile xen/arch/x86/hvm/pvh.c xen/arch/x86/hvm/vmx/Makefile +4 more+829 -220 replies
11/18: PVH xen: some misc changes like mtrr, intr, msi.xen/arch/x86/hvm/irq.c xen/arch/x86/hvm/mtrr.c xen/arch/x86/hvm/vmx/intr.c +2 more+25 -65 replies
12/18:PVH xen: support invalid op, return PVH features etc...xen/arch/x86/debug.c xen/arch/x86/traps.c xen/arch/x86/x86_64/traps.c +3 more+62 -145 replies
13/18: PVH xen: introduce p2m_map_foreignxen/arch/x86/domctl.c xen/arch/x86/mm/p2m-ept.c xen/arch/x86/mm/p2m-pt.c +3 more+58 -94 replies
14/18: PVH xen: add xenmem_add_foreign_to_pmap()xen/arch/x86/mm.c xen/common/memory.c+110 -84 replies
15/18: PVH xen: grant related changesxen/arch/x86/domain_page.c xen/arch/x86/mm.c xen/common/grant_table.c+29 -93 replies
16/18: PVH xen: elf changes to pref for dom0 PVH.xen/arch/x86/domain_build.c xen/common/libelf/libelf-loader.c xen/drivers/passthrough/iommu.c +1 more+66 -84 replies
17/18: PVH xen: PVH dom0 creation...xen/arch/x86/domain_build.c xen/arch/x86/mm/hap/hap.c xen/arch/x86/setup.c +1 more+212 -579 replies
18/18: PVH xen: Enable PVH domains...xen/arch/x86/domain.c+0 -70 replies

Reviews trailers per patch

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

PatchKonrad Rzeszutek Wilk
1/18
2/18R-b
3/18
4/18A-b
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18

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

Read the v2 thread

Cover letter [PATCH 0/18 V2]: PVH changes for xen

Finally, I've version 2 of my patches for PVH for xen (Linux patches have been previously submitted). This is Phase I. These patches are built on top of git c/s: 65c9792df60051b5f5eaadbc47a118cfba7edd49

Phase I:
- Establish a baseline of something working. These patches allow for dom0 to be booted in PVH mode, and after that guests to be started in PV, PVH, and HVM modes. I also tested booting dom0 in PV mode, and starting PV, PVH, and HVM guests.

There are few fixme's that I thought we could punt to Phase II.

Also, the disk must be specified as phy: in vm.cfg file:
> losetup /dev/loop1 guest.img
> vm.cfg file: disk = ['phy:/dev/loop1,xvda,w']

I've not tested anything else.

Phase II:
- AMD port.
- Linux MSI-x fixup, see xen-devel thread "[PVH]: Help: msi.c".
- fine tune shutdown path. I need to look at shutdown path during dom0 reboot and go thru the cleanup code again upon shutdown.
- arch_get_info_guest() and few other fixmes.
- Change xl to support other modes other than "phy:".

Phase III:
- VTSC support for PVH.
- Migration, shadow code. I've skipped shadow code for now.

Thanks for all the help,
Mukesh