From nobody Thu Dec 18 22:22:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1576495900; cv=none; d=zohomail.com; s=zohoarc; b=HYLa6A9iw2YvVZojAiR6vEZ74hP/mm+5Yg0KJBXNn7xq6mMFcjnKS1e2zGS2/DYZubKIbo7ORYfT++qYUDb5RZ8oRjJpj4xN7T7ASuoF9PxKrblEszl1J+4YC4FFc85mb+LWnwpVe66GAnatVT2kEHJhCO0dIKvPiYhlggwnh8Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576495900; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kiznhuvKz4jfIKm/7fpiveKPXoY6Nj6u7zhRBMk1ww0=; b=ezN/elR6yUpeNnPUcRv1ansHtf2y8GoUdJVfe+tOH9+e0XoawJDV0HUP+dg1Qp3Cqvyg4xaAEuSZiYzxbafTIXSH0C0tWT7nreisakDBl41XjA7M/dtCP6ZdMh3CZ3MQI/6ImROPNKNONduEOQULDzesVU0bM49zPgaAHd4GoxU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass 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 1576495900505436.33165394304774; Mon, 16 Dec 2019 03:31:40 -0800 (PST) Received: from localhost ([::1]:51778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igobC-0002W6-FT for importer@patchew.org; Mon, 16 Dec 2019 06:31:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51222) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igoFz-00087T-3P for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:09:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igoFy-0000Dz-02 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:09:42 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:47051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igoFx-0000Ax-OA for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:09:41 -0500 Received: by mail-wr1-x433.google.com with SMTP id z7so6675108wrl.13 for ; Mon, 16 Dec 2019 03:09:38 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id x10sm20976131wrp.58.2019.12.16.03.09.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 03:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=kiznhuvKz4jfIKm/7fpiveKPXoY6Nj6u7zhRBMk1ww0=; b=jyhMQ+kXhJwCl7jlcf4vSMmzMKHXjoZe9RoDRxsO6VMmvBwcEQuG8QMzoLNsnJBsDB 9QSoNvUeba/BCASgJBkRhfA0HacXKLKDsGMe3T3UcFpReDktkSpYedl4U7s9oaN5z/Oc 10NBytX9CMfE2Pso225fcCfFN4VPg4ZHYaT4pqK/CWM2NGbwEuw94gpkkS6ynFVIoeI5 OVM25fRGqbQlfTJkK4qQT2GJkDqV+h3FhstVfVaUtbGedZZ2Jo/Lo9qYU93F448eIFNo zeQIPdR9WpSFSOfuew/Mz0goCba1JmYkWEEpAY1xroyPF/YkBID+wpiw4vHRbr0rd062 B7qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kiznhuvKz4jfIKm/7fpiveKPXoY6Nj6u7zhRBMk1ww0=; b=rp3YLZaTPu7K3Ml8qR0lsbRcV71A6RtIEFdtPBL9J49fSU3xr4ZfTX4Balw+bM3nua c3VBJt45i7/pxVA6igDQy5DCDH3H2meEZrmk3b4VshGzD4ebxCW5AN5dzVhjE5NyFZqO 5opy3JuaZqHvIWyjtsSlBciCpNdnmUUBx6a6JQmEx6vjrENLt6sInf1Gn020xP78gcnD X/D/qsHHhqrnE8zSRH1jo+fRZNU2HWLE/+mGJy3ChCjx5x8V6RO1QWLELxHTJP/siDaV 6JqixJa8EgoivUWC+84CBAs3TbqR1z06Y9rofSirLo7AJ5dGzO5Buh4xIAY/ERwbIDLG ruIA== X-Gm-Message-State: APjAAAWUOvMp8qRZr422CDSBzMC110L3TBQU9mSuSzkYaQkBO8SsEiy4 Qy8V2hvZxiXmVPsDKrwWAEWaD7I8Q5PyXw== X-Google-Smtp-Source: APXvYqx1OHF25jKF1+Er4gqNvbANpleyeCSzmpPixaCfwak/NqMYp1HCVUYmeMhV3c5Shv3agWvomQ== X-Received: by 2002:adf:de84:: with SMTP id w4mr28221776wrl.97.1576494577133; Mon, 16 Dec 2019 03:09:37 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 28/34] migration: ram: Switch to ram block writeback Date: Mon, 16 Dec 2019 11:08:58 +0000 Message-Id: <20191216110904.30815-29-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191216110904.30815-1-peter.maydell@linaro.org> References: <20191216110904.30815-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::433 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Beata Michalska Switch to ram block writeback for pmem migration. Signed-off-by: Beata Michalska Reviewed-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e Acked-by: Dr. David Alan Gilbert Message-id: 20191121000843.24844-4-beata.michalska@linaro.org Signed-off-by: Peter Maydell --- migration/ram.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 5078f94490d..38070f1bb23 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -33,7 +33,6 @@ #include "qemu/bitops.h" #include "qemu/bitmap.h" #include "qemu/main-loop.h" -#include "qemu/pmem.h" #include "xbzrle.h" #include "ram.h" #include "migration.h" @@ -3981,9 +3980,7 @@ static int ram_load_cleanup(void *opaque) RAMBlock *rb; =20 RAMBLOCK_FOREACH_NOT_IGNORED(rb) { - if (ramblock_is_pmem(rb)) { - pmem_persist(rb->host, rb->used_length); - } + qemu_ram_block_writeback(rb); } =20 xbzrle_load_cleanup(); --=20 2.20.1