xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] Allow qemu to provide emulated disks for devices with hotplug scripts
@ 2016-03-02 11:14 George Dunlap
  2016-03-02 11:14 ` [PATCH RFC 1/4] libxl: Move check for local access to a funciton George Dunlap
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: George Dunlap @ 2016-03-02 11:14 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap

Qemu in dom0 can only provide emulated disks when the qemu process has
access to an image of the file.  At the moment, this only includes
plain files or physical devices in dom0; it does not include anything
to do with a hotplug script.

However, hotplug scripts run from dom0 generally do, as a necessary
side effect of their activity, create a block device which could be
passed to domain 0; this block device can be passed to a qemu device
running in dom0 to provide emulated disk support.

This series allows qemu to gain access to that block device, giving it
full parity with PV guests for all disks whose backend is in domain 0.

It also takes steps towards generalizing the "local attach"
funcitonality which is used by pygrub to access non-local disks, so
that in the future qemu can access emulated disks by attaching them to
dom0.

RFC because I haven't tested it since forward-porting it.


George Dunlap (4):
  libxl: Move check for local access to a funciton
  libxl: Share logic for finding path between qemuu and pygrub
  tools/hotplug: Add a "dummy" hotplug script for testing
  libxl: Allow local access for block devices with hotplug scripts

 tools/hotplug/Linux/Makefile        |   1 +
 tools/hotplug/Linux/block-common.sh |   5 +-
 tools/hotplug/Linux/block-dummy     | 107 +++++++++++++++++++++++++++++++++
 tools/libxl/libxl.c                 | 115 +++++++++++++++++++++++++++++-------
 tools/libxl/libxl_bootloader.c      |   1 +
 tools/libxl/libxl_dm.c              |  66 ++++++++++++++-------
 tools/libxl/libxl_internal.h        |  12 +++-
 7 files changed, 262 insertions(+), 45 deletions(-)
 create mode 100644 tools/hotplug/Linux/block-dummy

-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-08 19:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 11:14 [PATCH RFC 0/4] Allow qemu to provide emulated disks for devices with hotplug scripts George Dunlap
2016-03-02 11:14 ` [PATCH RFC 1/4] libxl: Move check for local access to a funciton George Dunlap
2016-03-02 11:14 ` [PATCH RFC 2/4] libxl: Share logic for finding path between qemuu and pygrub George Dunlap
2016-03-02 11:14 ` [PATCH RFC 3/4] tools/hotplug: Add a "dummy" hotplug script for testing George Dunlap
2016-03-02 11:14 ` [PATCH RFC 4/4] libxl: Allow local access for block devices with hotplug scripts George Dunlap
2016-03-08 19:18 ` [PATCH RFC 0/4] Allow qemu to provide emulated disks for " Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).