From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1IQd-0005zM-27 for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:07:47 -0400 Received: from [140.186.70.92] (port=48614 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1IQb-0005z8-Nt for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:07:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1IQZ-000460-Vv for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:07:45 -0400 Received: from mail2.shareable.org ([80.68.89.115]:57663) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1IQZ-00045u-N6 for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:07:43 -0400 Date: Mon, 12 Apr 2010 13:07:39 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Problem with QEMU on KVM Message-ID: <20100412120739.GC18075@shareable.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: Gerhard Wiesinger , qemu-devel@nongnu.org Mulyadi Santosa wrote: > Hi Gerhard... > > On Sun, Apr 11, 2010 at 20:52, Gerhard Wiesinger wrote: > > OK, uses the following ports: > > Port 0x20: 8259 interrupt controller > > Port 0x40: 8253 timer > > > > Interrupt 0x1A: > > ah=0x00: fetches system timer counters > > ah=0x02: reads the clock > > ah=0x04: fetches date > > > > So there must be something wrong with KVM with the above functionality (I > > guess the timers). > > Hmm, my silly guess is, maybe the timer is seen as decremented....or > at least "stuck". > > I have very little knowledge about git, but maybe you can start doing > git bisect to narrow which git commit that introduce such behaviour. > Meanwhile, let's wait for comments from one of the KVM developers. There are various -no-kvm-XXX options to try: -no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC -no-kvm-pit disable KVM kernel mode PIT -no-kvm-pit-reinjection disable KVM kernel mode PIT interrupt reinjection Any of them might be causing this problem. They disable in-kernel emulation of the interrupt controller and timer chips, and force the qemu version to be used. It's possible the in-kernel emulation is buggier than the qemu version. -- Jamie