Received: from eggs.gnu.org ([2001:4830:134:3::10]:38921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgfzf-0007jT-Vm for qemu-devel@nongnu.org; Wed, 13 Nov 2013 14:20:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgfza-0005qG-10 for qemu-devel@nongnu.org; Wed, 13 Nov 2013 14:20:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgfzZ-0005q9-CG for qemu-devel@nongnu.org; Wed, 13 Nov 2013 14:20:45 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rADJKixX011566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Nov 2013 14:20:44 -0500 Date: Wed, 13 Nov 2013 21:23:43 +0200 From: "Michael S. Tsirkin" Message-ID: <1384370613-6433-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH v2 0/7] making address spaces 64 bit wide List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Luiz Capitulino At the moment, exec ignores high bits in each address, for efficiency. This is incorrect: devices can do full 64 bit DMA, it's only the CPU that is limited by target address space. Resolving such addresses can actually corrupt the pagetables, so using full 64 bit addresses is called for. However, using full 64 bit addresses was clocked at 12% performance hit on a microbenchmark. To solve, teach pagetables to skip bits at any level and not just the lowest level. This solves the performance problem (only one line of code changed on the data path). In fact we even gain a bit of speed: Before: portio-no-eventfd:pci-io 3225 After: portio-no-eventfd:pci-io 3123 Changes from v2: lots of bugfixes if you read v1 you'll have to re-read, although the basic algorithm is still the same minor tweaks suggested by Eric Blake Michael S. Tsirkin (5): exec: replace leaf with skip exec: extend skip field to 6 bit, page entry to 32 bit exec: pass hw address to phys_page_find exec: memory radix tree page level compression exec: reduce L2_PAGE_SIZE Paolo Bonzini (2): split definitions for exec.c and translate-all.c radix trees exec: make address spaces 64-bit wide translate-all.h | 7 --- exec.c | 135 +++++++++++++++++++++++++++++++++++++++++++++----------- translate-all.c | 32 ++++++++------ 3 files changed, 127 insertions(+), 47 deletions(-) -- MST