[PATCH 0/2] qemu: Do not erase duplicate input from namespace

Kristina Hanicova khanicov at redhat.com
Wed Jul 7 10:46:50 UTC 2021


If the attempt to attach an input device failed, we erased the
unattached device from the namespace. This resulted in erasing an
already attached device in case of a duplicate. We need to check for
existing file in the namespace in order to determine erasing it in case
of a failure.

Kristina Hanicova (2):
  qemu: Check for existing file in namespace
  qemu: Do not erase input device from namespace if duplicate

 src/qemu/qemu_hotplug.c   |  3 +--
 src/qemu/qemu_namespace.c | 34 ++++++++++++++++++++++------------
 src/qemu/qemu_namespace.h |  3 ++-
 src/util/virprocess.c     |  6 ++++--
 4 files changed, 29 insertions(+), 17 deletions(-)

-- 
2.31.1




More information about the libvir-list mailing list