[PATCH 3/6] tests: add test cases for device pvpanic-pci

Andrea Bolognani abologna at redhat.com
Thu Feb 9 15:47:45 UTC 2023


On Wed, Feb 08, 2023 at 12:49:02PM +0100, Kristina Hanicova wrote:
> +++ b/tests/qemuxml2argvdata/pvpanic-pci-aarch64.xml
> @@ -0,0 +1,20 @@
> +<domain type='qemu'>
> +  <name>guest</name>
> +  <uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
> +  <memory unit='KiB'>1048576</memory>
> +  <vcpu placement='static'>1</vcpu>
> +  <os firmware='efi'>
> +    <type arch='aarch64' machine='virt-6.0'>hvm</type>
> +  </os>
> +  <features>
> +    <acpi/>
> +  </features>
> +  <devices>
> +    <emulator>/usr/bin/qemu-system-aarch64</emulator>
> +    <controller type='usb' model='none'/>
> +    <memballoon model='virtio'/>

You can use

  <memballoon model='none'/>

here and in the other input XMLs for slightly smaller output files.

> +    <panic model='pvpanic'>
> +      <address type='pci' domain='0x0000' bus='0x04' slot='0x01' function='0x0'/>
> +    </panic>

This explicit address could be on pcie.0, e.g.

  <address type='pci' domain='0x0000' bus='0x0' slot='0x04' function='0x0'/>

to prevent the pcie-pci-bridge and pci-bridge controllers from being
added and, again, produce slightly smaller output files.

More discussion about device placement in the upcoming reply to a
later patch :)

-- 
Andrea Bolognani / Red Hat / Virtualization



More information about the libvir-list mailing list