default timer_mode in xen and in libxl
Stefano Stabellini
Acked-by Ian JacksonHi all,
I have just noticed that the timer mode default in libxl is not the default in Xen.
The Xen default is HVMPTM_delay_for_missed_ticks, while libxl by default sets it to LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS that obviously is HVMPTM_no_delay_for_missed_ticks.
Is there a reason for this?
If so, should we change the defalt in Xen too?
commit 2d058a444a1fa71ec47a673d08c2e74790ae67fb
Author: Ian Campbell <[email protected]> Date: Thu Mar 1 12:26:13 2012 +0000
libxl: use an explicit LIBXL_TIMER_MODE_DEFAULT value
Quoted 9 lines · Stefano Stabellini
Hi all,
I have just noticed that the timer mode default in libxl is not the default in Xen.
The Xen default isHVMPTM_delay_for_missed_ticks, while libxl by default sets it toLIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKSthat obviously isHVMPTM_no_delay_for_missed_ticks.Is there a reason for this?
If so, should we change the defalt in Xen too?
Default in Xen is the original mode before multiple modes were supported. We kept that as default for old/other toolstacks, to avoid surprising change in behaviour (e.g., when they restore old saved guests).
Default in libxl is the sane one for newly-created guests. Hardly any guests care about or even want time to be delayed until timer interrupts are fired off.
-- Keir
Quoted 14 lines
commit
2d058a444a1fa71ec47a673d08c2e74790ae67fbAuthor: Ian Campbell <[email protected]> Date: Thu Mar 1 12:26:13 2012 +0000libxl: use an explicit
LIBXL_TIMER_MODE_DEFAULTvalueSigned-off-by Ian Campbell <[email protected]>Acked-by Ian Jackson <[email protected]>_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 10 lines · Stefano Stabellini
Hi all,
I have just noticed that the timer mode default in libxl is not the default in Xen.
The Xen default isHVMPTM_delay_for_missed_ticks, while libxl by default sets it toLIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKSthat obviously isHVMPTM_no_delay_for_missed_ticks.Is there a reason for this?
If so, should we change the defalt in Xen too?
Quoted 7 lines
commit
2d058a444a1fa71ec47a673d08c2e74790ae67fbAuthor: Ian Campbell <[email protected]> Date: Thu Mar 1 12:26:13 2012 +0000libxl: use an explicit
LIBXL_TIMER_MODE_DEFAULTvalueSigned-off-by Ian Campbell <[email protected]>
This commit just changed the way the default was set, but it didn't change that default. Tracking back through the history it seems the original change was:
commit 85bd32d9085828dcfa29215c78d472afa0cfd3ad
Author: Ian Jackson <[email protected]>
Date: Wed Jul 14 16:31:59 2010 +0100
xl: default timer_mode to 1
Signed-off-by: Stefano Stabellini <[email protected]>
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index e7aa89b..9706a6a 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -205,7 +205,7 @@ static void init_build_info(libxl_domain_build_info *b_info, libxl_domain_create
b_info->u.hvm.viridian = 0;
b_info->u.hvm.hpet = 1;
b_info->u.hvm.vpt_align = 1;
- b_info->u.hvm.timer_mode = 0;
+ b_info->u.hvm.timer_mode = 1;
} else {
b_info->u.pv.slack_memkb = 8 * 1024;
}So you tell us ;-) (you see now why I'm picky about changelogs...)
Quoted 45 lines · Ian Campbell
Quoted 10 lines · Stefano Stabellini
Hi all,
I have just noticed that the timer mode default in libxl is not the default in Xen.
The Xen default isHVMPTM_delay_for_missed_ticks, while libxl by default sets it toLIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKSthat obviously isHVMPTM_no_delay_for_missed_ticks.Is there a reason for this?
If so, should we change the defalt in Xen too?Quoted 7 lines
commit
2d058a444a1fa71ec47a673d08c2e74790ae67fbAuthor: Ian Campbell <[email protected]> Date: Thu Mar 1 12:26:13 2012 +0000libxl: use an explicit
LIBXL_TIMER_MODE_DEFAULTvalueSigned-off-by Ian Campbell <[email protected]>This commit just changed the way the default was set, but it didn't change that default. Tracking back through the history it seems the original change was:
commit 85bd32d9085828dcfa29215c78d472afa0cfd3ad Author: Ian Jackson <[email protected]> Date: Wed Jul 14 16:31:59 2010 +0100 xl: default timer_mode to 1 Signed-off-by: Stefano Stabellini <[email protected]> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index e7aa89b..9706a6a 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -205,7 +205,7 @@ static void init_build_info(libxl_domain_build_info *b_info, libxl_domain_create b_info->u.hvm.viridian = 0; b_info->u.hvm.hpet = 1; b_info->u.hvm.vpt_align = 1; - b_info->u.hvm.timer_mode = 0; + b_info->u.hvm.timer_mode = 1; } else { b_info->u.pv.slack_memkb = 8 * 1024; }
Quoted 1 line
So you tell us ;-) (you see now why I'm picky about changelogs...)
LOL
It must have been to match the default in xend.