Richard W.M. Jones
2016-Oct-06 15:20 UTC
[Libguestfs] [PATCH] launch: libvirt: Remove unused USB and memballoon devices.
Thanks: Laine Stump. See also: https://www.redhat.com/archives/libvir-list/2016-October/msg00246.html --- src/launch-libvirt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c index d8479dc..8779dcb 100644 --- a/src/launch-libvirt.c +++ b/src/launch-libvirt.c @@ -1397,6 +1397,18 @@ construct_libvirt_xml_devices (guestfs_h *g, } end_element (); } + /* Libvirt adds some devices by default. Indicate to libvirt + * that we don't want them. + */ + start_element ("controller") { + attribute ("type", "usb"); + attribute ("model", "none"); + } end_element (); + + start_element ("memballoon") { + attribute ("model", "none"); + } end_element (); + } end_element (); /* </devices> */ return 0; -- 2.7.4
Pino Toscano
2016-Oct-11 08:42 UTC
Re: [Libguestfs] [PATCH] launch: libvirt: Remove unused USB and memballoon devices.
On Thursday, 6 October 2016 16:20:08 CEST Richard W.M. Jones wrote:> Thanks: Laine Stump. > > See also: > https://www.redhat.com/archives/libvir-list/2016-October/msg00246.html > ---LGTM. Thanks, -- Pino Toscano
Possibly Parallel Threads
- [PATCH] aarch64: Enable virtio-pci, replacing virtio-mmio.
- [PATCH INCOMPLETE] launch: libvirt: Use C macros to simplify XML generation.
- [PATCH 2/2] launch: libvirt: Use qemu-bridge-helper to implement a full network (RHBZ#1148012).
- Re: [PATCH 2/2] launch: libvirt: Use qemu-bridge-helper to implement a full network (RHBZ#1148012).
- [PATCH v2 2/4] common/utils: Move libxml2 writer macros to a common header file.