From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIzXK-000517-Eb for qemu-devel@nongnu.org; Mon, 09 Sep 2013 07:21:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIzXE-00078z-AN for qemu-devel@nongnu.org; Mon, 09 Sep 2013 07:21:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIzXE-00078h-28 for qemu-devel@nongnu.org; Mon, 09 Sep 2013 07:21:36 -0400 From: Marcel Apfelbaum Date: Mon, 9 Sep 2013 14:21:34 +0300 Message-Id: <1378725696-13590-1-git-send-email-marcel.a@redhat.com> Subject: [Qemu-devel] [PATCH RFC v3 0/2] pci: complete master abort protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, pbonzini@redhat.com, aliguori@us.ibm.com, jan.kiszka@siemens.com, mst@redhat.com Note: The series is incomplete, for review only PCI spec requires that a transaction that has not been claimed by any PCI bus devices will be terminated by the initiator with "master abort". For read transactions -1(FFFFFFFF) is returned and writes are silently dropped. The series deals also with the other aspect of the master abort scenario: Upon completion the master has to raise RECEIVED MASTER ABORT BIT in initiator's STATUS register. Implementation: - Allowed the MemoryRegion priority to be negative so a subregion will be visible on all the addresses not covered by the parent MemoryRegion or other subregions. - Added a memory region with negative priority that extends over all the pci address space. This region catches all the accesses to the unassigned pci addresses. - The MemoryRegion's ops emulates the master abort scenario. Note: For the moment the code assumes that all the reads/writes to pci address space are done by the cpu. Changes from v2: - minor: changed nr of patches int the title - minor: modified series list Changes from v1: - "pci-unassigned-mem" MemoryRegion resides now in PCIBus and not on various Host Bridges - "pci-unassgined-mem" does not have a ".valid.accept" field and implements read write methods Marcel Apfelbaum (2): memory: allow MemoryRegion's priority field to accept negative values hw/pci: handle unassigned pci addresses hw/pci/pci.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ include/exec/memory.h | 6 +++--- include/hw/pci/pci_bus.h | 1 + memory.c | 2 +- 4 files changed, 51 insertions(+), 4 deletions(-) -- 1.8.3.1