From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqSbb-0001L7-VQ for qemu-devel@nongnu.org; Mon, 17 Nov 2014 15:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqSbV-0005qx-RV for qemu-devel@nongnu.org; Mon, 17 Nov 2014 15:08:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqSbV-0005qn-LK for qemu-devel@nongnu.org; Mon, 17 Nov 2014 15:08:53 -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 sAHK8rQg007077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 17 Nov 2014 15:08:53 -0500 Date: Mon, 17 Nov 2014 22:08:49 +0200 From: "Michael S. Tsirkin" Message-ID: <1416254843-16859-2-git-send-email-mst@redhat.com> References: <1416254843-16859-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1416254843-16859-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH 1/5] 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: pbonzini@redhat.com, Orit Wasserman , dgilbert@redhat.com, Juan Quintela 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 cf1d4c7..d7e5238 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -159,6 +159,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