Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1lyX-0003jj-5M for qemu-devel@nongnu.org; Tue, 13 Apr 2010 15:40:45 -0400 Received: from [140.186.70.92] (port=36615 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1lyV-0003jY-DV for qemu-devel@nongnu.org; Tue, 13 Apr 2010 15:40:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1lyQ-0000yi-Hn for qemu-devel@nongnu.org; Tue, 13 Apr 2010 15:40:41 -0400 Received: from chello212186124096.11.vie.surfer.at ([212.186.124.96]:42385 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1lyQ-0000y8-6Q for qemu-devel@nongnu.org; Tue, 13 Apr 2010 15:40:38 -0400 Date: Tue, 13 Apr 2010 21:38:55 +0200 (CEST) From: Gerhard Wiesinger Subject: Re: [Qemu-devel] Problem with QEMU on KVM In-Reply-To: <20100412120739.GC18075@shareable.org> Message-ID: References: <20100412120739.GC18075@shareable.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Mulyadi Santosa , qemu-devel@nongnu.org On Mon, 12 Apr 2010, Jamie Lokier wrote: > 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. Hello Jamie, thanx so far. I'm starting in this way: /root/download/qemu/qemu-0.12.3/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -a_lot_of_other_options All options you mentioned don't work: /root/download/qemu/qemu-0.12.3/x86_64-softmmu/qemu-system-x86_64: invalid option -- '-no-kvm-irqchip' /root/download/qemu/qemu-0.12.3/x86_64-softmmu/qemu-system-x86_64: invalid option -- '-no-kvm-pit' /root/download/qemu/qemu-0.12.3/x86_64-softmmu/qemu-system-x86_64: invalid option -- '-no-kvm-no-kvm-irqchip' Is there another way of startup or is it working only on newer versions? BTW: For me it is very unclear what's the difference between the following commands: qemu qemu -enable-kvm kvm How can I build the kvm executable? Different source tree? Newer version from branch? Maybe someone can explain the different versions of qemu/kvm and branches etc. and possible features in detail. Thnx. Ciao, Gerhard -- http://www.wiesinger.com/