All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default
@ 2018-01-16  3:24 Doug Goldstein
  2018-01-16  3:24 ` [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man Doug Goldstein
  2018-01-16  8:13 ` [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default Roger Pau Monné
  0 siblings, 2 replies; 4+ messages in thread
From: Doug Goldstein @ 2018-01-16  3:24 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
	Doug Goldstein, Tim Deegan, Jan Beulich, Ian Jackson,
	Roger Pau Monné

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 <wei.liu2@citrix.com>
CC: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: George Dunlap <george.dunlap@eu.citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Tim Deegan <tim@xen.org>

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(-)

diff --git a/xen/include/public/hvm/params.h b/xen/include/public/hvm/params.h
index 2ec2e7c80f..ce6748e4a8 100644
--- a/xen/include/public/hvm/params.h
+++ b/xen/include/public/hvm/params.h
@@ -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:
-- 
2.13.6


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man
  2018-01-16  3:24 [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default Doug Goldstein
@ 2018-01-16  3:24 ` Doug Goldstein
  2018-01-16  8:07   ` Roger Pau Monné
  2018-01-16  8:13 ` [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default Roger Pau Monné
  1 sibling, 1 reply; 4+ messages in thread
From: Doug Goldstein @ 2018-01-16  3:24 UTC (permalink / raw)
  To: xen-devel
  Cc: George Dunlap, Wei Liu, Doug Goldstein, Ian Jackson,
	Roger Pau Monné

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.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
---
CC: Wei Liu <wei.liu2@citrix.com>
CC: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
# George for the 4.8 and 4.9 backport
CC: George Dunlap <george.dunlap@eu.citrix.com>

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(-)

diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
index b7b91d8627..6b3ee81602 100644
--- a/docs/man/xl.cfg.pod.5.in
+++ b/docs/man/xl.cfg.pod.5.in
@@ -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>
 
-- 
2.13.6


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man
  2018-01-16  3:24 ` [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man Doug Goldstein
@ 2018-01-16  8:07   ` Roger Pau Monné
  0 siblings, 0 replies; 4+ messages in thread
From: Roger Pau Monné @ 2018-01-16  8:07 UTC (permalink / raw)
  To: Doug Goldstein; +Cc: George Dunlap, xen-devel, Wei Liu, Ian Jackson

On Mon, Jan 15, 2018 at 09:24:52PM -0600, Doug Goldstein wrote:
> 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.
> 
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
> ---
> CC: Wei Liu <wei.liu2@citrix.com>
> CC: Ian Jackson <ian.jackson@eu.citrix.com>
> CC: Roger Pau Monné <roger.pau@citrix.com>
> # George for the 4.8 and 4.9 backport
> CC: George Dunlap <george.dunlap@eu.citrix.com>
> 
> 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(-)
> 
> diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
> index b7b91d8627..6b3ee81602 100644
> --- a/docs/man/xl.cfg.pod.5.in
> +++ b/docs/man/xl.cfg.pod.5.in
> @@ -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.

The chunk above is now stale, since we agreed that
no_delay_for_missed_ticks was the default.

Thanks, Roger.

>  =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>
>  
> -- 
> 2.13.6
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default
  2018-01-16  3:24 [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default Doug Goldstein
  2018-01-16  3:24 ` [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man Doug Goldstein
@ 2018-01-16  8:13 ` Roger Pau Monné
  1 sibling, 0 replies; 4+ messages in thread
From: Roger Pau Monné @ 2018-01-16  8:13 UTC (permalink / raw)
  To: Doug Goldstein
  Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
	Ian Jackson, Tim Deegan, Jan Beulich, xen-devel

On Mon, Jan 15, 2018 at 09:24:51PM -0600, Doug Goldstein wrote:
> 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.

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
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-16  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16  3:24 [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default Doug Goldstein
2018-01-16  3:24 ` [PATCH v3 2/2] docs: note default for timer_mode in xl.cfg man Doug Goldstein
2018-01-16  8:07   ` Roger Pau Monné
2018-01-16  8:13 ` [PATCH v3 1/2] public/hvm/params.h: fix comment for timer_mode default Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.