mirror of https://gitee.com/openkylin/libvirt.git
tests: add basic Xen PVH test
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Reviewed-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
aca7ff5f70
commit
45ea5688ab
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
"c_info": {
|
||||||
|
"type": "pvh",
|
||||||
|
"name": "test-pvh",
|
||||||
|
"uuid": "039e9ee6-4a84-3055-4c81-8ba426ae2656"
|
||||||
|
},
|
||||||
|
"b_info": {
|
||||||
|
"max_vcpus": 4,
|
||||||
|
"avail_vcpus": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"max_memkb": 524288,
|
||||||
|
"target_memkb": 524288,
|
||||||
|
"shadow_memkb": 8192,
|
||||||
|
"sched_params": {
|
||||||
|
|
||||||
|
},
|
||||||
|
"kernel": "/boot/vmlinuz",
|
||||||
|
"ramdisk": "/boot/initrd.img",
|
||||||
|
"type.pvh": {
|
||||||
|
},
|
||||||
|
"arch_arm": {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disks": [
|
||||||
|
{
|
||||||
|
"pdev_path": "/var/lib/xen/images/test-pv.img",
|
||||||
|
"vdev": "xvda",
|
||||||
|
"backend": "qdisk",
|
||||||
|
"format": "raw",
|
||||||
|
"removable": 1,
|
||||||
|
"readwrite": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"nics": [
|
||||||
|
{
|
||||||
|
"devid": 0,
|
||||||
|
"mac": "00:16:3e:3e:86:60",
|
||||||
|
"bridge": "br0",
|
||||||
|
"script": "/etc/xen/scripts/vif-bridge",
|
||||||
|
"nictype": "vif"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"on_reboot": "restart"
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
<domain type='xen'>
|
||||||
|
<name>test-pvh</name>
|
||||||
|
<uuid>039e9ee6-4a84-3055-4c81-8ba426ae2656</uuid>
|
||||||
|
<memory>524288</memory>
|
||||||
|
<currentMemory>524288</currentMemory>
|
||||||
|
<vcpu>4</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='x86_64' machine='xenpvh'>xenpvh</type>
|
||||||
|
<kernel>/boot/vmlinuz</kernel>
|
||||||
|
<initrd>/boot/initrd.img</initrd>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<disk type='file' device='disk'>
|
||||||
|
<driver name='qemu'/>
|
||||||
|
<source file='/var/lib/xen/images/test-pv.img'/>
|
||||||
|
<target dev='xvda'/>
|
||||||
|
</disk>
|
||||||
|
<interface type='bridge'>
|
||||||
|
<source bridge='br0'/>
|
||||||
|
<mac address='00:16:3e:3e:86:60'/>
|
||||||
|
<script path='/etc/xen/scripts/vif-bridge'/>
|
||||||
|
</interface>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
|
@ -203,6 +203,9 @@ mymain(void)
|
||||||
|
|
||||||
DO_TEST("basic-pv");
|
DO_TEST("basic-pv");
|
||||||
DO_TEST("basic-hvm");
|
DO_TEST("basic-hvm");
|
||||||
|
# ifdef HAVE_XEN_PVH
|
||||||
|
DO_TEST("basic-pvh");
|
||||||
|
# endif
|
||||||
DO_TEST("cpu-shares-hvm");
|
DO_TEST("cpu-shares-hvm");
|
||||||
DO_TEST("variable-clock-hvm");
|
DO_TEST("variable-clock-hvm");
|
||||||
DO_TEST("moredevs-hvm");
|
DO_TEST("moredevs-hvm");
|
||||||
|
|
Loading…
Reference in New Issue