libvirt/src/qemu
Osier Yang d7ead3e19a qemu: Add a hash table for the shared disks
This introduces a hash table for qemu driver, to store the shared
disk's info as (@major:minor, @ref_count). @ref_count is the number
of domains which shares the disk.

Since we only care about if the disk support unprivileged SG_IO
commands, and the SG_IO commands only make sense for block disk,
this patch only manages (add/remove hash entry) the shared disk for
block disk.

* src/qemu/qemu_conf.h: (Add member 'sharedDisks' of type
                         virHashTablePtr; Declare helpers
                         qemuGetSharedDiskKey, qemuAddSharedDisk
                         and qemuRemoveSharedDisk)
* src/qemu/qemu_conf.c (Implement the 3 helpers)
* src/qemu/qemu_process.c (Update 'sharedDisks' when domain
                           starting and shutdown)
* src/qemu/qemu_driver.c (Update 'sharedDisks' when attaching
                          or detaching disk).
2013-01-07 21:35:19 +08:00
..
libvirtd_qemu.aug qemu: conf: add seccomp_sandbox option 2012-09-18 15:43:28 +08:00
MIGRATION.txt
qemu_agent.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_agent.h qemu: Implement virDomainFSTrim 2012-11-28 16:15:01 +01:00
qemu_bridge_filter.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_bridge_filter.h Replace 'struct qemud_driver *' with virQEMUDriverPtr 2012-11-28 18:17:25 +00:00
qemu_capabilities.c qemu: Detect VGA_QXL capability correctly 2013-01-04 15:37:09 +01:00
qemu_capabilities.h qemu: Don't parse log output when starting up a domain 2013-01-03 09:56:51 +01:00
qemu_cgroup.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_cgroup.h Rename hostusb.{c,h} to virusb.{c,h} 2012-12-21 11:17:13 +00:00
qemu_command.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_command.h Rename command.{c,h} to vircommand.{c,h} 2012-12-21 11:17:13 +00:00
qemu_conf.c qemu: Add a hash table for the shared disks 2013-01-07 21:35:19 +08:00
qemu_conf.h qemu: Add a hash table for the shared disks 2013-01-07 21:35:19 +08:00
qemu_domain.c conf: Rename console-specific identifiers to be more generic 2013-01-04 17:43:21 -07:00
qemu_domain.h conf: Rename console-specific identifiers to be more generic 2013-01-04 17:43:21 -07:00
qemu_driver.c qemu: Add a hash table for the shared disks 2013-01-07 21:35:19 +08:00
qemu_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_hostdev.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_hostdev.h Replace 'struct qemud_driver *' with virQEMUDriverPtr 2012-11-28 18:17:25 +00:00
qemu_hotplug.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_hotplug.h Replace 'struct qemud_driver *' with virQEMUDriverPtr 2012-11-28 18:17:25 +00:00
qemu_migration.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_migration.h qemu: Make qemuMigrationIsAllowed more reusable 2012-12-11 19:48:37 +01:00
qemu_monitor_json.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_monitor_json.h Rename bitmap.{c,h} to virbitmap.{c,h} 2012-12-21 11:17:12 +00:00
qemu_monitor_text.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_monitor_text.h qemu: nicer error message if live disk snapshot unsupported 2012-12-04 15:53:41 -07:00
qemu_monitor.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
qemu_monitor.h Rename json.{c,h} to virjson.{c,h} 2012-12-21 11:17:13 +00:00
qemu_process.c qemu: Add a hash table for the shared disks 2013-01-07 21:35:19 +08:00
qemu_process.h Replace 'struct qemud_driver *' with virQEMUDriverPtr 2012-11-28 18:17:25 +00:00
qemu.conf doc: update description about user/group in qemu.conf 2012-10-09 08:38:36 -06:00
test_libvirtd_qemu.aug.in Fix the augea test for qemu libvirtd options 2012-09-18 16:28:43 +08:00
THREADS.txt qemu: fix crash when mixing sync and async monitor jobs 2011-08-01 09:41:57 -06:00