HPET in HVM guests
Is there a reason HPET is not by default turned on for HVM guests? While Xen itself sets it to on, the tools - afaics - default it back to off.
Thanks, Jan
Due to xen-unstable:17017. Now that HPET model is integrated with vpt.c better, I think we could enable vhpet by default.
-- Keir
Quoted 10 lines · Jan Beulich
Is there a reason HPET is not by default turned on for HVM guests? While Xen itself sets it to on, the tools - afaics - default it back to off.
Thanks, Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
IIRC HPET required some timer_mode work because certain kernel versions had problems when ticks were delivered too closely together. Dave Winchell did this at Virtual Iron, but left early this year, and his work was plumbed all the way through to the hardware HPET (because it preceded work that made xen system time more reliable) so resurrecting his VI patch and munging it to apply to xen-unstable may take significant work and testing (that I may have to eventually get around to, but not soon).
Are you suggesting that an HVM use of HPET should be plumbed through to the hardware HPET? Hardware HPET access is verrrrryyyyyy slow and save/restore/migration would likely be a problem.
And in any case, what do you expect to gain by using HPET instead of another clocksource?
Turning on vhpet by default (on top of Xen system time) may turn out to be OK, but unless there's a really good reason and a great deal of testing done soon, I wouldn't suggest flipping the default prior to 4.0.
Thanks,
Dan
Quoted 31 lines
-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Friday, December 18, 2009 9:38 AM
To: Jan Beulich; [email protected]
Cc: Dan Magenheimer
Subject: Re: [Xen-devel] HPET in HVM guestsDue to xen-unstable:17017. Now that HPET model is integrated with
vpt.c
better, I think we could enable vhpet by default.-- Keir
Quoted 1 line · Jan Beulich
Is there a reason HPET is not by default turned on for HVM
guests? While
Quoted 1 line
Xen itself sets it to on, the tools - afaics - default it
back to off.
Quoted 8 lines
Thanks, Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 18.12.09 18:55 >>>
Are you suggesting that an HVM use of HPET should be plumbed through to the hardware HPET? Hardware HPET access is verrrrryyyyyy slow and save/restore/migration would likely be a problem.
No, I'm just talking about what you appear to call vHPET.
Quoted 2 lines
And in any case, what do you expect to gain by using HPET instead of another clocksource?
Certain Windows certification seem the require the presence (and visibility through ACPI tables) of HPET.
Jan
Quoted 12 lines
From: Jan Beulich [mailto:[email protected]]
Sent: Monday, December 21, 2009 2:43 AM
To: Dan Magenheimer
Cc: Keir Fraser; [email protected]
Subject: RE: [Xen-devel] HPET in HVM guestsQuoted 5 lines
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 18.12.09 18:55 >>>
Are you suggesting that an HVM use of HPET should be plumbed through to the hardware HPET? Hardware HPET access is verrrrryyyyyy slow and save/restore/migration would likely be a problem.
Quoted 7 lines
No, I'm just talking about what you appear to call vHPET.
Quoted 2 lines
And in any case, what do you expect to gain by using HPET instead of another clocksource?
Certain Windows certification seem the require the presence (and visibility through ACPI tables) of HPET.
Do the WHQL rules allow for turning on a parameter in the VM config file? If so, setting hpet=1 should work (though I haven't tested it in quite awhile so bitrot might have set in).
Dan
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 21.12.09 16:51 >>>
Do the WHQL rules allow for turning on a parameter in the VM config file?
I have no idea.
Quoted 3 lines
If so, setting hpet=1 should
work (though I haven't tested it in quite awhile so bitrot might have set in).
Setting hpet=1 in the VM config addresses this - that's why the question really just was about the default the tools use in the absence of a hpet= setting.
Jan
Keir, would you consider backing out 20709? I don't think Jan has confirmed a need to change the default, just a question as to why the default was set as it was.
Given Dave Winchell's error measurements here:
http://lists.xensource.com/archives/html/xen-devel/2008-06/msg00181.html
and the long discussion that followed (which I don't think was ever resolved or had patches applied) and given that we don't have bug reports for the current default, I think it would be a bad idea to change the default, certainly without specific testing on Windows and 2.6.9-based Linux kernels to see if the problems Dave reported recur.
Quoted 27 lines
-----Original Message-----
From: Jan Beulich [mailto:[email protected]]
Sent: Monday, December 21, 2009 9:07 AM
To: Dan Magenheimer
Cc: Keir Fraser; [email protected]
Subject: RE: [Xen-devel] HPET in HVM guestsQuoted 3 lines
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 21.12.09 16:51 >>>
Do the WHQL rules allow for turning on a parameter in the VM config file?
I have no idea.
Quoted 3 lines
If so, setting hpet=1 should
work (though I haven't tested it in quite awhile so bitrot might have set in).Setting hpet=1 in the VM config addresses this - that's why the question
really just was about the default the tools use in the absence of a hpet=
setting.Jan
Okay.
-- Keir
Quoted 41 lines · Dan Magenheimer
Keir, would you consider backing out 20709? I don't think Jan has confirmed a need to change the default, just a question as to why the default was set as it was.
Given Dave Winchell's error measurements here:
http://lists.xensource.com/archives/html/xen-devel/2008-06/msg00181.html
and the long discussion that followed (which I don't think was ever resolved or had patches applied) and given that we don't have bug reports for the current default, I think it would be a bad idea to change the default, certainly without specific testing on Windows and 2.6.9-based Linux kernels to see if the problems Dave reported recur.Quoted 27 lines
-----Original Message-----
From: Jan Beulich [mailto:[email protected]]
Sent: Monday, December 21, 2009 9:07 AM
To: Dan Magenheimer
Cc: Keir Fraser; [email protected]
Subject: RE: [Xen-devel] HPET in HVM guestsQuoted 3 lines
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 21.12.09 16:51 >>>
Do the WHQL rules allow for turning on a parameter in the VM config file?
I have no idea.
Quoted 3 lines
If so, setting hpet=1 should
work (though I haven't tested it in quite awhile so bitrot might have set in).Setting hpet=1 in the VM config addresses this - that's why the question
really just was about the default the tools use in the absence of a hpet=
setting.Jan