diff options
author | Juergen Gross <jgross@suse.com> | 2016-08-02 14:14:03 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-08-03 10:29:10 +0200 |
commit | c8e36e865c8a51c60343246d3a97b47559dc8c63 (patch) | |
tree | 91167b7fbc770e9b8a812c7825e717b931267abf /hw/usb/xen-usb.c | |
parent | 72aa364b1d9daa889bb5898ea4aded9d27fd1c96 (diff) | |
download | qemu-c8e36e865c8a51c60343246d3a97b47559dc8c63.zip qemu-c8e36e865c8a51c60343246d3a97b47559dc8c63.tar.gz qemu-c8e36e865c8a51c60343246d3a97b47559dc8c63.tar.bz2 |
xen: when removing a backend don't remove many of them
When a Xenstore watch fires indicating a backend has to be removed
don't remove all backends for that domain with the specified device
index, but just the one which has the correct type.
The easiest way to achieve this is to use the already determined
xendev as parameter for xen_be_del_xendev() instead of only the domid
and device index.
This at once removes the open coded QTAILQ_FOREACH_SAVE() in
xen_be_del_xendev() as there is no need to search for the correct
xendev any longer.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Message-id: 1470140044-16492-2-git-send-email-jgross@suse.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/xen-usb.c')
0 files changed, 0 insertions, 0 deletions