mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Build correct command line for PCI NICs on ARM
Legacy -net option works correctly only with embedded device models, which do not require any bus specification. Therefore, we should use -device for PCI hardware Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
This commit is contained in:
parent
e8d5517254
commit
8b78ec011c
@ -457,7 +457,8 @@ qemuDomainSupportsNicdev(virDomainDefPtr def,
|
|||||||
/* non-virtio ARM nics require legacy -net nic */
|
/* non-virtio ARM nics require legacy -net nic */
|
||||||
if (((def->os.arch == VIR_ARCH_ARMV7L) ||
|
if (((def->os.arch == VIR_ARCH_ARMV7L) ||
|
||||||
(def->os.arch == VIR_ARCH_AARCH64)) &&
|
(def->os.arch == VIR_ARCH_AARCH64)) &&
|
||||||
net->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO)
|
net->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO &&
|
||||||
|
net->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user