|
|
edecca |
From ddc505c4dd054d6d92099d467ba255eabcb84922 Mon Sep 17 00:00:00 2001
|
|
|
edecca |
Message-Id: <ddc505c4dd054d6d92099d467ba255eabcb84922@dist-git>
|
|
|
edecca |
From: Katerina Koukiou <kkoukiou@redhat.com>
|
|
|
edecca |
Date: Mon, 16 Jul 2018 11:42:28 +0200
|
|
|
edecca |
Subject: [PATCH] qemu: hotplug: report error when changing rom enabled attr
|
|
|
edecca |
for net iface
|
|
|
edecca |
MIME-Version: 1.0
|
|
|
edecca |
Content-Type: text/plain; charset=UTF-8
|
|
|
edecca |
Content-Transfer-Encoding: 8bit
|
|
|
edecca |
|
|
|
edecca |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1599513
|
|
|
edecca |
|
|
|
edecca |
Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
|
|
|
edecca |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
edecca |
(cherry picked from commit 611b038fb60e23eb574148192090f33bc7264be2)
|
|
|
edecca |
Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
|
|
|
edecca |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
edecca |
---
|
|
|
edecca |
src/qemu/qemu_hotplug.c | 5 +++++
|
|
|
edecca |
1 file changed, 5 insertions(+)
|
|
|
edecca |
|
|
|
edecca |
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
|
|
|
edecca |
index 3d0f1055d9..91a751a2fe 100644
|
|
|
edecca |
--- a/src/qemu/qemu_hotplug.c
|
|
|
edecca |
+++ b/src/qemu/qemu_hotplug.c
|
|
|
edecca |
@@ -3222,6 +3222,11 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,
|
|
|
edecca |
_("cannot modify network device boot index setting"));
|
|
|
edecca |
goto cleanup;
|
|
|
edecca |
}
|
|
|
edecca |
+ if (olddev->info.romenabled != newdev->info.romenabled) {
|
|
|
edecca |
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
|
|
edecca |
+ _("cannot modify network device rom enabled setting"));
|
|
|
edecca |
+ goto cleanup;
|
|
|
edecca |
+ }
|
|
|
edecca |
/* (end of device info checks) */
|
|
|
edecca |
|
|
|
edecca |
if (STRNEQ_NULLABLE(olddev->filter, newdev->filter) ||
|
|
|
edecca |
--
|
|
|
edecca |
2.18.0
|
|
|
edecca |
|