|
|
fbe740 |
From ea0983a0cca71ba3fdefe94881fe75ee624adf5f Mon Sep 17 00:00:00 2001
|
|
|
fbe740 |
Message-Id: <ea0983a0cca71ba3fdefe94881fe75ee624adf5f@dist-git>
|
|
|
fbe740 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
fbe740 |
Date: Wed, 4 Mar 2020 12:42:30 +0100
|
|
|
fbe740 |
Subject: [PATCH] qemu: use def instead of vm->def in qemuExtDevicesStart
|
|
|
fbe740 |
MIME-Version: 1.0
|
|
|
fbe740 |
Content-Type: text/plain; charset=UTF-8
|
|
|
fbe740 |
Content-Transfer-Encoding: 8bit
|
|
|
fbe740 |
|
|
|
fbe740 |
We have a helper variable to make the code more concise,
|
|
|
fbe740 |
use it consistently.
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
fbe740 |
(cherry picked from commit e2ca6eb08731255b9b7cf3e938d20f4eae9fb427)
|
|
|
fbe740 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
https://bugzilla.redhat.com/show_bug.cgi?id=1694166
|
|
|
fbe740 |
Message-Id: <3876fc88964781aec976d1a92b810aa9cf53c656.1583322090.git.jtomko@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
fbe740 |
---
|
|
|
fbe740 |
src/qemu/qemu_extdevice.c | 8 ++++----
|
|
|
fbe740 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
fbe740 |
|
|
|
fbe740 |
diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
|
|
|
fbe740 |
index 463f76c21a..1869a42f11 100644
|
|
|
fbe740 |
--- a/src/qemu/qemu_extdevice.c
|
|
|
fbe740 |
+++ b/src/qemu/qemu_extdevice.c
|
|
|
fbe740 |
@@ -159,11 +159,11 @@ qemuExtDevicesStart(virQEMUDriverPtr driver,
|
|
|
fbe740 |
int ret = 0;
|
|
|
fbe740 |
size_t i;
|
|
|
fbe740 |
|
|
|
fbe740 |
- if (qemuExtDevicesInitPaths(driver, vm->def) < 0)
|
|
|
fbe740 |
+ if (qemuExtDevicesInitPaths(driver, def) < 0)
|
|
|
fbe740 |
return -1;
|
|
|
fbe740 |
|
|
|
fbe740 |
- for (i = 0; i < vm->def->nvideos; i++) {
|
|
|
fbe740 |
- virDomainVideoDefPtr video = vm->def->videos[i];
|
|
|
fbe740 |
+ for (i = 0; i < def->nvideos; i++) {
|
|
|
fbe740 |
+ virDomainVideoDefPtr video = def->videos[i];
|
|
|
fbe740 |
|
|
|
fbe740 |
if (video->backend == VIR_DOMAIN_VIDEO_BACKEND_TYPE_VHOSTUSER) {
|
|
|
fbe740 |
ret = qemuExtVhostUserGPUStart(driver, vm, video);
|
|
|
fbe740 |
@@ -172,7 +172,7 @@ qemuExtDevicesStart(virQEMUDriverPtr driver,
|
|
|
fbe740 |
}
|
|
|
fbe740 |
}
|
|
|
fbe740 |
|
|
|
fbe740 |
- if (vm->def->tpm)
|
|
|
fbe740 |
+ if (def->tpm)
|
|
|
fbe740 |
ret = qemuExtTPMStart(driver, vm, incomingMigration);
|
|
|
fbe740 |
|
|
|
fbe740 |
for (i = 0; i < def->nnets; i++) {
|
|
|
fbe740 |
--
|
|
|
fbe740 |
2.25.1
|
|
|
fbe740 |
|