From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDJw5-0001nG-HM for qemu-devel@nongnu.org; Mon, 30 Jun 2008 10:00:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDJw3-0001mf-Vk for qemu-devel@nongnu.org; Mon, 30 Jun 2008 10:00:53 -0400 Received: from [199.232.76.173] (port=49408 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDJw3-0001mY-Rx for qemu-devel@nongnu.org; Mon, 30 Jun 2008 10:00:51 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:59117) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KDJw2-00005y-CG for qemu-devel@nongnu.org; Mon, 30 Jun 2008 10:00:51 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 1/3] Change qemu_set_irq() to return status information. Date: Mon, 30 Jun 2008 15:00:44 +0100 References: <20080629140120.5626.1590.stgit@gleb-debian.qumranet.com.qumranet.com> <20080629204907.GB17476@minantech.com> <20080630132652.GG31298@minantech.com> In-Reply-To: <20080630132652.GG31298@minantech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806301500.45249.paul@codesourcery.com> 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: Gleb Natapov > I forgot to rebase my branch that is why grep showed nothing ;) But > there is no much documentation about virtual time base. I can't see why > this hack cannot coexist with virtual time base. If virtual time base > somehow guaranties that interrupts will never be lost then qemu_irq_rase() > will never return zero and the hack will be as good as disabled. The virtual time base guarantees that a reasonable number of instruction will have been executed in a given virtual time period. Ticks can still be "lost" if the guest OS keeps the IRQ disable for a long time. However this behaviour matches that of real hardware, so they should not be reinserted later. The only reason this is a problem with normal qemu is because the virtual CPU speed is extremely variable, and can stall for very long periods of time. Paul