From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: virtio config access races Date: Fri, 13 Jul 2012 01:59:41 +0300 Message-ID: <20120712225941.GA9317@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Rusty Russell Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org It looks like there's a problem in the way virtio config currently works: if driver reads config in probe routine, config subsequently can change before core sets DRIVER_OK. This will not cause an interrupt and so this event is lost. Maybe we should document that devices should delay such events until after DRIVER_OK? -- MST