[libvirt] [PATCH v2 2/2] qemu: implement debugcon-isa chardev
Andrea Bolognani
abologna at redhat.com
Fri Feb 8 15:02:38 UTC 2019
On Thu, 2019-02-07 at 14:31 +0300, Nikolay Shirokovskiy wrote:
[...]
> @@ -393,9 +393,11 @@ qemuBuildDeviceAddressStr(virBufferPtr buf,
> info->addr.ccw.ssid,
> info->addr.ccw.devno);
> } else if (info->type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_ISA) {
> - virBufferAsprintf(buf, ",iobase=0x%x,irq=0x%x",
> - info->addr.isa.iobase,
> - info->addr.isa.irq);
> + if (info->addr.isa.iobase)
> + virBufferAsprintf(buf, ",iobase=0x%x", info->addr.isa.iobase);
> +
> + if (info->addr.isa.irq)
> + virBufferAsprintf(buf, ",irq=0x%x", info->addr.isa.irq);
It's entirely unclear to me why you're doing this. Can you please
provide some explanation?
Also note that this won't just affect isa-debugcon but also any
other device with an ISA address, so I really don't think you can
just go ahead and change it without breaking existing guests.
[...]
> +++ b/tests/qemuxml2argvtest.c
> @@ -1490,6 +1490,7 @@ mymain(void)
> QEMU_CAPS_DEVICE_ISA_SERIAL);
> DO_TEST("pci-serial-dev-chardev",
> QEMU_CAPS_DEVICE_PCI_SERIAL);
> + DO_TEST("isa-serial-debugcon", NONE);
>
> DO_TEST("channel-guestfwd", NONE);
> DO_TEST_CAPS_VER("channel-unix-guestfwd", "2.5.0");
If you had included this hunk in the previous commit, then the
QEMU command line would have been generated right away... I don't
think this belongs in a separate commit.
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list