docs: make isa-debugcon example more useful / directly applicable

The type='pty' attribute in the <serial> element causes a Pseudo TTY to be
allocated on the host side via "/dev/ptmx", which is meant to be
interacted with via "virsh console" or similar.

That's not how a firmware log is typically viewed or saved. Replace
type='pty' with type='file', and also provide an example <source> element
(with the pathname of the logfile), similarly to how the <serial> example
just above provides a <source> element too.

Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Andrea Bolognani <abologna@redhat.com>
Updates: 654968381d
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Laszlo Ersek 2023-05-18 14:59:39 +02:00 committed by Ján Tomko
parent f06d15b512
commit 90404c5368

View File

@ -6631,9 +6631,10 @@ Serial port
<target port='0'/>
</serial>
<!-- Debug port for SeaBIOS / EDK II -->
<serial type='pty'>
<serial type='file'>
<target type='isa-debug'/>
<address type='isa' iobase='0x402'/>
<source path='/tmp/DOMAIN-ovmf.log'/>
</serial>
</devices>