mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
a1a3da94f5
Allow generation of command line for virtio-sound-pci and virtio-sound-device devices along with additional virtio options. A new testcase is added to test virtio-sound-pci. The arm-vexpressa9-virtio testcase is also extended to test virtio-sound-device. Signed-off-by: Rayhan Faizel <rayhan.faizel@gmail.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
60 lines
1.8 KiB
XML
60 lines
1.8 KiB
XML
<domain type='qemu'>
|
|
<name>armtest</name>
|
|
<uuid>496d7ea8-9739-544b-4ebd-ef08be936e6a</uuid>
|
|
<memory unit='KiB'>1048576</memory>
|
|
<currentMemory unit='KiB'>1048576</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type arch='armv7l' machine='vexpress-a9'>hvm</type>
|
|
<kernel>/arm.kernel</kernel>
|
|
<initrd>/arm.initrd</initrd>
|
|
<cmdline>console=ttyAMA0,115200n8 rw root=/dev/vda3 rootwait physmap.enabled=0</cmdline>
|
|
<dtb>/arm.dtb</dtb>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<cpu mode='custom' match='exact' check='none'>
|
|
<model fallback='forbid'>cortex-a9</model>
|
|
</cpu>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-aarch64</emulator>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source file='/arm.raw'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<address type='virtio-mmio'/>
|
|
</disk>
|
|
<controller type='virtio-serial' index='0'>
|
|
<address type='virtio-mmio'/>
|
|
</controller>
|
|
<interface type='user'>
|
|
<mac address='52:54:00:09:a4:37'/>
|
|
<model type='virtio'/>
|
|
<address type='virtio-mmio'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target type='serial' port='0'/>
|
|
</console>
|
|
<console type='pty'>
|
|
<target type='virtio' port='1'/>
|
|
</console>
|
|
<sound model='virtio' streams='2'>
|
|
<address type='virtio-mmio'/>
|
|
</sound>
|
|
<audio id='1' type='none'/>
|
|
<memballoon model='virtio'>
|
|
<address type='virtio-mmio'/>
|
|
</memballoon>
|
|
<rng model='virtio'>
|
|
<backend model='random'>/dev/random</backend>
|
|
<address type='virtio-mmio'/>
|
|
</rng>
|
|
</devices>
|
|
</domain>
|