Skip to contentSkip to conversation

docs: note default for timer_mode in xl.cfg man

PATCH Superseded Doug Goldstein 2 participants 3 messages Jan 15, 2018

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs: note default for timer_mode in xl.cfg man

There was no default documented but the header at xen/include/public/hvm/params.h stated which the default was, so add it to the docs.

---
CC: Wei Liu <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Roger Pau Monné <[email protected]> # George for the 4.8 and 4.9 backport
CC: George Dunlap <[email protected]>

change from v1:
- added same docs addition to HVM

---
 docs/man/xl.cfg.pod.5.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
docs/man/xl.cfg.pod.5.in +4 -2
index b7b91d8627..b6812a4033 100644
@@ -1883,7 +1883,8 @@ Specifies the mode for Virtual Timers. The valid values are as follows:
 Delay for missed ticks. Do not advance a vCPU's time beyond the
 correct delivery time for interrupts that have been missed due to
 preemption. Deliver missed interrupts when the vCPU is rescheduled and
-advance the vCPU's virtual time stepwise for each one.
+advance the vCPU's virtual time stepwise for each one. This is the
+default.
 
 =item B<no_delay_for_missed_ticks>
 
@@ -2348,7 +2349,8 @@ Specifies the mode for Virtual Timers. The valid values are as follows:
 Delay for missed ticks. Do not advance a vCPU's time beyond the
 correct delivery time for interrupts that have been missed due to
 preemption. Deliver missed interrupts when the vCPU is rescheduled and
-advance the vCPU's virtual time stepwise for each one.
+advance the vCPU's virtual time stepwise for each one. This is the
+default.
 
 =item B<no_delay_for_missed_ticks>
 
Signature · 7 lines
2.13.6


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 3 lines · Doug Goldstein

There was no default documented but the header at xen/include/public/hvm/params.h stated which the default was, so add it to the docs.

While looking at libxl code I've found the following (it's at the end of libxl__domain_build_info_setdefault):

/* Configuration fields shared between PVH and HVM. */

if (b_info->type != LIBXL_DOMAIN_TYPE_PV) {
    if (libxl__timer_mode_is_default(&b_info->timer_mode))
        b_info->timer_mode = LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS;

...

Which means that in libxl the default timer mode is no_delay_for_missed_ticks instead of delay_for_missed_ticks, so I'm afraid you will have to fixup the xl.cfg change below.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 12 lines · Roger Pau Monné
Quoted 3 lines · Doug Goldstein

There was no default documented but the header at xen/include/public/hvm/params.h stated which the default was, so add it to the docs.

While looking at libxl code I've found the following (it's at the end of libxl__domain_build_info_setdefault):

/* Configuration fields shared between PVH and HVM. */

if (b_info->type != LIBXL_DOMAIN_TYPE_PV) {
    if (libxl__timer_mode_is_default(&b_info->timer_mode))
        b_info->timer_mode = LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS;
Quoted 8 lines

...

Which means that in libxl the default timer mode is no_delay_for_missed_ticks instead of delay_for_missed_ticks, so I'm afraid you will have to fixup the xl.cfg change below.

Thanks, Roger.

Well thank you for verifying this in the code instead of the headers like I did. Follow up coming where I'll fix the header and the docs to match the code.

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel