[libvirt] [PATCH 0/2] Add device-related code for TPM and panic devices
by Martin Kletzander
TPM and panic devices were added without the foundation code for
things like hot/cold-(un)plugging, ABI stability checking, etc. This
series adds that device-related code in order to properly handle those
devices, even though in some cases it just means outputting a better
error message.
Martin Kletzander (2):
conf: Add device-related code for TPM devices
conf: Add device-related code for panic devices
src/conf/domain_conf.c | 126 ++++++++++++++++++++++++++++++++++++++++--------
src/conf/domain_conf.h | 7 +++
src/qemu/qemu_driver.c | 12 +++++
src/qemu/qemu_hotplug.c | 2 +
4 files changed, 128 insertions(+), 19 deletions(-)
--
2.1.3
9 years, 12 months
[libvirt] [PATCH v1 0/5] Precreate storage on migration
by Michal Privoznik
Yet another attempt.
One thing that I'm not sure about is, whether this functionality
should be on by default or tunable via say flag to migrate APIs.
Thing is, in my approach I require disks to be in a storage pool
(see the last patch for reasoning). On the other hand, if users
still precreate storage themselves, they won't see any failure if
disks doesn't belong to any pool. So I'm undecided yet, thoughts?
Michal Privoznik (5):
qemu: Expose qemuOpenFile and qemuOpenFileAs
qemu: Split qemuDomainGetBlockInfo
storage: Introduce storagePoolLookupByPath
qemu_migration: Send disk sizes to the other side
qemu_migration: Precreate missing storage
src/qemu/qemu_domain.c | 319 ++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_domain.h | 16 ++
src/qemu/qemu_driver.c | 316 +-------------------------------------
src/qemu/qemu_migration.c | 354 ++++++++++++++++++++++++++++++++++++++++---
src/storage/storage_driver.c | 36 +++++
src/storage/storage_driver.h | 4 +
6 files changed, 711 insertions(+), 334 deletions(-)
--
2.0.4
9 years, 12 months
[libvirt] [PATCH 0/2] qemu: update jobinfo type if the job is not completed in qemuMigrationRun
by Wang Rui
In qemuMigrationRun the jobinfo type won't be updated until
qemuMigrationWaitForCompletion. If migration is failed or cancelled before
that(such as in qemuMigrationDriveMirror), we can't get the right jobinfo
type. The following patches fix it.
diff to v1:
Reword commit message to clarify why we can't use qemuMigrationUpdateJobStatus.
Wang Rui (2):
qemu: set jobinfo type to CANCELLED if migration is cancelled in all
conditions
qemu: set jobinfo type to FAILED if job is failed in qemuMigrationRun
src/qemu/qemu_migration.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--
1.7.12.4
9 years, 12 months
[libvirt] [PATCH 0/2] qemu: update jobinfo type if the job is not completed in qemuMigrationRun
by Wang Rui
In qemuMigrationRun the jobinfo type won't be updated until
qemuMigrationWaitForCompletion. If migration is failed or cancelled before
that(such as in qemuMigrationDriveMirror), we can't get the right jobinfo
type. The following patches fix it.
Wang Rui (2):
qemu: set jobinfo type to CANCELLED if migration is cancelled in all
conditions
qemu: set jobinfo type to FAILED if job is failed in qemuMigrationRun
src/qemu/qemu_migration.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--
1.7.12.4
9 years, 12 months
[libvirt] python migrateSetMaxSpeed not taking effect
by Krutskikh Ivan
Hi,
I am writing a simple python script for migrating vm's based on zfs
zvol's. Either I am doing something wrong or python migrateSetMaxSpeed
not taking effect: no mater what value I specify (except for 0), I end
up with 10 Mib/s migration speed. The code is:
def virt_migrate(domain):
conn = libvirt.open('qemu:///system')
domain_obj = conn.lookupByName(domain)
dst='qemu+ssh://root@%s/system' % args.remote
domain_obj.migrateSetMaxSpeed(40,0)
new_dom = domain_obj.migrateToURI(dst,libvirt.VIR_MIGRATE_LIVE |
libvirt.VIR_MIGRATE_PEER2PEER | libvirt.VIR_MIGRATE_NON_SHARED_INC |
libvirt.VIR_MIGRATE_PERSIST_DEST |
libvirt.VIR_MIGRATE_UNDEFINE_SOURCE, None, 0)
conn.close()
Also tried to specify bandwidth at migrateToUri- I still get 10 mib/s
at any value...
Thanks in advance!
9 years, 12 months