From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbD5M-0008Dq-Sg for qemu-devel@nongnu.org; Thu, 15 Dec 2011 10:19:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbD5D-0003m4-ET for qemu-devel@nongnu.org; Thu, 15 Dec 2011 10:19:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbD5D-0003lr-2g for qemu-devel@nongnu.org; Thu, 15 Dec 2011 10:18:55 -0500 From: Avi Kivity Date: Thu, 15 Dec 2011 17:18:32 +0200 Message-Id: <1323962319-13762-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PULL v3 0/7] Memory API mutators List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org [repost w/ qemu-devel copied this time] This patchset introduces memory_region_set_enabled() and memory_region_set_address() to avoid the requirement on memory routers to track the internal state of the memory API (so they know whether they need to add or remove a region). Instead, they can simply copy the state of the region from the guest-exposed register to the memory core, via the new mutator functions. Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/mutators v3: - fix confusion in patch 3 wrt function arguments and doc comments - add migration documentation v2: - fix minor bug in set_address() - add set_alias_offset() - two example users Avi Kivity (7): memory: introduce memory_region_set_enabled() memory: introduce memory_region_set_address() memory: introduce memory_region_set_alias_offset() memory: optimize empty transactions due to mutators cirrus_vga: adapt to memory mutators API piix_pci: adapt smram mapping to use memory mutators docs: document memory API interaction with migration docs/migration.txt | 12 ++++++++ hw/cirrus_vga.c | 50 +++++++++++--------------------- hw/piix_pci.c | 20 ++++--------- memory.c | 81 ++++++++++++++++++++++++++++++++++++++++++++------- memory.h | 40 +++++++++++++++++++++++++ 5 files changed, 145 insertions(+), 58 deletions(-) -- 1.7.7.1