From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INZKm-0006dY-TD for qemu-devel@nongnu.org; Tue, 21 Aug 2007 15:24:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INZKl-0006cU-1m for qemu-devel@nongnu.org; Tue, 21 Aug 2007 15:24:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INZKk-0006cG-NF for qemu-devel@nongnu.org; Tue, 21 Aug 2007 15:24:10 -0400 Received: from zero.voxel.net ([69.9.191.6]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INZKl-0001KR-HO for qemu-devel@nongnu.org; Tue, 21 Aug 2007 15:24:11 -0400 Subject: Re: [Qemu-devel] [PATCH 3/4] Add support for HPET periodic timer. From: Matthew Kent In-Reply-To: <20070817231406.493008599@gmail.com> References: <20070817231149.544849769@gmail.com> <20070817231406.493008599@gmail.com> Content-Type: text/plain Date: Tue, 21 Aug 2007 12:24:05 -0700 Message-Id: <1187724245.2562.28.camel@fuego> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm-devel@lists.sf.net, Luca Tettamanti On Sat, 2007-18-08 at 01:11 +0200, Luca Tettamanti wrote: > plain text document attachment (clock-hpet) > 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. > > Signed-off-by: Luca Tettamanti I must be missing something silly here.. should I be able to open more than one instance of qemu with -clock hpet? Because upon invoking a second instance of qemu HPET_IE_ON fails. I also tried running the example in the kernel docs under Documentation/hpet.txt mkent@localhost [/home/mkent]# ./demo poll /dev/hpet 1 1000 -hpet: executing poll hpet_poll: info.hi_flags 0x0 hpet_poll: expired time = 0x8 hpet_poll: revents = 0x1 hpet_poll: data 0x1 mkent@localhost [/home/mkent]# ./demo poll /dev/hpet 1 1000 -hpet: executing poll hpet_poll: info.hi_flags 0x0 hpet_poll, HPET_IE_ON failed This is on 2.6.23-rc3 x86_64 with the patch-2.6.23-rc3-hrt2.patch hrtimers patch. -- Matthew Kent http://magoazul.com