Skip to content

RFC RFC Linux based stub-domain

Anthony PERARD xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6linux-stubdomain: Compile QEMUstubdom-linux/Makefile+49 -00 replies
2/6linux-stubdomain: Compile Linuxstubdom-linux/.gitignore stubdom-linux/0001-xen-Don-t-check-for-xen_initial_domain-in-privcmd_io.patch stubdom-linux/0002-fix-remap_area_mfn_pte_fn.patch +2 more+1284 -14 replies
3/6linux-stubdomain: Build a disk image.stubdom-linux/.gitignore stubdom-linux/Makefile stubdom-linux/extra/initscript +3 more+366 -14 replies
4/6libxl: Add "stubdomain_version" to domain_build_info.tools/libxl/libxl_create.c tools/libxl/libxl_types.idl tools/libxl/xl_cmdimpl.c+50 -53 replies
5/6libxl: Handle Linux stubdomain specifique QEMU option.tools/libxl/libxl_dm.c+52 -192 replies
6/6libxl: Build the domain with a Linux based stubdomain.tools/libxl/libxl.c tools/libxl/libxl_create.c tools/libxl/libxl_dm.c +2 more+145 -200 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/6] RFC Linux based stub-domain

Hi all,

Here is the long overdue patch series to bring support for a Linux based stubdom which will enable to use QEMU upstream as device model in a stubdom.

The first three patches will provide the necessary to build Linux and a disk image for the stubdomain itself. This is created in a separated directory "stubdom-linux". Calling make in this directory will build Linux and the disk. Then a make install will copy the two files to the same directory as the MiniOS use.

The last three patches are the libxl support. There is a field called "stubdomain_version" which is automatically set to the appropriate value, depending on the QEMU version used. It call also be set from VM config file.

So, to start a Linux stubdomain, just set those two variables and it shoud start:
device_model_stubdomain_override = 1
device_model_version = "qemu-xen"

There is few things that does not have support yet and are on my todo list:
- video output
- save/restore
So for now, we have the network and the console and the disk of the domain.

Regards,

Anthony PERARD (6):
linux-stubdomain: Compile QEMU
linux-stubdomain: Compile Linux
linux-stubdomain: Build a disk image.
libxl: Add "stubdomain_version" to domain_build_info.
libxl: Handle Linux stubdomain specifique QEMU option.
libxl: Build the domain with a Linux based stubdomain.

 stubdom-linux/.gitignore                           |    5 +
 ...heck-for-xen_initial_domain-in-privcmd_io.patch |   39 +
 stubdom-linux/0002-fix-remap_area_mfn_pte_fn.patch |   36 +
 stubdom-linux/Makefile                             |   83 ++
 stubdom-linux/extra/initscript                     |   40 +
 stubdom-linux/extra/qemu-ifup                      |    7 +
 stubdom-linux/mk-ramdisk-common                    |  178 +++
 stubdom-linux/mk-ramdisk-ioemu                     |  124 ++
 stubdom-linux/stubdom-linux-config-64b             | 1185 ++++++++++++++++++++
 tools/libxl/libxl.c                                |   25 +-
 tools/libxl/libxl_create.c                         |   41 +-
 tools/libxl/libxl_dm.c                             |  178 ++-
 tools/libxl/libxl_internal.c                       |   22 +
 tools/libxl/libxl_internal.h                       |    4 +
 tools/libxl/libxl_types.idl                        |    7 +
 tools/libxl/xl_cmdimpl.c                           |   14 +
 16 files changed, 1944 insertions(+), 44 deletions(-)
 create mode 100644 stubdom-linux/.gitignore
 create mode 100644 stubdom-linux/0001-xen-Don-t-check-for-xen_initial_domain-in-privcmd_io.patch
 create mode 100644 stubdom-linux/0002-fix-remap_area_mfn_pte_fn.patch
 create mode 100644 stubdom-linux/Makefile
 create mode 100644 stubdom-linux/extra/initscript
 create mode 100644 stubdom-linux/extra/qemu-ifup
 create mode 100755 stubdom-linux/mk-ramdisk-common
 create mode 100755 stubdom-linux/mk-ramdisk-ioemu
 create mode 100644 stubdom-linux/stubdom-linux-config-64b
Signature · 1 line
Anthony PERARD