[Qemu-devel] [PATCH 0/6] Xen stubdom support

Jason Andryuk posted 6 patches 5 years, 1 month ago
Test checkpatch passed
Test asan failed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190311180216.18811-1-jandryuk@gmail.com
Maintainers: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Paul Durrant <paul.durrant@citrix.com>, "Michael S. Tsirkin" <mst@redhat.com>, Anthony Perard <anthony.perard@citrix.com>, Eduardo Habkost <ehabkost@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <rth@twiddle.net>
hw/i386/xen/xen-hvm.c       | 22 ++++++++++++++++------
hw/xen/xen-legacy-backend.c |  8 --------
hw/xen/xen_pt.c             | 10 +++++++---
hw/xen/xen_pt_config_init.c |  3 +++
include/hw/xen/xen.h        |  6 ++++++
include/hw/xen/xen_common.h |  5 +++++
qemu-options.hx             |  7 +++++++
vl.c                        |  8 ++++++++
8 files changed, 52 insertions(+), 17 deletions(-)
[Qemu-devel] [PATCH 0/6] Xen stubdom support
Posted by Jason Andryuk 5 years, 1 month ago
Xen supports running QEMU in a dedicated service vm - a stub domain or
stubdom.  QEMU is then isolated outside of the privileged Domain-0.

When running in a stubdom, there are a few changes needed for QEMU.  On
older Xen versions, the default ioreq server needs to have the stubdom's
domid specified.  The stubdom doesn't run PV backends, so that
initialization code can be skipped.  Stubdom's don't support MSI-X, so
that PCI capability must be hidden from passed through devices.

Stubdom mode is enabled by the new -xen-stubdom flag.

Jason Andryuk (5):
  xen: Introduce -xen-stubdom option
  xen: Move xenstore initialization to common location
  xen: Skip backend initialization for stubdom
  xen: Set HVM_PARAM_DM_DOMAIN for stubdom on older Xen
  xen-pt: Hide MSI-X from xen stubdoms

Simon Gaiser (1):
  xen-pt: Round pci regions sizes to XEN_PAGE_SIZE

 hw/i386/xen/xen-hvm.c       | 22 ++++++++++++++++------
 hw/xen/xen-legacy-backend.c |  8 --------
 hw/xen/xen_pt.c             | 10 +++++++---
 hw/xen/xen_pt_config_init.c |  3 +++
 include/hw/xen/xen.h        |  6 ++++++
 include/hw/xen/xen_common.h |  5 +++++
 qemu-options.hx             |  7 +++++++
 vl.c                        |  8 ++++++++
 8 files changed, 52 insertions(+), 17 deletions(-)

-- 
2.20.1