libvirt/tests/qemuxml2argvdata/qemuxml2argv-pseries-vio.xml
Michael Ellerman 4b942fe860 tests: Add qemuxml2argv tests for PPC64 pseries machine
Add four tests of the XML -> argv handling for the PPC64 pseries machine.

The first is just a basic test of a bare bones machine.

The three others test various aspects of the spapr-vio address handling.

It seems that currently we can't include network devices, doing so leads
to a segfault because the network driverState is not initialised. Working
around that leads us to the problem that the 'default' network doesn't
exist. So for now just leave network devices out.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
2012-01-13 16:10:43 -07:00

43 lines
1.0 KiB
XML

<domain type='qemu'>
<name>QEMUGuest1</name>
<uuid>2754dd7b-ac8a-4850-aec0-1f3fcd43235b</uuid>
<memory>524288</memory>
<vcpu>1</vcpu>
<os>
<type arch='ppc64' machine='pseries'>hvm</type>
</os>
<clock offset='utc'/>
<devices>
<emulator>/usr/bin/qemu-system-ppc64</emulator>
<console type='pty'>
<address type="spapr-vio"/>
</console>
<!-- Two serials, first is the console -->
<serial type="pty">
<address type="spapr-vio"/>
</serial>
<serial type="pty">
<address type="spapr-vio"/>
</serial>
<!-- One disk -->
<disk type="file" device="disk">
<driver name="qemu" type="raw"/>
<source file="/tmp/scsidisk.img"/>
<target dev="sda" bus="scsi"/>
<address type="drive" controller="1"/>
</disk>
<!-- Two SCSI controllers -->
<controller type="scsi" index="1">
<address type="spapr-vio"/>
</controller>
<controller type="scsi" index="0">
<address type="spapr-vio"/>
</controller>
<memballoon model="none"/>
</devices>
</domain>