From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfSSK-0005xm-Fb for qemu-devel@nongnu.org; Fri, 15 Jun 2012 05:04:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfSS8-0008GV-Br for qemu-devel@nongnu.org; Fri, 15 Jun 2012 05:04:36 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:53250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfSS8-0008GG-2p for qemu-devel@nongnu.org; Fri, 15 Jun 2012 05:04:24 -0400 Received: by pbbro12 with SMTP id ro12so5223689pbb.4 for ; Fri, 15 Jun 2012 02:04:22 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FDAFA8F.5000600@redhat.com> Date: Fri, 15 Jun 2012 11:04:15 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4FDAF574.4000208@linux.vnet.ibm.com> In-Reply-To: <4FDAF574.4000208@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] question about irq update List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Hui Li Cc: Kevin Wolf , QEMU-devel Il 15/06/2012 10:42, Zhi Hui Li ha scritto: > > bool qtest_get_irq(QTestState *s, int num) > { > /* dummy operation in order to make sure irq is up to date */ > qtest_inb(s, 0); > > return s->irq_level[num]; > } > > but I don't know how it can make the irq up to date > and why we will read from the address of 0 ? It just forces libqtest to read any pending events. Paolo