]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: hotplug: report error when changing rom enabled attr for net iface
authorKaterina Koukiou <kkoukiou@redhat.com>
Fri, 13 Jul 2018 13:07:58 +0000 (15:07 +0200)
committerKaterina Koukiou <kkoukiou@redhat.com>
Mon, 16 Jul 2018 08:46:19 +0000 (10:46 +0200)
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1599513

Signed-off-by: Katerina Koukiou <kkoukiou@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c

index 2e13cab23336b8eab5eb9cec7b79bfddfc5edace..2b6633a9981da1b8a7a6b8cdfeb4fdd1d487e587 100644 (file)
@@ -3225,6 +3225,11 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,
                        _("cannot modify network device boot index setting"));
         goto cleanup;
     }
+    if (olddev->info.romenabled != newdev->info.romenabled) {
+        virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
+                       _("cannot modify network device rom enabled setting"));
+        goto cleanup;
+    }
     /* (end of device info checks) */
 
     if (STRNEQ_NULLABLE(olddev->filter, newdev->filter) ||