Received: from eggs.gnu.org ([2001:4830:134:3::10]:42748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLZmb-0007IQ-Vt for qemu-devel@nongnu.org; Fri, 08 Jul 2016 13:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLZmZ-0003as-Au for qemu-devel@nongnu.org; Fri, 08 Jul 2016 13:41:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLZmZ-0003ao-5Y for qemu-devel@nongnu.org; Fri, 08 Jul 2016 13:41:43 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 39456C04B317 for ; Fri, 8 Jul 2016 17:41:42 +0000 (UTC) Date: Fri, 8 Jul 2016 19:46:44 +0200 From: Alexander Gordeev Message-ID: <20160708174644.GA18872@agordeev.lab.eng.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] hw/misc/pci-testdev.c write access does not work List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Paolo Bonzini Cc: qemu-devel@nongnu.org Hi all, Looks like hw/misc/pci-testdev.c does not work for wildcard-eventfd and datamatch-eventfd tests (more precisely - for any non no-eventfd tests). Test writes to pci-testdev's addresses (reported by PCITestDevHdr::offset field) do not cause invocations of MemoryRegionOps::write() callback. (I found that by putting debug output to pci_testdev_write() and using vmexit testcase from kvm-unit-tests). The reason kvm-unit-tests does not hit this issue is because vmexit does not check number of successful writes reported via PCITestDevHdr::count field.