libvirt/tests/qemuxml2argvdata/qemuxml2argv-pseries-phb-invalid-target-index-3.xml
Andrea Bolognani 64357c3f93 conf: Use the correct limit for the number of PHBs
I mistakenly thought pSeries guests supported 32 PHBs,
but it turns out they only support 31. Validate the
target index accordingly.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1479647

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2017-08-21 13:11:49 +02:00

20 lines
624 B
XML

<domain type='qemu'>
<name>QEMUGuest1</name>
<uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
<memory unit='KiB'>524288</memory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='ppc64' machine='pseries'>hvm</type>
</os>
<devices>
<emulator>/usr/bin/qemu-system-ppc64</emulator>
<!-- QEMU only supports 31 PHBs with target index in the range 0-30,
so attempting to use target index 31 should fail -->
<controller type='pci' model='pci-root'>
<target index='31'/>
</controller>
<controller type='usb' model='none'/>
<memballoon model='none'/>
</devices>
</domain>