mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: libxl: ACPI slic table test
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This commit is contained in:
parent
03e98a52d2
commit
f2899e44d9
53
tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
Normal file
53
tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"c_info": {
|
||||
"type": "hvm",
|
||||
"name": "XenGuest2",
|
||||
"uuid": "c7a5fdb2-cdaf-9455-926a-d65c16db1809"
|
||||
},
|
||||
"b_info": {
|
||||
"max_vcpus": 1,
|
||||
"avail_vcpus": [
|
||||
0
|
||||
],
|
||||
"max_memkb": 592896,
|
||||
"target_memkb": 403456,
|
||||
"shadow_memkb": 5656,
|
||||
"sched_params": {
|
||||
},
|
||||
"type.hvm": {
|
||||
"pae": "True",
|
||||
"apic": "True",
|
||||
"acpi": "True",
|
||||
"acpi_firmware": "/path/to/slic.dat",
|
||||
"nographic": "True",
|
||||
"vnc": {
|
||||
"enable": "False"
|
||||
},
|
||||
"sdl": {
|
||||
"enable": "False"
|
||||
},
|
||||
"spice": {
|
||||
|
||||
},
|
||||
"boot": "c",
|
||||
"rdm": {
|
||||
|
||||
}
|
||||
},
|
||||
"arch_arm": {
|
||||
|
||||
}
|
||||
},
|
||||
"disks": [
|
||||
{
|
||||
"pdev_path": "/dev/HostVG/XenGuest2",
|
||||
"vdev": "hda",
|
||||
"backend": "phy",
|
||||
"format": "raw",
|
||||
"removable": 1,
|
||||
"readwrite": 1
|
||||
}
|
||||
],
|
||||
"on_reboot": "restart",
|
||||
"on_crash": "restart"
|
||||
}
|
32
tests/libxlxml2domconfigdata/fullvirt-acpi-slic.xml
Normal file
32
tests/libxlxml2domconfigdata/fullvirt-acpi-slic.xml
Normal file
@ -0,0 +1,32 @@
|
||||
<domain type='xen'>
|
||||
<name>XenGuest2</name>
|
||||
<uuid>c7a5fdb2-cdaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>592896</memory>
|
||||
<currentMemory unit='KiB'>403456</currentMemory>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type arch='x86_64' machine='xenfv'>hvm</type>
|
||||
<acpi>
|
||||
<table type='slic'>/path/to/slic.dat</table>
|
||||
</acpi>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/>
|
||||
<apic/>
|
||||
<pae/>
|
||||
</features>
|
||||
<clock offset='variable' adjustment='0' basis='utc'/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='phy' type='raw'/>
|
||||
<source dev='/dev/HostVG/XenGuest2'/>
|
||||
<target dev='hda' bus='ide'/>
|
||||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
||||
</disk>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<input type='keyboard' bus='ps2'/>
|
||||
</devices>
|
||||
</domain>
|
@ -212,6 +212,8 @@ mymain(void)
|
||||
DO_TEST("fullvirt-cpuid-legacy-nest");
|
||||
# endif
|
||||
|
||||
DO_TEST("fullvirt-acpi-slic");
|
||||
|
||||
# ifdef LIBXL_HAVE_BUILDINFO_GRANT_LIMITS
|
||||
DO_TEST("max-gntframes-hvm");
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user