|
|
0a7476 |
From a3a6757726ad16eb0bdb528c700f982f3145a483 Mon Sep 17 00:00:00 2001
|
|
|
0a7476 |
Message-Id: <a3a6757726ad16eb0bdb528c700f982f3145a483@dist-git>
|
|
|
0a7476 |
From: Laine Stump <laine@laine.org>
|
|
|
0a7476 |
Date: Thu, 11 Apr 2019 15:14:48 -0400
|
|
|
0a7476 |
Subject: [PATCH] qemu_hotplug: rename Chr and Lease Detach functions
|
|
|
0a7476 |
|
|
|
0a7476 |
qemuDomainDetachDeviceChr and qemuDomainDetachDeviceLease are more
|
|
|
0a7476 |
consistent with each other.
|
|
|
0a7476 |
|
|
|
0a7476 |
Signed-off-by: Laine Stump <laine@laine.org>
|
|
|
0a7476 |
ACKed-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
0a7476 |
(cherry picked from commit e1949c7045377e7b32f0f8ed7c76539b1b5d50da)
|
|
|
0a7476 |
|
|
|
0a7476 |
Partially-Resolves: https://bugzilla.redhat.com/1658198
|
|
|
0a7476 |
Signed-off-by: Laine Stump <laine@redhat.com>
|
|
|
0a7476 |
Signed-off-by: Laine Stump <laine@laine.org>
|
|
|
0a7476 |
Message-Id: <20190411191453.24055-37-laine@redhat.com>
|
|
|
0a7476 |
Acked-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
0a7476 |
---
|
|
|
0a7476 |
src/qemu/qemu_hotplug.c | 12 ++++++------
|
|
|
0a7476 |
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
0a7476 |
|
|
|
0a7476 |
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
|
|
|
0a7476 |
index 693b8878b5..dea881fd0b 100644
|
|
|
0a7476 |
--- a/src/qemu/qemu_hotplug.c
|
|
|
0a7476 |
+++ b/src/qemu/qemu_hotplug.c
|
|
|
0a7476 |
@@ -5392,7 +5392,7 @@ qemuDomainDetachPrepNet(virQEMUDriverPtr driver,
|
|
|
0a7476 |
|
|
|
0a7476 |
|
|
|
0a7476 |
static int
|
|
|
0a7476 |
-qemuDomainDetachChrDevice(virQEMUDriverPtr driver,
|
|
|
0a7476 |
+qemuDomainDetachDeviceChr(virQEMUDriverPtr driver,
|
|
|
0a7476 |
virDomainObjPtr vm,
|
|
|
0a7476 |
virDomainChrDefPtr chr,
|
|
|
0a7476 |
bool async)
|
|
|
0a7476 |
@@ -5636,9 +5636,9 @@ qemuDomainDetachPrepVsock(virDomainObjPtr vm,
|
|
|
0a7476 |
|
|
|
0a7476 |
|
|
|
0a7476 |
static int
|
|
|
0a7476 |
-qemuDomainDetachLease(virQEMUDriverPtr driver,
|
|
|
0a7476 |
- virDomainObjPtr vm,
|
|
|
0a7476 |
- virDomainLeaseDefPtr lease)
|
|
|
0a7476 |
+qemuDomainDetachDeviceLease(virQEMUDriverPtr driver,
|
|
|
0a7476 |
+ virDomainObjPtr vm,
|
|
|
0a7476 |
+ virDomainLeaseDefPtr lease)
|
|
|
0a7476 |
{
|
|
|
0a7476 |
virDomainLeaseDefPtr det_lease;
|
|
|
0a7476 |
int idx;
|
|
|
0a7476 |
@@ -5675,10 +5675,10 @@ qemuDomainDetachDeviceLive(virDomainObjPtr vm,
|
|
|
0a7476 |
* Detach functions.
|
|
|
0a7476 |
*/
|
|
|
0a7476 |
case VIR_DOMAIN_DEVICE_LEASE:
|
|
|
0a7476 |
- return qemuDomainDetachLease(driver, vm, match->data.lease);
|
|
|
0a7476 |
+ return qemuDomainDetachDeviceLease(driver, vm, match->data.lease);
|
|
|
0a7476 |
|
|
|
0a7476 |
case VIR_DOMAIN_DEVICE_CHR:
|
|
|
0a7476 |
- return qemuDomainDetachChrDevice(driver, vm, match->data.chr, async);
|
|
|
0a7476 |
+ return qemuDomainDetachDeviceChr(driver, vm, match->data.chr, async);
|
|
|
0a7476 |
|
|
|
0a7476 |
/*
|
|
|
0a7476 |
* All the other device types follow a very similar pattern -
|
|
|
0a7476 |
--
|
|
|
0a7476 |
2.21.0
|
|
|
0a7476 |
|