libvirt/tests/qemuxml2argvdata/qemuxml2argv-cpu-s390-features.xml
Collin L. Walling d47db7b16d qemu: command: Support new cpu feature argument syntax
Qemu has abandoned the +/-feature syntax in favor of key=value. Some
architectures (s390) do not support +/-feature. So we update libvirt to handle
both formats.

If we detect a sufficiently new Qemu (indicated by support for qmp
query-cpu-model-expansion) we use key=value else we fall back to +/-feature.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
2017-01-06 12:24:57 +01:00

24 lines
709 B
XML

<domain type='kvm'>
<name>guest1</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<memory unit='KiB'>219100</memory>
<currentMemory unit='KiB'>219100</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='s390x' machine='s390-ccw-virtio'>hvm</type>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<cpu mode='custom' match='exact'>
<model fallback='forbid'>zEC12</model>
<feature policy='require' name='dfppc'/>
<feature policy='disable' name='stckf'/>
</cpu>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<memballoon model='none'/>
</devices>
</domain>