From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqPCv-0007gE-MR for qemu-devel@nongnu.org; Mon, 08 Aug 2011 08:45:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqPCu-00062V-L4 for qemu-devel@nongnu.org; Mon, 08 Aug 2011 08:45:25 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:34233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqPCu-00062N-FB for qemu-devel@nongnu.org; Mon, 08 Aug 2011 08:45:24 -0400 Received: by pzk37 with SMTP id 37so2928226pzk.29 for ; Mon, 08 Aug 2011 05:45:23 -0700 (PDT) Message-ID: <4E3FDA5F.5050105@codemonkey.ws> Date: Mon, 08 Aug 2011 07:45:19 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1312463195-13605-1-git-send-email-avi@redhat.com> <1312463195-13605-2-git-send-email-avi@redhat.com> <4E3BF599.4050207@codemonkey.ws> <20110808103606.GA10372@redhat.com> In-Reply-To: <20110808103606.GA10372@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 01/39] virtio-pci: get config on init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Avi Kivity , kvm@vger.kernel.org, qemu-devel@nongnu.org On 08/08/2011 05:36 AM, Michael S. Tsirkin wrote: >> Thinking more closely, I don't think this right. >> >> Updating on map ensured that the config was refreshed after each >> time the bar was mapped. In the very least, the config needs to be >> refreshed during reset because the guest may write to the guest >> space which should get cleared after reset. >> >> Regards, >> >> Anthony Liguori > > Not sure I understand. Which register, for example, > do you have in mind? > Could you clarify please? Actually, you never need to call config_get() AFAICT. It's called in every read/write access. So I think the code you changed is extraneous now. Regards, Anthony Liguori > >>> } >>> >>> static int virtio_blk_init_pci(PCIDevice *pci_dev) >