From nobody Sat Feb 7 08:58:26 2026 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=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1582131274; cv=none; d=zohomail.com; s=zohoarc; b=Bnv6y/7Wi3RcXwn3sskhkHcVggWuArekSD70JCw8g0CmCXrcvn9L8gKZGgi5sQYyWbRg3e5japXngCrMIrrdfIovMK2GvAZLzquFc7jQQrRYk33d6b6HUa7XeQbPr6ncSbgOsqKayZl2+XJZxF++QiYiKXjTdmf1JTmKrF/wgwo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582131274; h=Content-Type:Content-Transfer-Encoding:Cc: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=NIbpoTPRIugC/AN/kKqRGy1bAH0u75EO9suDLoHM/2Q=; b=kmVDo96isF43W6O6ljr73jruJWSZ26tc6YbvctFQPHNnPgnbWR1OtPSfsmOqKI8pt9WCZGmP0rbC4HEWL2E+HX2DPH3wxXImJB8HmVf1lAGm7WJSAMnE56ZD0u3JxaMSDJ6JOKWVxBWyEnAGts+h9f/Nwrc+7DQFQThFh3jdqe4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=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 1582131274243287.5172762511992; Wed, 19 Feb 2020 08:54:34 -0800 (PST) Received: from localhost ([::1]:56470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4ScL-0001Ad-71 for importer@patchew.org; Wed, 19 Feb 2020 11:54:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39190) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4S3w-0001wd-6Y for qemu-devel@nongnu.org; Wed, 19 Feb 2020 11:19:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4S3u-0004WD-CH for qemu-devel@nongnu.org; Wed, 19 Feb 2020 11:18:59 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:28755 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4S3t-0004VE-CL for qemu-devel@nongnu.org; Wed, 19 Feb 2020 11:18:58 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-299-JoMmZ0zCMwWKVlXeSeCHBg-1; Wed, 19 Feb 2020 11:18:51 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7AC858C8333; Wed, 19 Feb 2020 16:18:50 +0000 (UTC) Received: from t480s.redhat.com (ovpn-116-151.ams2.redhat.com [10.36.116.151]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB4B689F13; Wed, 19 Feb 2020 16:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582129135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NIbpoTPRIugC/AN/kKqRGy1bAH0u75EO9suDLoHM/2Q=; b=DQwBr8kltc01EN9sxSwraxmRIY9rLN9IdZS0h0oWRYwTmTCGDYJNsRheoYhji2DZxslenU k7Nfe57TzdRFyztm0hPH/fJhKhuGGOUFFGxk5pAOUtrcFO7pFv/5bqrZnlBmltYq+Szb3k WsywBOglY3MKRj/kw5wswgo8S+7v/Hs= From: David Hildenbrand To: qemu-devel@nongnu.org Subject: [PATCH v1 07/13] migrate/ram: Get rid of "place_source" in ram_load_postcopy() Date: Wed, 19 Feb 2020 17:17:19 +0100 Message-Id: <20200219161725.115218-8-david@redhat.com> In-Reply-To: <20200219161725.115218-1-david@redhat.com> References: <20200219161725.115218-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: JoMmZ0zCMwWKVlXeSeCHBg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 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: Eduardo Habkost , Juan Quintela , David Hildenbrand , "Dr . David Alan Gilbert" , Peter Xu , Paolo Bonzini , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" It's always the same value. Cc: "Dr. David Alan Gilbert" Cc: Juan Quintela Cc: Peter Xu Signed-off-by: David Hildenbrand --- migration/ram.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index cbd54947fb..75014717f6 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -3119,7 +3119,6 @@ static int ram_load_postcopy(QEMUFile *f) ram_addr_t addr; void *host =3D NULL; void *page_buffer =3D NULL; - void *place_source =3D NULL; RAMBlock *block =3D NULL; uint8_t ch; int len; @@ -3188,7 +3187,6 @@ static int ram_load_postcopy(QEMUFile *f) place_needed =3D true; target_pages =3D 0; } - place_source =3D postcopy_host_page; } =20 switch (flags & ~RAM_SAVE_FLAG_CONTINUE) { @@ -3220,7 +3218,7 @@ static int ram_load_postcopy(QEMUFile *f) * buffer to make sure the buffer is valid when * placing the page. */ - qemu_get_buffer_in_place(f, (uint8_t **)&place_source, + qemu_get_buffer_in_place(f, (uint8_t **)&postcopy_host_pag= e, TARGET_PAGE_SIZE); } break; @@ -3265,8 +3263,8 @@ static int ram_load_postcopy(QEMUFile *f) ret =3D postcopy_place_page_zero(mis, place_dest, block); } else { - ret =3D postcopy_place_page(mis, place_dest, - place_source, block); + ret =3D postcopy_place_page(mis, place_dest, postcopy_host= _page, + block); } } } --=20 2.24.1