qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [kvm-devel] [PATCH] Add support for HPET periodic timer


From: Daniel P. Berrange
Subject: [Qemu-devel] Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.
Date: Mon, 13 Aug 2007 12:50:30 +0100
User-agent: Mutt/1.4.1i

On Mon, Aug 13, 2007 at 11:04:46AM +0300, Avi Kivity wrote:
> Luca Tettamanti wrote:
> > Linux operates the HPET timer in legacy replacement mode, which means that 
> > the
> > periodic interrupt of the CMOS RTC is not delivered (qemu won't be able to 
> > use
> > /dev/rtc). Add support for HPET (/dev/hpet) as a replacement for the RTC; 
> > the
> > periodic interrupt is delivered via SIGIO and is handled in the same way as 
> > the
> > RTC timer.
> > HPET must be explicitly enabled with -use-hpet.
> >
> >   
> 
> Are there any downsides to using HPET?  If not, I suggest making it the 
> default, in order to reduce complexity for the user.

Only downside is that not all machines have HPET, and many which do have it
disabled in BIOS for 'compatability' with Windows, but if you always fallback
to trying RTC too, that's not an issue.

> Something like:
> 
> - try to use HPET (unless -no-rtc selected)
> - try to use RTC  (unless -no-rtc selected)
> - fallback to normal unix facilities

If we're going to add command line args it probably makes sense  to be a
little more generic than -no-rtc or -use-hpet. Have a list of preferred
clock sources eg

  -clock hpet,rtc,unix

If -clock is omitted, then default to trying all in the priority you
describe.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]