From: Juergen Gross <jgross@suse.com>
To: qemu-devel@nongnu.org, xen-devel@lists.xensource.com
Cc: anthony.perard@citrix.com, kraxel@redhat.com,
sstabellini@kernel.org, armbru@redhat.com,
Juergen Gross <jgross@suse.com>
Subject: [Qemu-devel] [PATCH v3 0/4] xen: add qdevs for each backend, correct pvUSB
Date: Tue, 22 Nov 2016 07:10:55 +0100 [thread overview]
Message-ID: <20161122061059.26058-1-jgross@suse.com> (raw)
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 V3:
- removed two spurious changes in patch 3 as requested by Stefano
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 | 66 ++++++++++++++++++++++++++++++++++++++++++--
hw/xen/xen_pvdev.c | 4 ++-
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, 106 insertions(+), 33 deletions(-)
--
2.10.0
next reply other threads:[~2016-11-22 6:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 6:10 Juergen Gross [this message]
2016-11-22 6:10 ` [Qemu-devel] [PATCH v3 1/4] xen: add an own bus for xen backend devices Juergen Gross
2016-11-22 6:10 ` [Qemu-devel] [PATCH v3 2/4] qdev: add function qdev_set_id() Juergen Gross
2017-03-23 21:11 ` Eduardo Habkost
2016-11-22 6:10 ` [Qemu-devel] [PATCH v3 3/4] xen: create qdev for each backend device Juergen Gross
2017-03-23 20:57 ` Eduardo Habkost
2016-11-22 6:10 ` [Qemu-devel] [PATCH v3 4/4] xen: attach pvusb usb bus to backend qdev Juergen Gross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161122061059.26058-1-jgross@suse.com \
--to=jgross@suse.com \
--cc=anthony.perard@citrix.com \
--cc=armbru@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).