[libvirt PATCH v2 0/3] qemu: support the SeaBIOS/EDK2 debug console

Daniel P. Berrangé posted 3 patches 2 years, 2 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220202124445.503425-1-berrange@redhat.com
docs/formatdomain.rst                         | 14 +++---
docs/schemas/domaincommon.rng                 |  2 +
src/conf/domain_conf.c                        | 26 +++++++++--
src/conf/domain_conf.h                        |  2 +
src/qemu/qemu_command.c                       |  2 +
src/qemu/qemu_domain.c                        |  4 ++
src/qemu/qemu_domain_address.c                |  1 +
src/qemu/qemu_validate.c                      |  5 +++
.../serial-debugcon.x86_64-latest.args        | 39 +++++++++++++++++
tests/qemuxml2argvdata/serial-debugcon.xml    | 29 +++++++++++++
tests/qemuxml2argvtest.c                      |  1 +
tests/qemuxml2xmloutdata/serial-debugcon.xml  | 43 +++++++++++++++++++
tests/qemuxml2xmltest.c                       |  1 +
13 files changed, 161 insertions(+), 8 deletions(-)
create mode 100644 tests/qemuxml2argvdata/serial-debugcon.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/serial-debugcon.xml
create mode 100644 tests/qemuxml2xmloutdata/serial-debugcon.xml
[libvirt PATCH v2 0/3] qemu: support the SeaBIOS/EDK2 debug console
Posted by Daniel P. Berrangé 2 years, 2 months ago
 # virsh dumpxml fedora34x86_64 | xmllint  -xpath '/domain/devices/console[2]' -
    <serial type="pty">
      <target type="isa-debug">
        <model type="isa-debugcon"/>
      </target>
      <address type="isa" iobase="0x402"/>
    </serial>

 # virsh console --devname console1 fedora34x86_64

Of course you really want to start the guest paused initially to allow
time to connect to the console before resuming CPUs, and thus be able
to catch early firmware output.

In v2:

 - Use <serial> instead of <console>

Daniel P. Berrangé (3):
  conf: validate serial port model in ABI checks
  conf: support firmware ISA debug console
  qemu: add tests for the ISA debug console command line

 docs/formatdomain.rst                         | 14 +++---
 docs/schemas/domaincommon.rng                 |  2 +
 src/conf/domain_conf.c                        | 26 +++++++++--
 src/conf/domain_conf.h                        |  2 +
 src/qemu/qemu_command.c                       |  2 +
 src/qemu/qemu_domain.c                        |  4 ++
 src/qemu/qemu_domain_address.c                |  1 +
 src/qemu/qemu_validate.c                      |  5 +++
 .../serial-debugcon.x86_64-latest.args        | 39 +++++++++++++++++
 tests/qemuxml2argvdata/serial-debugcon.xml    | 29 +++++++++++++
 tests/qemuxml2argvtest.c                      |  1 +
 tests/qemuxml2xmloutdata/serial-debugcon.xml  | 43 +++++++++++++++++++
 tests/qemuxml2xmltest.c                       |  1 +
 13 files changed, 161 insertions(+), 8 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/serial-debugcon.x86_64-latest.args
 create mode 100644 tests/qemuxml2argvdata/serial-debugcon.xml
 create mode 100644 tests/qemuxml2xmloutdata/serial-debugcon.xml

-- 
2.34.1