From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZEhB-0007IF-Fg for qemu-devel@nongnu.org; Tue, 08 Sep 2015 04:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZEh6-0001oQ-Gf for qemu-devel@nongnu.org; Tue, 08 Sep 2015 04:56:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZEh6-0001oD-BT for qemu-devel@nongnu.org; Tue, 08 Sep 2015 04:56:00 -0400 References: <1441301843-7404-1-git-send-email-speirofr@gmail.com> <55ED66A4.7060108@redhat.com> From: Paolo Bonzini Message-ID: <55EEA29C.2010509@redhat.com> Date: Tue, 8 Sep 2015 10:55:56 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] memory: Add function pointers checks to memory_region_read/write() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Salva_Peir=c3=b3?= Cc: qemu-devel@nongnu.org, Gerd Hoffmann On 08/09/2015 08:51, Salva Peir=C3=B3 wrote: > Rigth, I should have started by providing the scenario where the fault = occurs. > The problem occurs performing a writeb to the BAR0 of device 1033:194. > That is PCI_DEVICE_ID_NEC_UPD720200 0x0194 at hw/usb/hcd-xhci.c >=20 > I've attached tests/nec-usb-xhci-test.c that reproduces the scenario. Thanks, this is a good addition. Please submit a fix to hcd-xhci.c and the test case! Paolo