Re: [libvirt PATCH v2 3/3] qemu: add tests for the ISA debug console command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 02, 2022 at 12:44:45PM +0000, Daniel P. Berrangé wrote:
> +++ b/tests/qemuxml2argvdata/serial-debugcon.xml
> @@ -0,0 +1,29 @@
> +<domain type='qemu'>
> +  <name>QEMUGuest1</name>
> +  <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
> +  <memory unit='KiB'>219136</memory>
> +  <currentMemory unit='KiB'>219136</currentMemory>
> +  <vcpu placement='static'>1</vcpu>
> +  <os>
> +    <type arch='x86_64' machine='pc'>hvm</type>
> +    <boot dev='hd'/>
> +  </os>
> +  <clock offset='utc'/>
> +  <on_poweroff>destroy</on_poweroff>
> +  <on_reboot>restart</on_reboot>
> +  <on_crash>destroy</on_crash>
> +  <devices>
> +    <emulator>/usr/bin/qemu-system-x86_64</emulator>
> +    <disk type='block' device='disk'>
> +      <source dev='/dev/HostVG/QEMUGuest1'/>
> +      <target dev='hda' bus='ide'/>
> +      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
> +    </disk>

The <disk> part is irrelevant to the scenario we're testing here and
can be safely dropped.

> +    <serial type='pty'>
> +      <target type='isa-debug'>
> +        <model name='isa-debugcon'/>
> +      </target>

Turning this into

  <target type='isa-debug'/>

would ensure that <model> is filled in automatically with the correct
value.


Whether or not you decide do apply the changes suggested above

  Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>


I think this new feature warrants an entry in the release notes. Feel
free to post that as a follow-up :)

-- 
Andrea Bolognani / Red Hat / Virtualization





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux