public/hvm/params.h: fix comment for timer_mode default
PATCH v3 1/2 public/hvm/params.h: fix comment for timer_mode default
In libxl__domain_build_info_setdefault() in tools/libxl/libxl_create.c the default for timer_mode for HVM and PVH is LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS so adjust the comments in the header to reflect this.
---
CC: Wei Liu <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: George Dunlap <[email protected]>
CC: Andrew Cooper <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
change from v2:
- Roger noted that the code differed from the
header that I used as the source of truth
so that has created this patch
--- xen/include/public/hvm/params.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/public/hvm/params.h +2 -2
@@ -152,12 +152,12 @@/* * Set mode for virtual timers (currently x86 only): -* delay_for_missed_ticks (default): +* 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. -* no_delay_for_missed_ticks: +* no_delay_for_missed_ticks (default): * As above, missed interrupts are delivered, but guest time always tracks * wallclock (i.e., real) time while doing so. * no_missed_ticks_pending:
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v3 2/2 docs: note default for timer_mode in xl.cfg man
There was no default documented but inspecting libxl__domain_build_info_setdefault() shows the default to be LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS.
---
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 v2:
- Roger noted that the code differed from the header that I used as the source of truth
change from v1:
- added same docs addition to HVM
--- docs/man/xl.cfg.pod.5.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
docs/man/xl.cfg.pod.5.in +4 -3
@@ -1889,7 +1889,7 @@ advance the vCPU's virtual time stepwise for each one. No delay for missed ticks. As above, missed interrupts are delivered, but guest time always tracks wallclock (i.e., real) time while doing -so. +so. This is the default. =item B<no_missed_ticks_pending>
@@ -2348,13 +2348,14 @@ 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> No delay for missed ticks. As above, missed interrupts are delivered, but guest time always tracks wallclock (i.e., real) time while doing -so. +so. This is the default. =item B<no_missed_ticks_pending>
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man
Quoted 35 lines · Doug Goldstein
There was no default documented but inspecting
libxl__domain_build_info_setdefault()shows the default to beLIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS.Signed-off-by Doug Goldstein <[email protected]>---
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 v2:
- Roger noted that the code differed from the header that I used as the source of truth
change from v1:
- added same docs addition to HVM--- docs/man/xl.cfg.pod.5.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)docs/man/xl.cfg.pod.5.in +1
-1@@ -1889,7 +1889,7 @@ advance the vCPU's virtual time stepwise for each one. No delay for missed ticks. As above, missed interrupts are delivered, but guest time always tracks wallclock (i.e., real) time while doing -so. +so. This is the default. =item B<no_missed_ticks_pending>
docs/man/xl.cfg.pod.5.in Specifies the mode for Virtual Timers. The valid values are as follows: · line 2352
Quoted 6 lines
docs/man/xl.cfg.pod.5.in +2
-1@@ -2348,13 +2348,14 @@ 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.
The chunk above is now stale, since we agreed that no_delay_for_missed_ticks was the default.
Thanks, Roger.
Quoted 12 lines
docs/man/xl.cfg.pod.5.in +1
-1=item B<no_delay_for_missed_ticks> No delay for missed ticks. As above, missed interrupts are delivered, but guest time always tracks wallclock (i.e., real) time while doing -so. +so. This is the default. =item B<no_missed_ticks_pending>Signature · 1 line
2.13.6
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Doug Goldstein
In
libxl__domain_build_info_setdefault()intools/libxl/libxl_create.cthe default fortimer_modefor HVM and PVH isLIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKSso adjust the comments in the header to reflect this.
IMHO this is not correct. The default in the hypervisor when creating a guest is HVMPTM_delay_for_missed_ticks, so the header is correct.
The default set by libxl is different, but that's something specific to libxl, and should only be documented in xl.cfg.
This is not very convenient, but sadly in this case the default in the hypervisor differs from the default set by libxl, which is confusing.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel