libvirt/tests/libxlxml2domconfigdata/vnuma-hvm.json
Jim Fehlig 83edaf4435 libxl: don't hardcode scheduler weight
Long ago in commit dfa1e1dd53 the scheduler weight was accidentally
hardcoded to 1000. Weight is a setting with no unit since it is
relative to the weight of other domains. If no weight is specified,
libxl defaults to 256.

Instead of hardcoding the weight to 1000, honor any <shares> specified
in <cputune>. libvirt's notion of shares is synonomous to libxl's
scheduler weight setting. If shares is unspecified, defer default
weight setting to libxl.

Removing the hardcoded weight required some test fixup. While at it,
add an explicit test for <shares> conversion to scheduler weight.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-03-21 15:12:24 -06:00

179 lines
3.8 KiB
JSON

{
"c_info": {
"type": "hvm",
"name": "test-hvm",
"uuid": "2147d599-9cc6-c0dc-92ab-4064b5446e9b"
},
"b_info": {
"max_vcpus": 6,
"avail_vcpus": [
0,
1,
2,
3,
4,
5
],
"vnuma_nodes": [
{
"memkb": 2097152,
"distances": [
10,
21,
31,
41,
51,
61
],
"vcpus": [
0
]
},
{
"memkb": 2097152,
"distances": [
21,
10,
21,
31,
41,
51
],
"vcpus": [
1
]
},
{
"memkb": 2097152,
"distances": [
31,
21,
10,
21,
31,
41
],
"vcpus": [
2
]
},
{
"memkb": 2097152,
"distances": [
41,
31,
21,
10,
21,
31
],
"vcpus": [
3
]
},
{
"memkb": 2097152,
"distances": [
51,
41,
31,
21,
10,
21
],
"vcpus": [
4
]
},
{
"memkb": 2097152,
"distances": [
61,
51,
41,
31,
21,
10
],
"vcpus": [
5
]
}
],
"max_memkb": 1048576,
"target_memkb": 1048576,
"video_memkb": 8192,
"shadow_memkb": 14336,
"device_model_version": "qemu_xen",
"device_model": "/bin/true",
"sched_params": {
},
"type.hvm": {
"pae": "True",
"apic": "True",
"acpi": "True",
"nested_hvm": "True",
"vga": {
"kind": "cirrus"
},
"vnc": {
"enable": "True",
"listen": "0.0.0.0",
"findunused": "False"
},
"sdl": {
"enable": "False"
},
"spice": {
},
"boot": "c",
"rdm": {
}
},
"arch_arm": {
}
},
"disks": [
{
"pdev_path": "/var/lib/xen/images/test-hvm.img",
"vdev": "hda",
"backend": "qdisk",
"format": "raw",
"removable": 1,
"readwrite": 1
}
],
"nics": [
{
"devid": 0,
"mac": "00:16:3e:66:12:b4",
"bridge": "br0",
"script": "/etc/xen/scripts/vif-bridge",
"nictype": "vif_ioemu"
}
],
"vfbs": [
{
"devid": -1,
"vnc": {
"enable": "True",
"listen": "0.0.0.0",
"findunused": "False"
},
"sdl": {
"enable": "False"
}
}
],
"vkbs": [
{
"devid": -1
}
],
"on_reboot": "restart"
}