forked from bytedance/libvirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libxl: Add support for max_event_channels
Add support for setting event_channels in libxl domain config object and include a test to check that it is properly converted from XML to libxl domain config. Signed-off-by: Jim Fehlig <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]>
- Loading branch information
Showing
4 changed files
with
138 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"c_info": { | ||
"type": "hvm", | ||
"name": "test-hvm", | ||
"uuid": "2147d599-9cc6-c0dc-92ab-4064b5446e9b" | ||
}, | ||
"b_info": { | ||
"max_vcpus": 4, | ||
"avail_vcpus": [ | ||
0, | ||
1, | ||
2, | ||
3 | ||
], | ||
"max_memkb": 1048576, | ||
"target_memkb": 1048576, | ||
"video_memkb": 8192, | ||
"shadow_memkb": 12288, | ||
"event_channels": 2047, | ||
"device_model_version": "qemu_xen", | ||
"device_model": "/bin/true", | ||
"sched_params": { | ||
|
||
}, | ||
"type.hvm": { | ||
"pae": "True", | ||
"apic": "True", | ||
"acpi": "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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<domain type='xen'> | ||
<name>test-hvm</name> | ||
<description>None</description> | ||
<uuid>2147d599-9cc6-c0dc-92ab-4064b5446e9b</uuid> | ||
<memory>1048576</memory> | ||
<currentMemory>1048576</currentMemory> | ||
<vcpu>4</vcpu> | ||
<on_poweroff>destroy</on_poweroff> | ||
<on_reboot>restart</on_reboot> | ||
<on_crash>destroy</on_crash> | ||
<clock offset='utc'/> | ||
<os> | ||
<type>hvm</type> | ||
<loader>/usr/lib/xen/boot/hvmloader</loader> | ||
<boot dev='hd'/> | ||
</os> | ||
<features> | ||
<apic/> | ||
<acpi/> | ||
<pae/> | ||
</features> | ||
<devices> | ||
<emulator>/bin/true</emulator> | ||
<disk type='file' device='disk'> | ||
<driver name='qemu'/> | ||
<source file='/var/lib/xen/images/test-hvm.img'/> | ||
<target dev='hda'/> | ||
</disk> | ||
<controller type='xenbus' maxEventChannels='2047'/> | ||
<interface type='bridge'> | ||
<source bridge='br0'/> | ||
<mac address='00:16:3e:66:12:b4'/> | ||
<script path='/etc/xen/scripts/vif-bridge'/> | ||
</interface> | ||
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'/> | ||
</devices> | ||
</domain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters