From e91044884957979e9a987b2d0565e1921c9b75dc6308f8a2d53d2cb58e6ef377 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Thu, 15 Sep 2011 04:10:37 +0000 Subject: [PATCH] Fix patch 4 in get migration speed series OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=152 --- 829bce17-mig-speed-4.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/829bce17-mig-speed-4.patch b/829bce17-mig-speed-4.patch index 3e89728..ce1310b 100644 --- a/829bce17-mig-speed-4.patch +++ b/829bce17-mig-speed-4.patch @@ -8,7 +8,7 @@ Index: libvirt-0.9.4/src/qemu/qemu_driver.c =================================================================== --- libvirt-0.9.4.orig/src/qemu/qemu_driver.c +++ libvirt-0.9.4/src/qemu/qemu_driver.c -@@ -8329,6 +8329,38 @@ static int qemuDomainSnapshotSetCurrentI +@@ -8329,6 +8329,40 @@ static int qemuDomainSnapshotSetCurrentI } @@ -19,6 +19,7 @@ Index: libvirt-0.9.4/src/qemu/qemu_driver.c +{ + struct qemud_driver *driver = dom->conn->privateData; + virDomainObjPtr vm; ++ qemuDomainObjPrivatePtr priv; + int ret = -1; + + virCheckFlags(0, -1); @@ -35,7 +36,8 @@ Index: libvirt-0.9.4/src/qemu/qemu_driver.c + goto cleanup; + } + -+ *bandwidth = vm->privateData->migMaxBandwidth; ++ priv = vm->privateData; ++ *bandwidth = priv->migMaxBandwidth; + ret = 0; + +cleanup: @@ -47,7 +49,7 @@ Index: libvirt-0.9.4/src/qemu/qemu_driver.c static int qemuDomainSnapshotIsAllowed(virDomainObjPtr vm) { int i; -@@ -9494,6 +9526,7 @@ static virDriver qemuDriver = { +@@ -9494,6 +9528,7 @@ static virDriver qemuDriver = { .domainAbortJob = qemuDomainAbortJob, /* 0.7.7 */ .domainMigrateSetMaxDowntime = qemuDomainMigrateSetMaxDowntime, /* 0.8.0 */ .domainMigrateSetMaxSpeed = qemuDomainMigrateSetMaxSpeed, /* 0.9.0 */