Received: from [140.186.70.92] (port=53748 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0M7b-000673-RX for qemu-devel@nongnu.org; Thu, 17 Mar 2011 18:56:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0M7a-0004zJ-KI for qemu-devel@nongnu.org; Thu, 17 Mar 2011 18:56:47 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:36320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0M7a-0004z6-6h for qemu-devel@nongnu.org; Thu, 17 Mar 2011 18:56:46 -0400 Date: Fri, 18 Mar 2011 07:56:44 +0900 From: Isaku Yamahata Message-ID: <20110317225644.GC14147@valinux.co.jp> References: <25136d64edd64ab6923924c4b746e8a67b4f604d.1300368943.git.yamahata@valinux.co.jp> <20110317144108.GA22213@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110317144108.GA22213@redhat.com> Subject: [Qemu-devel] Re: [PATCH 3/3] piix_pci: optimize set irq path List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On Thu, Mar 17, 2011 at 04:41:08PM +0200, Michael S. Tsirkin wrote: > > +static int piix3_post_load(void *opaque, int version_id) > > +{ > > + PIIX3State *piix3 = opaque; > > + piix3_rebuild_irq_levels(piix3); > > Don't we need to set_irq_pic here as well? > And in that case, just make the for loop > part of piix3_rebuild_irq_levels. No, we need not. Because pic irq state is saved/loaded by pic itself. So todo here is to make pic_levels consistent with other part. -- yamahata