]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
xl: add 'disable_evtchn_fifo' boolean option into xl.cfg(5) ... disable_fifo
authorPaul Durrant <pdurrant@amazon.com>
Tue, 24 Nov 2020 17:17:40 +0000 (17:17 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Tue, 24 Nov 2020 18:03:26 +0000 (18:03 +0000)
...to set the value of the 'disable_evtchn_fifo' flag in
libxl_domain_build_info.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Signed-off-by: Eslam Elnikety <elnikety@amazon.com>
---
Cc: Ian Jackson <iwj@xenproject.org>
Cc: Wei Liu <wl@xen.org>
Cc: Anthony PERARD <anthony.perard@citrix.com>
v4:
 - New in v4

docs/man/xl.cfg.5.pod.in
tools/xl/xl_parse.c

index 0532739c1fff933015b10a77970125c2bbeb653f..80d5e7aaf38f867df5d03e257f125b5ac020ba5a 100644 (file)
@@ -1338,6 +1338,14 @@ FIFO-based event channel ABI support up to 131,071 event channels.
 Other guests are limited to 4095 (64-bit x86 and ARM) or 1023 (32-bit
 x86).
 
+=item B<disable_evtchn_fifo=BOOLEAN>
+
+Indicates if support for FIFO event channel operations (EVTCHNOP_init_control,
+EVTCHNOP_expand_array and EVTCHNOP_set_priority) are disabled. This can be
+used to work around issues with guests hibernated on a version of Xen
+prior to 4.4 and resumed on a version of Xen from 4.4. onwards. The default
+value is false.
+
 =item B<vdispl=[ "VDISPL_SPEC_STRING", "VDISPL_SPEC_STRING", ...]>
 
 Specifies the virtual display devices to be provided to the guest.
index cae8eb679c5a0448a9337b8d346b6536074cddd8..f79f644c4c2ea9bd051f91dafc744bc354498c0e 100644 (file)
@@ -1569,6 +1569,9 @@ void parse_config_data(const char *config_source,
     if (!xlu_cfg_get_long(config, "max_event_channels", &l, 0))
         b_info->event_channels = l;
 
+    xlu_cfg_get_defbool(config, "disable_evtchn_fifo",
+                        &b_info->disable_evtchn_fifo, 0);
+
     xlu_cfg_replace_string (config, "kernel", &b_info->kernel, 0);
     xlu_cfg_replace_string (config, "ramdisk", &b_info->ramdisk, 0);
     xlu_cfg_replace_string (config, "device_tree", &b_info->device_tree, 0);