From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E974AC432C3 for ; Fri, 22 Nov 2019 08:30:25 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADCE820672 for ; Fri, 22 Nov 2019 08:30:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ccN2HvfI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADCE820672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iY4Ke-0007Rg-UL for qemu-devel@archiver.kernel.org; Fri, 22 Nov 2019 03:30:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45725) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iY4Jf-0006v0-Ve for qemu-devel@nongnu.org; Fri, 22 Nov 2019 03:29:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iY4Jf-0006Gc-0m for qemu-devel@nongnu.org; Fri, 22 Nov 2019 03:29:23 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:34210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iY4Je-0006GA-PL for qemu-devel@nongnu.org; Fri, 22 Nov 2019 03:29:22 -0500 Received: by mail-wm1-x344.google.com with SMTP id j18so9654360wmk.1 for ; Fri, 22 Nov 2019 00:29:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wha1hglNGt4UstaAQQvLQMbo/kd1j8mCEModtILhLKk=; b=ccN2HvfIuPBCfRYS/bPPAbsOK6lIz7D8lMTzencQTbLXiT4prEC+XQ4sQTVrQYMQuT BJF5fyDFYjExZm3W5fnxiPwksxZKL96uqll9qsUeeBl0PKUmNP9tRB/eWi3zF51gdgTr YjV4S+qH5MXv12NCNsRIdxlgP6Xkr6bCXb7MISQsIxiBEm8B9gGIsY+0v6oQxuyajhiE kbZUW/Q5mhzk0pPH6AF7T7rLY3Qwhv+SbfBrq3qmhLyyXQh9AqfRtwe09u6A9NNTJl23 AsBEGIo2NoRXI2530o0CYLOCMg3Uk6V9uBdZProlq0ytC7bMqNTByqoDcjOuh6weDhzH mpEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wha1hglNGt4UstaAQQvLQMbo/kd1j8mCEModtILhLKk=; b=ewFMawfCn9qhgYfmv0oJcCi2D0X97y7QUn2VjqaG7dPvzncZ4p+AePSzPD+H9FIDAK N9WOC/z5l3Zz2rpGN47qnTEsm/Xl4qzLee+uoW0bc8Z7Rk86MYx2koRoD3Iysc1yN69G 9SpqsLU1dDw5xSR+m+oNVfHe0mZYMg2KquwMW98psqWE3T4qOxTB20kaQfQ1FcKyRDdW 0FE6IeYL1TC53atm2fmywUrgpzQdO16UYlsvLr55pS4+lHnliJemnqyl8/ZebzpS5MXw cjZ1G/MB7t2lJb8G5HWzocpD0nC1wFzxrkdm1L/Vb64x9yPG36+Oe3bOvvtiP65o9jth oCJQ== X-Gm-Message-State: APjAAAUtND8SmE5r81SozdWTyDJoq3OvnAshxIAul1LQAxQ64iZSr/tH 5J9XIDUL5HE6K+PfJy+KOKWF4w== X-Google-Smtp-Source: APXvYqxnFIiF6Tr8PV3ns6yAC/dnuCqahHAbsIyvYK5YipNGtq9KllcfWaAY6VIrBJdtvvHg6gPeDw== X-Received: by 2002:a1c:20c6:: with SMTP id g189mr1203573wmg.6.1574411361531; Fri, 22 Nov 2019 00:29:21 -0800 (PST) Received: from [192.168.1.143] (host217-43-132-120.range217-43.btcentralplus.com. [217.43.132.120]) by smtp.gmail.com with ESMTPSA id o21sm2583113wmc.17.2019.11.22.00.29.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Nov 2019 00:29:20 -0800 (PST) Subject: Re: [PATCH v3 2/4] Memory: Enable writeback for given memory region To: Beata Michalska , qemu-devel@nongnu.org References: <20191121000843.24844-1-beata.michalska@linaro.org> <20191121000843.24844-3-beata.michalska@linaro.org> From: Richard Henderson Openpgp: preference=signencrypt Message-ID: Date: Fri, 22 Nov 2019 08:22:58 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191121000843.24844-3-beata.michalska@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, quintela@redhat.com, dgilbert@redhat.com, shameerali.kolothum.thodi@huawei.com, eric.auger@redhat.com, qemu-arm@nongnu.org, pbonzini@redhat.com, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 11/21/19 1:08 AM, Beata Michalska wrote: > Add an option to trigger memory writeback to sync given memory region > with the corresponding backing store, case one is available. > This extends the support for persistent memory, allowing syncing on-demand. > > Signed-off-by: Beata Michalska > --- > exec.c | 36 ++++++++++++++++++++++++++++++++++++ > include/exec/memory.h | 6 ++++++ > include/exec/ram_addr.h | 8 ++++++++ > include/qemu/cutils.h | 1 + > memory.c | 12 ++++++++++++ > util/cutils.c | 38 ++++++++++++++++++++++++++++++++++++++ > 6 files changed, 101 insertions(+) Reviewed-by: Richard Henderson r~