xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] xed: add qdevs for each backend, correct pvUSB
@ 2016-11-02  7:24 Juergen Gross
  2016-11-02  7:24 ` [PATCH v2 1/4] xen: add an own bus for xen backend devices Juergen Gross
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Juergen Gross @ 2016-11-02  7:24 UTC (permalink / raw)
  To: qemu-devel, xen-devel
  Cc: anthony.perard, Juergen Gross, sstabellini, kraxel, armbru

Trying to use pvUSB in a Xen guest with a qemu emulated USB controller
will crash qemu as it tries to attach a pvUSB device to the emulated
controller.

This can be avoided by adding a unique id to each pvUSB controller which
can be used when attaching the pvUSB device. In order to make this
possible the pvUSB controller has to be a hotpluggable qemu device.

This is achieved by adding a qdev for each Xen backend all attached to
a new Xen specific bus.

Changes in V2:
- one qdev for each backend instead of pvUSB only

Juergen Gross (4):
  xen: add an own bus for xen backend devices
  qdev: add function qdev_set_id()
  xen: create qdev for each backend device
  xen: attach pvusb usb bus to backend qdev

 hw/usb/xen-usb.c             | 23 +++++++--------
 hw/xen/xen_backend.c         | 67 +++++++++++++++++++++++++++++++++++++++++---
 hw/xen/xen_pvdev.c           |  5 +++-
 include/hw/xen/xen_backend.h |  8 ++++++
 include/hw/xen/xen_pvdev.h   |  1 +
 include/monitor/qdev.h       |  1 +
 qdev-monitor.c               | 36 +++++++++++++-----------
 7 files changed, 107 insertions(+), 34 deletions(-)

-- 
2.6.6

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

end of thread, other threads:[~2016-11-21 17:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-02  7:24 [PATCH v2 0/4] xed: add qdevs for each backend, correct pvUSB Juergen Gross
2016-11-02  7:24 ` [PATCH v2 1/4] xen: add an own bus for xen backend devices Juergen Gross
2016-11-19  4:34   ` Stefano Stabellini
2016-11-02  7:24 ` [PATCH v2 2/4] qdev: add function qdev_set_id() Juergen Gross
2016-11-19  4:34   ` Stefano Stabellini
2016-11-02  7:24 ` [PATCH v2 3/4] xen: create qdev for each backend device Juergen Gross
2016-11-19  4:34   ` Stefano Stabellini
2016-11-02  7:24 ` [PATCH v2 4/4] xen: attach pvusb usb bus to backend qdev Juergen Gross
2016-11-19  4:34   ` Stefano Stabellini
2016-11-21 17:49 ` [PATCH v2 0/4] xed: add qdevs for each backend, correct pvUSB Stefano Stabellini

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).