libvirt/tests/libxlxml2domconfigdata/basic-pvh.json
Cole Robinson 72d4709ab9 tests: Fix libxlxml2domconfigtest with latest xen
shadow_memkb is populated from a libxl API call, and the value can
change. For example:
https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2c992810854a15b41be920519ce83a4a328d5168

Mock libxl_get_required_shadow_memory to give consistent output

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-10-30 12:34:02 -04:00

50 lines
1.0 KiB
JSON

{
"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": 1234,
"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"
}