mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
0eebdce995
Just like we check the resulting domain XML after ATTACH and DETACH, we should do the same after UPDATE action. This is as simple as calling testQemuHotplugCheckResult() and providing missing XMLs. For those test cases where no change is done, we can just make the expected XML a symlink to the input XML. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
118 lines
4.1 KiB
XML
118 lines
4.1 KiB
XML
<domain type='kvm' id='7'>
|
|
<name>f14</name>
|
|
<uuid>553effab-b5e1-2d80-dfe3-da4344826c43</uuid>
|
|
<memory unit='KiB'>1048576</memory>
|
|
<currentMemory unit='KiB'>1048576</currentMemory>
|
|
<vcpu placement='static'>2</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='cdrom'/>
|
|
<boot dev='hd'/>
|
|
<bootmenu enable='yes'/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<cpu mode='custom' match='exact' check='partial'>
|
|
<model fallback='allow'>core2duo</model>
|
|
<vendor>Intel</vendor>
|
|
<topology sockets='1' dies='1' cores='2' threads='1'/>
|
|
<feature policy='require' name='lahf_lm'/>
|
|
<feature policy='require' name='xtpr'/>
|
|
<feature policy='require' name='cx16'/>
|
|
<feature policy='require' name='tm2'/>
|
|
<feature policy='require' name='est'/>
|
|
<feature policy='require' name='vmx'/>
|
|
<feature policy='require' name='ds_cpl'/>
|
|
<feature policy='require' name='pbe'/>
|
|
<feature policy='require' name='tm'/>
|
|
<feature policy='require' name='ht'/>
|
|
<feature policy='require' name='ss'/>
|
|
<feature policy='require' name='acpi'/>
|
|
<feature policy='require' name='ds'/>
|
|
</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-x86_64</emulator>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='qcow2'/>
|
|
<source file='/var/lib/libvirt/images/f14.img'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<alias name='virtio-disk0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
|
</disk>
|
|
<disk type='file' device='cdrom'>
|
|
<driver name='qemu' type='raw'/>
|
|
<source file='/var/lib/libvirt/Fedora-14-x86_64-Live-KDE.iso'/>
|
|
<target dev='hdc' bus='ide'/>
|
|
<readonly/>
|
|
<alias name='ide0-1-0'/>
|
|
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
|
</disk>
|
|
<controller type='ide' index='0'>
|
|
<alias name='ide'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
</controller>
|
|
<controller type='virtio-serial' index='0'>
|
|
<alias name='virtio-serial0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
|
</controller>
|
|
<controller type='usb' index='0' model='piix3-uhci'>
|
|
<alias name='usb'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
</controller>
|
|
<controller type='pci' index='0' model='pci-root'>
|
|
<alias name='pci.0'/>
|
|
</controller>
|
|
<interface type='ethernet'>
|
|
<mac address='52:54:00:71:70:89'/>
|
|
<script path='/etc/qemu-ifup'/>
|
|
<model type='rtl8139'/>
|
|
<alias name='net0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<target type='isa-serial' port='0'>
|
|
<model name='isa-serial'/>
|
|
</target>
|
|
<alias name='serial0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target type='serial' port='0'/>
|
|
<alias name='serial0'/>
|
|
</console>
|
|
<input type='tablet' bus='usb'>
|
|
<alias name='input0'/>
|
|
<address type='usb' bus='0' port='1'/>
|
|
</input>
|
|
<input type='mouse' bus='ps2'>
|
|
<alias name='input1'/>
|
|
</input>
|
|
<input type='keyboard' bus='ps2'>
|
|
<alias name='input2'/>
|
|
</input>
|
|
<graphics type='spice' port='5900' autoport='no' passwd='secret' passwdValidTo='2013-05-31T16:11:22' connected='disconnect'>
|
|
<listen type='address'/>
|
|
</graphics>
|
|
<sound model='ac97'>
|
|
<alias name='sound0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
</sound>
|
|
<audio id='1' type='spice'/>
|
|
<video>
|
|
<model type='vga' vram='16384' heads='1' primary='yes'/>
|
|
<alias name='video0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
</video>
|
|
<memballoon model='virtio'>
|
|
<alias name='balloon0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
|
</memballoon>
|
|
</devices>
|
|
</domain>
|