From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF48d-0008TC-35 for qemu-devel@nongnu.org; Tue, 03 Apr 2012 09:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF48V-0006yR-KV for qemu-devel@nongnu.org; Tue, 03 Apr 2012 09:51:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF48V-0006xn-C6 for qemu-devel@nongnu.org; Tue, 03 Apr 2012 09:51:03 -0400 Date: Tue, 3 Apr 2012 16:51:06 +0300 From: "Michael S. Tsirkin" Message-ID: <20120403135105.GA11768@redhat.com> References: <20120402100345.GA19689@redhat.com> <1333393194.3799.175.camel@bling.home> <20120403125618.GA20059@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120403125618.GA20059@redhat.com> Subject: Re: [Qemu-devel] [PATCHv3] piix: fix up/down races List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: Anthony Liguori , gleb@redhat.com, qemu-devel@nongnu.org, Isaku Yamahata , Gerd Hoffmann , imammedo@redhat.com, Paolo Bonzini , Aurelien Jarno On Tue, Apr 03, 2012 at 03:56:18PM +0300, Michael S. Tsirkin wrote: > > > + /* > > > + * Clear DOWN register - this is good for a case where guest can't > > > + * write to CLR_DOWN because of VM reset, and for compatibility with > > > + * old guests which do not have CLR_DOWN. > > > + */ > > > + s->pci0_status.down &= ~(1U << slot); > > > > Should we clear "up" here too? > > On eject clearing "up" is probably OK. However I'm not sure > what purpose would it serve, and it seems the less hacks we do the > better. I added a comment to clarify this.