diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py index af353ef1c0..9734f2f92e 100644 --- a/virttest/qemu_vm.py +++ b/virttest/qemu_vm.py @@ -627,6 +627,12 @@ def add_nic(devices, vlan, model=None, mac=None, device_id=None, if ctrl_mac_addr and ctrl_mac_addr in ["on", "off"]: dev.set_param('ctrl_mac_addr', ctrl_mac_addr) dev.set_param('mac', mac, dynamic=True) + + # passing romfile= tells QEMU to disable ROM entirely for + # this device + no_romfile = params.get("net_dev_disable_option_rom", None) + if no_romfile: + dev.set_param("romfile", "EMPTY_STRING") # only pci domain=0,bus=0,function=0 is supported for now. # # libvirt gains the pci_slot, free_pci_addr here,