mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
Add test cases for loongarch
Add some basic test cases for loongarch. Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
This commit is contained in:
parent
ea3cae4dc9
commit
9ede5d22d5
166
tests/data/capabilities/kvm-loongarch64-domcaps.xml
Normal file
166
tests/data/capabilities/kvm-loongarch64-domcaps.xml
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
<domainCapabilities>
|
||||||
|
<path>/usr/bin/qemu-system-loongarch64</path>
|
||||||
|
<domain>kvm</domain>
|
||||||
|
<machine>virt</machine>
|
||||||
|
<arch>loongarch64</arch>
|
||||||
|
<vcpu max='256'/>
|
||||||
|
<iothreads supported='yes'/>
|
||||||
|
<os supported='yes'>
|
||||||
|
<enum name='firmware'>
|
||||||
|
<value>efi</value>
|
||||||
|
</enum>
|
||||||
|
<loader supported='yes'>
|
||||||
|
<value>/usr/share/edk2/loongarch64/QEMU_CODE.fd</value>
|
||||||
|
<enum name='type'>
|
||||||
|
<value>rom</value>
|
||||||
|
<value>pflash</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='readonly'>
|
||||||
|
<value>yes</value>
|
||||||
|
<value>no</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='secure'>
|
||||||
|
<value>no</value>
|
||||||
|
</enum>
|
||||||
|
</loader>
|
||||||
|
</os>
|
||||||
|
<cpu>
|
||||||
|
<mode name='host-passthrough' supported='yes'>
|
||||||
|
<enum name='hostPassthroughMigratable'>
|
||||||
|
<value>off</value>
|
||||||
|
</enum>
|
||||||
|
</mode>
|
||||||
|
<mode name='maximum' supported='yes'>
|
||||||
|
<enum name='maximumMigratable'>
|
||||||
|
<value>on</value>
|
||||||
|
<value>off</value>
|
||||||
|
</enum>
|
||||||
|
</mode>
|
||||||
|
<mode name='host-model' supported='no'/>
|
||||||
|
<mode name='custom' supported='yes'>
|
||||||
|
<model usable='unknown' vendor='unknown'>la464</model>
|
||||||
|
<model usable='unknown' vendor='unknown'>max</model>
|
||||||
|
<model usable='unknown' vendor='unknown'>la132</model>
|
||||||
|
</mode>
|
||||||
|
</cpu>
|
||||||
|
<memoryBacking supported='yes'>
|
||||||
|
<enum name='sourceType'>
|
||||||
|
<value>file</value>
|
||||||
|
<value>anonymous</value>
|
||||||
|
<value>memfd</value>
|
||||||
|
</enum>
|
||||||
|
</memoryBacking>
|
||||||
|
<devices>
|
||||||
|
<disk supported='yes'>
|
||||||
|
<enum name='diskDevice'>
|
||||||
|
<value>disk</value>
|
||||||
|
<value>cdrom</value>
|
||||||
|
<value>floppy</value>
|
||||||
|
<value>lun</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='bus'>
|
||||||
|
<value>fdc</value>
|
||||||
|
<value>scsi</value>
|
||||||
|
<value>virtio</value>
|
||||||
|
<value>usb</value>
|
||||||
|
<value>sata</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='model'>
|
||||||
|
<value>virtio</value>
|
||||||
|
<value>virtio-transitional</value>
|
||||||
|
<value>virtio-non-transitional</value>
|
||||||
|
</enum>
|
||||||
|
</disk>
|
||||||
|
<graphics supported='yes'>
|
||||||
|
<enum name='type'>
|
||||||
|
<value>sdl</value>
|
||||||
|
<value>vnc</value>
|
||||||
|
<value>spice</value>
|
||||||
|
<value>egl-headless</value>
|
||||||
|
<value>dbus</value>
|
||||||
|
</enum>
|
||||||
|
</graphics>
|
||||||
|
<video supported='yes'>
|
||||||
|
<enum name='modelType'>
|
||||||
|
<value>vga</value>
|
||||||
|
<value>cirrus</value>
|
||||||
|
<value>virtio</value>
|
||||||
|
<value>none</value>
|
||||||
|
<value>bochs</value>
|
||||||
|
<value>ramfb</value>
|
||||||
|
</enum>
|
||||||
|
</video>
|
||||||
|
<hostdev supported='yes'>
|
||||||
|
<enum name='mode'>
|
||||||
|
<value>subsystem</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='startupPolicy'>
|
||||||
|
<value>default</value>
|
||||||
|
<value>mandatory</value>
|
||||||
|
<value>requisite</value>
|
||||||
|
<value>optional</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='subsysType'>
|
||||||
|
<value>usb</value>
|
||||||
|
<value>pci</value>
|
||||||
|
<value>scsi</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='capsType'/>
|
||||||
|
<enum name='pciBackend'/>
|
||||||
|
</hostdev>
|
||||||
|
<rng supported='yes'>
|
||||||
|
<enum name='model'>
|
||||||
|
<value>virtio</value>
|
||||||
|
<value>virtio-transitional</value>
|
||||||
|
<value>virtio-non-transitional</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='backendModel'>
|
||||||
|
<value>random</value>
|
||||||
|
<value>egd</value>
|
||||||
|
<value>builtin</value>
|
||||||
|
</enum>
|
||||||
|
</rng>
|
||||||
|
<filesystem supported='yes'>
|
||||||
|
<enum name='driverType'>
|
||||||
|
<value>path</value>
|
||||||
|
<value>handle</value>
|
||||||
|
<value>virtiofs</value>
|
||||||
|
</enum>
|
||||||
|
</filesystem>
|
||||||
|
<tpm supported='no'/>
|
||||||
|
<redirdev supported='yes'>
|
||||||
|
<enum name='bus'>
|
||||||
|
<value>usb</value>
|
||||||
|
</enum>
|
||||||
|
</redirdev>
|
||||||
|
<channel supported='yes'>
|
||||||
|
<enum name='type'>
|
||||||
|
<value>pty</value>
|
||||||
|
<value>unix</value>
|
||||||
|
<value>spicevmc</value>
|
||||||
|
</enum>
|
||||||
|
</channel>
|
||||||
|
<crypto supported='yes'>
|
||||||
|
<enum name='model'>
|
||||||
|
<value>virtio</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='type'>
|
||||||
|
<value>qemu</value>
|
||||||
|
</enum>
|
||||||
|
<enum name='backendModel'>
|
||||||
|
<value>builtin</value>
|
||||||
|
<value>lkcf</value>
|
||||||
|
</enum>
|
||||||
|
</crypto>
|
||||||
|
</devices>
|
||||||
|
<features>
|
||||||
|
<gic supported='no'/>
|
||||||
|
<vmcoreinfo supported='yes'/>
|
||||||
|
<genid supported='no'/>
|
||||||
|
<backingStoreInput supported='yes'/>
|
||||||
|
<backup supported='yes'/>
|
||||||
|
<async-teardown supported='yes'/>
|
||||||
|
<sev supported='no'/>
|
||||||
|
<sgx supported='no'/>
|
||||||
|
</features>
|
||||||
|
</domainCapabilities>
|
71
tests/data/capabilities/kvm-loongarch64.xml
Normal file
71
tests/data/capabilities/kvm-loongarch64.xml
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<capabilities>
|
||||||
|
|
||||||
|
<host>
|
||||||
|
<uuid>21628021-9401-4aef-ad85-a26f109ec950</uuid>
|
||||||
|
<cpu>
|
||||||
|
<arch>loongarch64</arch>
|
||||||
|
<topology sockets='1' dies='1' clusters='1' cores='4' threads='1'/>
|
||||||
|
<pages unit='KiB' size='16'/>
|
||||||
|
<pages unit='KiB' size='32768'/>
|
||||||
|
</cpu>
|
||||||
|
<power_management>
|
||||||
|
<suspend_mem/>
|
||||||
|
</power_management>
|
||||||
|
<iommu support='no'/>
|
||||||
|
<migration_features>
|
||||||
|
<live/>
|
||||||
|
<uri_transports>
|
||||||
|
<uri_transport>tcp</uri_transport>
|
||||||
|
<uri_transport>rdma</uri_transport>
|
||||||
|
</uri_transports>
|
||||||
|
</migration_features>
|
||||||
|
<topology>
|
||||||
|
<cells num='1'>
|
||||||
|
<cell id='0'>
|
||||||
|
<memory unit='KiB'>16532032</memory>
|
||||||
|
<pages unit='KiB' size='16'>1033252</pages>
|
||||||
|
<pages unit='KiB' size='32768'>0</pages>
|
||||||
|
<distances>
|
||||||
|
<sibling id='0' value='10'/>
|
||||||
|
</distances>
|
||||||
|
<cpus num='4'>
|
||||||
|
<cpu id='0' socket_id='0' die_id='0' cluster_id='0' core_id='0' siblings='0'/>
|
||||||
|
<cpu id='1' socket_id='0' die_id='0' cluster_id='0' core_id='1' siblings='1'/>
|
||||||
|
<cpu id='2' socket_id='0' die_id='0' cluster_id='0' core_id='2' siblings='2'/>
|
||||||
|
<cpu id='3' socket_id='0' die_id='0' cluster_id='0' core_id='3' siblings='3'/>
|
||||||
|
</cpus>
|
||||||
|
</cell>
|
||||||
|
</cells>
|
||||||
|
</topology>
|
||||||
|
<secmodel>
|
||||||
|
<model>none</model>
|
||||||
|
<doi>0</doi>
|
||||||
|
</secmodel>
|
||||||
|
<secmodel>
|
||||||
|
<model>dac</model>
|
||||||
|
<doi>0</doi>
|
||||||
|
<baselabel type='kvm'>+964:+964</baselabel>
|
||||||
|
<baselabel type='qemu'>+964:+964</baselabel>
|
||||||
|
</secmodel>
|
||||||
|
</host>
|
||||||
|
|
||||||
|
<guest>
|
||||||
|
<os_type>hvm</os_type>
|
||||||
|
<arch name='loongarch64'>
|
||||||
|
<wordsize>64</wordsize>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<machine maxCpus='256'>virt</machine>
|
||||||
|
<machine maxCpus='1'>x-remote</machine>
|
||||||
|
<domain type='qemu'/>
|
||||||
|
<domain type='kvm'/>
|
||||||
|
</arch>
|
||||||
|
<features>
|
||||||
|
<acpi default='on' toggle='yes'/>
|
||||||
|
<cpuselection/>
|
||||||
|
<deviceboot/>
|
||||||
|
<disksnapshot default='on' toggle='no'/>
|
||||||
|
<externalSnapshot/>
|
||||||
|
</features>
|
||||||
|
</guest>
|
||||||
|
|
||||||
|
</capabilities>
|
154
tests/data/cli/compare/virt-install-loongarch64-cdrom.xml
Normal file
154
tests/data/cli/compare/virt-install-loongarch64-cdrom.xml
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<boot dev="cdrom"/>
|
||||||
|
<boot dev="hd"/>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2" discard="unmap"/>
|
||||||
|
<source file="/var/lib/libvirt/images/fedora29.qcow2"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<disk type="file" device="cdrom">
|
||||||
|
<driver name="qemu"/>
|
||||||
|
<source file="TESTSUITE_SCRUBBED/tests/data/fakemedia/fake-f26-netinst.iso"/>
|
||||||
|
<target dev="sda" bus="scsi"/>
|
||||||
|
<readonly/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="scsi" model="virtio-scsi"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
</devices>
|
||||||
|
<on_reboot>destroy</on_reboot>
|
||||||
|
</domain>
|
||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<boot dev="hd"/>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2" discard="unmap"/>
|
||||||
|
<source file="/var/lib/libvirt/images/fedora29.qcow2"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<disk type="file" device="cdrom">
|
||||||
|
<target dev="sda" bus="scsi"/>
|
||||||
|
<readonly/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="scsi" model="virtio-scsi"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
152
tests/data/cli/compare/virt-install-loongarch64-cloud-init.xml
Normal file
152
tests/data/cli/compare/virt-install-loongarch64-cloud-init.xml
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2"/>
|
||||||
|
<source file="/pool-dir/testvol1.img"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
<disk type="file" device="cdrom">
|
||||||
|
<driver name="qemu" type="raw"/>
|
||||||
|
<source file="/VIRTINST-TESTSUITE/cloudinit.iso"/>
|
||||||
|
<target dev="sda" bus="scsi"/>
|
||||||
|
<readonly/>
|
||||||
|
</disk>
|
||||||
|
<controller type="scsi" model="virtio-scsi"/>
|
||||||
|
</devices>
|
||||||
|
<on_reboot>destroy</on_reboot>
|
||||||
|
</domain>
|
||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<boot dev="hd"/>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2"/>
|
||||||
|
<source file="/pool-dir/testvol1.img"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
<disk type="file" device="cdrom">
|
||||||
|
<target dev="sda" bus="scsi"/>
|
||||||
|
<readonly/>
|
||||||
|
</disk>
|
||||||
|
<controller type="scsi" model="virtio-scsi"/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
70
tests/data/cli/compare/virt-install-loongarch64-graphics.xml
Normal file
70
tests/data/cli/compare/virt-install-loongarch64-graphics.xml
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<boot dev="hd"/>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2"/>
|
||||||
|
<source file="/pool-dir/testvol1.img"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
58
tests/data/cli/compare/virt-install-loongarch64-headless.xml
Normal file
58
tests/data/cli/compare/virt-install-loongarch64-headless.xml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<boot dev="hd"/>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2"/>
|
||||||
|
<source file="/pool-dir/testvol1.img"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -0,0 +1,72 @@
|
|||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<kernel>/kernel.img</kernel>
|
||||||
|
<initrd>/initrd.img</initrd>
|
||||||
|
<cmdline>root=/dev/vda2</cmdline>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2"/>
|
||||||
|
<source file="/pool-dir/testvol1.img"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
152
tests/data/cli/compare/virt-install-loongarch64-unattended.xml
Normal file
152
tests/data/cli/compare/virt-install-loongarch64-unattended.xml
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2" discard="unmap"/>
|
||||||
|
<source file="/var/lib/libvirt/images/fedora29.qcow2"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
<disk type="file" device="cdrom">
|
||||||
|
<driver name="qemu" type="raw"/>
|
||||||
|
<source file="/VIRTINST-TESTSUITE/unattended.iso"/>
|
||||||
|
<target dev="sda" bus="scsi"/>
|
||||||
|
<readonly/>
|
||||||
|
</disk>
|
||||||
|
<controller type="scsi" model="virtio-scsi"/>
|
||||||
|
</devices>
|
||||||
|
<on_reboot>destroy</on_reboot>
|
||||||
|
</domain>
|
||||||
|
<domain type="kvm">
|
||||||
|
<name>fedora29</name>
|
||||||
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||||
|
<metadata>
|
||||||
|
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
|
||||||
|
<libosinfo:os id="http://fedoraproject.org/fedora/29"/>
|
||||||
|
</libosinfo:libosinfo>
|
||||||
|
</metadata>
|
||||||
|
<memory>65536</memory>
|
||||||
|
<currentMemory>65536</currentMemory>
|
||||||
|
<vcpu>2</vcpu>
|
||||||
|
<os firmware="efi">
|
||||||
|
<type arch="loongarch64" machine="virt">hvm</type>
|
||||||
|
<boot dev="hd"/>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<acpi/>
|
||||||
|
</features>
|
||||||
|
<clock offset="utc"/>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-loongarch64</emulator>
|
||||||
|
<disk type="file" device="disk">
|
||||||
|
<driver name="qemu" type="qcow2" discard="unmap"/>
|
||||||
|
<source file="/var/lib/libvirt/images/fedora29.qcow2"/>
|
||||||
|
<target dev="vda" bus="virtio"/>
|
||||||
|
</disk>
|
||||||
|
<controller type="usb" model="qemu-xhci" ports="15"/>
|
||||||
|
<controller type="pci" model="pcie-root"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<controller type="pci" model="pcie-root-port"/>
|
||||||
|
<interface type="bridge">
|
||||||
|
<source bridge="testsuitebr0"/>
|
||||||
|
<mac address="00:11:22:33:44:55"/>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</interface>
|
||||||
|
<console type="pty"/>
|
||||||
|
<channel type="unix">
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
<channel type="spicevmc">
|
||||||
|
<target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
<image compression="off"/>
|
||||||
|
</graphics>
|
||||||
|
<sound model="ich9"/>
|
||||||
|
<video>
|
||||||
|
<model type="virtio"/>
|
||||||
|
</video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
</rng>
|
||||||
|
<disk type="file" device="cdrom">
|
||||||
|
<target dev="sda" bus="scsi"/>
|
||||||
|
<readonly/>
|
||||||
|
</disk>
|
||||||
|
<controller type="scsi" model="virtio-scsi"/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -73,6 +73,7 @@ TEST_DATA = {
|
|||||||
'URI-KVM-X86': utils.URIs.kvm_x86,
|
'URI-KVM-X86': utils.URIs.kvm_x86,
|
||||||
'URI-KVM-ARMV7L': utils.URIs.kvm_armv7l,
|
'URI-KVM-ARMV7L': utils.URIs.kvm_armv7l,
|
||||||
'URI-KVM-AARCH64': utils.URIs.kvm_aarch64,
|
'URI-KVM-AARCH64': utils.URIs.kvm_aarch64,
|
||||||
|
'URI-KVM-LOONGARCH64': utils.URIs.kvm_loongarch64,
|
||||||
'URI-KVM-PPC64LE': utils.URIs.kvm_ppc64le,
|
'URI-KVM-PPC64LE': utils.URIs.kvm_ppc64le,
|
||||||
'URI-KVM-S390X': utils.URIs.kvm_s390x,
|
'URI-KVM-S390X': utils.URIs.kvm_s390x,
|
||||||
'URI-QEMU-RISCV64': utils.URIs.qemu_riscv64,
|
'URI-QEMU-RISCV64': utils.URIs.qemu_riscv64,
|
||||||
@ -1207,6 +1208,19 @@ c.add_compare("--connect %(URI-KVM-AARCH64)s --disk %(EXISTIMG1)s --os-variant f
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# loongarch64 tests #
|
||||||
|
#####################
|
||||||
|
|
||||||
|
c.add_compare("--connect %(URI-KVM-LOONGARCH64)s --arch loongarch64 --osinfo fedora29 --import --disk %(EXISTIMG1)s --network default --graphics none", "loongarch64-headless")
|
||||||
|
c.add_compare("--connect %(URI-KVM-LOONGARCH64)s --arch loongarch64 --osinfo fedora29 --import --disk %(EXISTIMG1)s --network default --graphics spice", "loongarch64-graphics")
|
||||||
|
c.add_compare("--connect %(URI-KVM-LOONGARCH64)s --arch loongarch64 --osinfo fedora29 --import --disk %(EXISTIMG1)s --boot kernel=/kernel.img,initrd=/initrd.img,cmdline='root=/dev/vda2'", "loongarch64-kernel-boot")
|
||||||
|
c.add_compare("--connect %(URI-KVM-LOONGARCH64)s --arch loongarch64 --osinfo fedora29 --import --disk %(EXISTIMG1)s --cloud-init", "loongarch64-cloud-init")
|
||||||
|
c.add_compare("--connect %(URI-KVM-LOONGARCH64)s --arch loongarch64 --osinfo fedora29 --cdrom %(ISO-F26-NETINST)s", "loongarch64-cdrom")
|
||||||
|
c.add_compare("--connect %(URI-KVM-LOONGARCH64)s --arch loongarch64 --osinfo fedora29 --unattended", "loongarch64-unattended")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# AMD sev tests #
|
# AMD sev tests #
|
||||||
#################
|
#################
|
||||||
|
@ -105,6 +105,7 @@ class _URIs(object):
|
|||||||
self.kvm_ppc64le = _uri_qemu + _caps("kvm-ppc64le.xml") + _domcaps("kvm-ppc64le-domcaps.xml")
|
self.kvm_ppc64le = _uri_qemu + _caps("kvm-ppc64le.xml") + _domcaps("kvm-ppc64le-domcaps.xml")
|
||||||
self.kvm_s390x = _uri_qemu + _caps("kvm-s390x.xml") + _domcaps("kvm-s390x-domcaps.xml")
|
self.kvm_s390x = _uri_qemu + _caps("kvm-s390x.xml") + _domcaps("kvm-s390x-domcaps.xml")
|
||||||
self.qemu_riscv64 = _uri_qemu + _caps("qemu-riscv64.xml") + _domcaps("qemu-riscv64-domcaps.xml")
|
self.qemu_riscv64 = _uri_qemu + _caps("qemu-riscv64.xml") + _domcaps("qemu-riscv64-domcaps.xml")
|
||||||
|
self.kvm_loongarch64 = _uri_qemu + _caps("kvm-loongarch64.xml") + _domcaps("kvm-loongarch64-domcaps.xml")
|
||||||
|
|
||||||
# hvf
|
# hvf
|
||||||
self.hvf_x86 = _uri_qemu + _caps("hvf-x86_64.xml") + _domcaps("hvf-x86_64-domcaps.xml")
|
self.hvf_x86 = _uri_qemu + _caps("hvf-x86_64.xml") + _domcaps("hvf-x86_64-domcaps.xml")
|
||||||
|
Loading…
Reference in New Issue
Block a user