[libvirt] [PATCH 0/6 v3] Shared disk table related fixes/improvements

Osier Yang jyang at redhat.com
Tue Feb 19 12:27:39 UTC 2013


Inspires by the crash when using CD-ROM or Floppy with empty source,
except the fixes for the crashes, this also enrichs the hash table
with a list of names of domain which use the shared disk. And to keep
the hash table to be in consistent state, this also fixes the problems
on adding/removing the hash entry when updateing/ejecting media of
CD-ROM or Floppy. And updates the hash table when reconnecting domain
process.

v2 - v3:
  * Rebase on the top
  * Small changes after more testing.

Osier Yang (6):
  qemu: Add checking in helpers for sgio setting
  qemu: Merge qemuCheckSharedDisk into qemuAddSharedDisk
  qemu: Record names of domain which uses the shared disk in hash table
  qemu: Update shared disk table when reconnecting qemu process
  qemu: Move the shared disk adding and sgio setting prior to attaching
  qemu: Remove the shared disk entry if the operation is ejecting or
    updating

 src/conf/domain_conf.c   |   20 ++++
 src/conf/domain_conf.h   |    3 +
 src/libvirt_private.syms |    1 +
 src/qemu/qemu_conf.c     |  243 ++++++++++++++++++++++++++++++++++++++++++---
 src/qemu/qemu_conf.h     |   26 ++++-
 src/qemu/qemu_driver.c   |  108 ++++++++++++++++-----
 src/qemu/qemu_hotplug.c  |   19 +----
 src/qemu/qemu_hotplug.h  |    1 +
 src/qemu/qemu_process.c  |   81 ++++------------
 src/qemu/qemu_process.h  |    3 -
 10 files changed, 377 insertions(+), 128 deletions(-)

-- 
1.7.7.6




More information about the libvir-list mailing list