From patchwork Tue Sep 10 09:56:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beata Michalska X-Patchwork-Id: 11139131 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 208C076 for ; Tue, 10 Sep 2019 10:00:34 +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 E81BB20872 for ; Tue, 10 Sep 2019 10:00:33 +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="sOgF04CL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E81BB20872 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:37118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7cwq-0003yb-GV for patchwork-qemu-devel@patchwork.kernel.org; Tue, 10 Sep 2019 06:00:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50815) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7ct2-0008PX-Kl for qemu-devel@nongnu.org; Tue, 10 Sep 2019 05:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7ct1-0002ZE-Ja for qemu-devel@nongnu.org; Tue, 10 Sep 2019 05:56:36 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:41845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7ct1-0002Yr-EW for qemu-devel@nongnu.org; Tue, 10 Sep 2019 05:56:35 -0400 Received: by mail-wr1-x443.google.com with SMTP id h7so17835486wrw.8 for ; Tue, 10 Sep 2019 02:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H/RngVVAFC6u7kHobivBuj3t/ObQ9MDzihOX8Ue72qY=; b=sOgF04CL48muksHqhI07dFayZIhWRLSf/gA5sLdj76AxYXFgCzJYG5ATkmGXGL/AVk o2vSMPVxh/xYza11TbARaBim353aGDR1eXDWrUZri2cBSEYjpaXYwPTQwNWRBqr8qS4n 5ruJjwYa+YBQ4CgX6mUqNgPYwfs065pf50IHBQr17V6WvJQIe9WgoW6LIey9y/Xc7FW5 kpKFTvJSoJy+Na2037p6Wd0jMhWwRg9CVtH27nuidwcYr8Uj8cMZanF6rlYXCDYL3hJ9 v2cOBro0+ND8ih3Yc7b3Ch1+jJfZzfNOVjzTDb0aCjdsKsn9WGfsShn6L4XegJWImRVm zHZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=H/RngVVAFC6u7kHobivBuj3t/ObQ9MDzihOX8Ue72qY=; b=rU9ZkDid0f8KMMotYIf4xxJA3TMftnO/l+Yn6BKAngjFoVQXb+yjoO7i6vpYU7qyeI /m6NuI35zMA+jZ09qQZ491zhNd7xf3ii75pnWbun8O/g1qv7PVwc1vcsfsWkp8DVO0/k CkWEbtcKj6Yr7V5vYBmWpgLPpS8DiA2nkRIWdTRt4p4XAfwPBUmPWokylNJLskNbgOtQ HveZqfrELtT5f1FMwqrZM+bhoKH1dQSzeLp6zypD5nQgmMqoZd4fw95O8MdLDWsHOUFn Ck9L2dSO3CxoODohz8edHBzDqbpbGWGOa4N1se6lEKi9ateJ1DgacFb0CRVjEfLXO+mV 3liw== X-Gm-Message-State: APjAAAXh8gv3oOOiI/wngCGvfHilKLVLHAiHWtbRf9zmhQsc7popLlE8 1fC5CRC0g5QjvmYxSURT2b5A5yoXg+Y= X-Google-Smtp-Source: APXvYqynw70k2L8t8RmowQsUvN0lBgXakfaLuEGPmfoG2F/QkQFiC2CaQbvl9xzj5KI2IW0HFQ+2Bw== X-Received: by 2002:adf:df8e:: with SMTP id z14mr26631987wrl.81.1568109394391; Tue, 10 Sep 2019 02:56:34 -0700 (PDT) Received: from moi-XPS-13-9350.arm.com (host86-144-13-57.range86-144.btcentralplus.com. [86.144.13.57]) by smtp.gmail.com with ESMTPSA id e30sm32403540wra.48.2019.09.10.02.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 02:56:34 -0700 (PDT) From: Beata Michalska To: qemu-devel@nongnu.org Date: Tue, 10 Sep 2019 11:56:09 +0200 Message-Id: <20190910095610.4546-4-beata.michalska@linaro.org> In-Reply-To: <20190910095610.4546-1-beata.michalska@linaro.org> References: <20190910095610.4546-1-beata.michalska@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH 3/4] migration: ram: Switch to ram block writeback 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, Beata Michalska , quintela@redhat.com, richard.henderson@linaro.org, dgilbert@redhat.com, shameerali.kolothum.thodi@huawei.com, eric.auger@redhat.com, qemu-arm@nongnu.org, pbonzini@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Switch to ram block writeback for pmem migration. Signed-off-by: Beata Michalska Reviewed-by: Richard Henderson --- migration/ram.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index b01a37e7ca..8ea0bd63fc 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" @@ -4064,9 +4063,7 @@ static int ram_load_cleanup(void *opaque) RAMBlock *rb; RAMBLOCK_FOREACH_NOT_IGNORED(rb) { - if (ramblock_is_pmem(rb)) { - pmem_persist(rb->host, rb->used_length); - } + qemu_ram_block_writeback(rb); } xbzrle_load_cleanup();