From nobody Mon Feb 9 08:29:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1557296260; cv=none; d=zoho.com; s=zohoarc; b=b97b0Vili+DV438YWF5b3TT7sB/8gZKhYR+Ury52NKPYMUOkbsbHwEYPSJgGfJ/6hWRjQ/wScZPCc5RhMA3xekF6hIvgGMQXpDo/B2fyHraSKJRo/YS/r9mrvG1qnI8tn2U+iOeUY4LLChs9lQ7nf0xOwVrexbAfTYG09Sp/iz8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557296260; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=/q4ZlzIBVeVpxPRz1MEUr5KSpCSn2mveS5coEyuoEW0=; b=YmPNQUy0igFqCTQPOLHU2L5dxCRDzqnuOyDlNSQJ8OAD/hg4Lm+fIDj/cgZIcTXeY1rPHnnWcHoVbR/zI5gTzcr5rKAkjAziEXQeF7/z8cXZwdP/f5SyYNsz1h+vlb8SIAV5cFZcYHmWHuaqztID4DL81jrLDUL0it/1I/Bm+Nw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 155729626029449.00687734882979; Tue, 7 May 2019 23:17:40 -0700 (PDT) Received: from localhost ([127.0.0.1]:60066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOFtY-0002Vu-8C for importer@patchew.org; Wed, 08 May 2019 02:17:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOFrd-0000Zl-SW for qemu-devel@nongnu.org; Wed, 08 May 2019 02:15:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOFrc-0003s5-Su for qemu-devel@nongnu.org; Wed, 08 May 2019 02:15:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40976) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOFrc-0003qP-NY for qemu-devel@nongnu.org; Wed, 08 May 2019 02:15:36 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 14A5530970CF for ; Wed, 8 May 2019 06:15:36 +0000 (UTC) Received: from xz-x1.nay.redhat.com (dhcp-15-205.nay.redhat.com [10.66.15.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id 025E116BF0; Wed, 8 May 2019 06:15:33 +0000 (UTC) From: Peter Xu To: qemu-devel@nongnu.org Date: Wed, 8 May 2019 14:15:14 +0800 Message-Id: <20190508061523.17666-3-peterx@redhat.com> In-Reply-To: <20190508061523.17666-1-peterx@redhat.com> References: <20190508061523.17666-1-peterx@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 08 May 2019 06:15:36 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 02/11] memory: Remove memory_region_get_dirty() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , "Dr . David Alan Gilbert" , peterx@redhat.com, Juan Quintela Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" It's never used anywhere. Signed-off-by: Peter Xu Reviewed-by: Paolo Bonzini --- include/exec/memory.h | 17 ----------------- memory.c | 8 -------- 2 files changed, 25 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 9144a47f57..e6140e8a04 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -1254,23 +1254,6 @@ void memory_region_ram_resize(MemoryRegion *mr, ram_= addr_t newsize, */ void memory_region_set_log(MemoryRegion *mr, bool log, unsigned client); =20 -/** - * memory_region_get_dirty: Check whether a range of bytes is dirty - * for a specified client. - * - * Checks whether a range of bytes has been written to since the last - * call to memory_region_reset_dirty() with the same @client. Dirty loggi= ng - * must be enabled. - * - * @mr: the memory region being queried. - * @addr: the address (relative to the start of the region) being queried. - * @size: the size of the range being queried. - * @client: the user of the logging information; %DIRTY_MEMORY_MIGRATION or - * %DIRTY_MEMORY_VGA. - */ -bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr, - hwaddr size, unsigned client); - /** * memory_region_set_dirty: Mark a range of bytes as dirty in a memory reg= ion. * diff --git a/memory.c b/memory.c index bb2b71ee38..0cce3a6fc5 100644 --- a/memory.c +++ b/memory.c @@ -2027,14 +2027,6 @@ void memory_region_set_log(MemoryRegion *mr, bool lo= g, unsigned client) memory_region_transaction_commit(); } =20 -bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr, - hwaddr size, unsigned client) -{ - assert(mr->ram_block); - return cpu_physical_memory_get_dirty(memory_region_get_ram_addr(mr) + = addr, - size, client); -} - void memory_region_set_dirty(MemoryRegion *mr, hwaddr addr, hwaddr size) { --=20 2.17.1