From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5h6s-0002Jk-42 for qemu-devel@nongnu.org; Thu, 08 Mar 2012 12:26:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5h6n-0006uH-CK for qemu-devel@nongnu.org; Thu, 08 Mar 2012 12:26:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5h6n-0006ty-4K for qemu-devel@nongnu.org; Thu, 08 Mar 2012 12:26:33 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q28HQVf1009800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Mar 2012 12:26:31 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q28HKiac018460 for ; Thu, 8 Mar 2012 12:20:44 -0500 From: Avi Kivity Date: Thu, 8 Mar 2012 19:20:28 +0200 Message-Id: <1331227233-18601-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 0/5] Remove cpu_register_io_memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The current code allows us direct lookup from physical address (or TLB entry) to a MemoryRegion, yet we still dispatch accesses via the ram_addr returned by cpu_register_io_memory(). This is clumsy, so remove this extra indirection. Avi Kivity (5): memory: make phys_page_find() return an unadjusted section memory: store section indices in iotlb instead of io indices exec: fix code tlb entry misused as iotlb in get_page_addr_code() memory: dispatch directly via MemoryRegion memory: get rid of cpu_register_io_memory() cpu-all.h | 8 - exec-all.h | 9 +- exec-obsolete.h | 3 - exec.c | 362 ++++++++++++++++++++-------------------------------- memory.c | 13 +- softmmu_template.h | 40 +++--- 6 files changed, 168 insertions(+), 267 deletions(-) -- 1.7.9