From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3kTa-00084H-1p for qemu-devel@nongnu.org; Wed, 24 Dec 2014 06:51:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3kTZ-0001Wb-3Y for qemu-devel@nongnu.org; Wed, 24 Dec 2014 06:51:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3kTY-0001WK-TB for qemu-devel@nongnu.org; Wed, 24 Dec 2014 06:51:37 -0500 Date: Wed, 24 Dec 2014 13:51:31 +0200 From: "Michael S. Tsirkin" Message-ID: <1419421800-27505-2-git-send-email-mst@redhat.com> References: <1419421800-27505-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1419421800-27505-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 1/8] cpu: add cpu_physical_memory_clear_dirty_range_nocode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Juan Quintela , dgilbert@redhat.com, Orit Wasserman , Paolo Bonzini simple wrapper so callers don't need to know about dirty bitmap clients. Signed-off-by: Michael S. Tsirkin --- include/exec/ram_addr.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index 8fc75cd..18ec092 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -184,6 +184,14 @@ static inline void cpu_physical_memory_clear_dirty_range(ram_addr_t start, bitmap_clear(ram_list.dirty_memory[client], page, end - page); } +static inline void cpu_physical_memory_clear_dirty_range_nocode(ram_addr_t start, + ram_addr_t length) +{ + cpu_physical_memory_clear_dirty_range(start, length, DIRTY_MEMORY_MIGRATION); + cpu_physical_memory_clear_dirty_range(start, length, DIRTY_MEMORY_VGA); +} + + void cpu_physical_memory_reset_dirty(ram_addr_t start, ram_addr_t length, unsigned client); -- MST