mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
ee7168e6f9
This patch adds and fixes test cases for cpu mode attribute. Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> (crobinso: Minor rebase tweaks)
31 lines
767 B
XML
31 lines
767 B
XML
<domain type="kvm">
|
|
<name>TestGuest</name>
|
|
<currentMemory>204800</currentMemory>
|
|
<memory>409600</memory>
|
|
<uuid>12345678-1234-1234-1234-123456789012</uuid>
|
|
<os>
|
|
<type arch="i686">hvm</type>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<vcpu cpuset="1-3">4</vcpu>
|
|
<devices>
|
|
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
|
<disk type="block" device="cdrom">
|
|
<target dev="hdc" bus="ide"/>
|
|
<readonly/>
|
|
</disk>
|
|
</devices>
|
|
<features>
|
|
<acpi/>
|
|
</features>
|
|
<clock offset="utc"/>
|
|
<seclabel model="testSecurity" type="static">
|
|
<label>frob</label>
|
|
</seclabel>
|
|
<cpu mode="custom" match="exact">
|
|
<model>foobar</model>
|
|
<topology cores="4" sockets="1" threads="1"/>
|
|
<feature policy="forbid" name="x2apic"/>
|
|
</cpu>
|
|
</domain>
|