libvirt/tests/genericxml2xmlindata
Martin Kletzander e95b81c2fd conf: Generate MAC address instead of keeping all zeroes
When we parse <mac address="00:00:00:00:00:00"/> we keep that in memory
and pass it down to the hypervisor. However, that MAC address is not
strictly valid as it is not marked as locally administered (bit 0x02)
but it is not even globally unique. It is also used for loopback device
on Linux, for example. And QEMU sees such MAC address just as "not
specified" and generates a new one that libvirt does not even know
about. So to make the overall experience better we now generate it if
the supplied one is all clear.

Resolves: https://issues.redhat.com/browse/RHEL-974

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2023-09-04 16:01:24 +02:00
..
cachetune-cdp.xml
cachetune-colliding-allocs.xml
cachetune-colliding-monitor.xml
cachetune-colliding-tunes.xml
cachetune-colliding-types.xml
cachetune-extra-tunes.xml
cachetune-small.xml
cachetune.xml
chardev-reconnect-invalid-mode.xml
chardev-reconnect-missing-timeout.xml
chardev-reconnect.xml
chardev-tcp-missing-host.xml
chardev-tcp-missing-service.xml
chardev-tcp-multiple-source.xml
chardev-tcp.xml
chardev-udp-missing-connect-service.xml
chardev-udp-multiple-source.xml
chardev-udp.xml
chardev-unix-redirdev-missing-path.xml
chardev-unix-rng-missing-path.xml
chardev-unix-smartcard-missing-path.xml
chardev-unix.xml
cpu-cache-disable.xml
cpu-cache-emulate.xml
cpu-cache-passthrough.xml
cpu-phys-bits-emulate.xml
cpu-phys-bits-passthrough.xml
cputune.xml
device-backenddomain.xml
disk-hyperv-physical.xml
disk-hyperv-virtual.xml
disk-network-http.xml
disk-virtio.xml
fibrechannel-appid.xml
graphics-listen-back-compat-mismatch.xml
graphics-listen-back-compat.xml
graphics-listen-network-invalid.xml
graphics-vnc-autoport-no.xml
graphics-vnc-listen-attr-only.xml
graphics-vnc-listen-element-minimal.xml
graphics-vnc-listen-element-with-address.xml
graphics-vnc-manual-port.xml
graphics-vnc-minimal.xml
graphics-vnc-socket-attr-listen-address.xml
graphics-vnc-socket-attr-listen-socket-mismatch.xml
graphics-vnc-socket-attr-listen-socket.xml
graphics-vnc-socket-listen.xml
graphics-vnc-socket.xml
iothreadids.xml
launch-security-s390-pv.xml
launch-security-sev.xml
memorytune-colliding-allocs.xml
memorytune-colliding-cachetune.xml
memorytune.xml
name-slash-fail.xml
network-interface-mac-check.xml
network-interface-mac-clear.xml
perf.xml
tseg.xml
vcpus-individual.xml