From nobody Tue Feb 10 03:55:50 2026 Delivered-To: importer@patchew.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=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; t=1640344438; cv=none; d=zohomail.com; s=zohoarc; b=Q807nw4MLPuYWRMWayqDbjvS4U1Hm8YwwFHLFqQbcJJ6bZWOk9WtjgtclbxglLw66l3v2xzeTAN/Ht6OOF9MN++Rn2Z88t4XRxWQC1EQvVWRnWKxqqhECLelRbepI87vbMCnDfDHRcOxPyBUVTraGMuZct9Ioo4Oa9NtfA89Nts= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640344438; h=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=npu6QCAVO0+Gg1boHLcX4oRJpIURmt5HZFLHhVTQCBE=; b=hd3tH5p2SMonXp5fujqSR3hNA4Oazxudy8YVoH8RrSMpPfcmFwXXyoz4ag0g1V0cFtX7spjlF0XX9OKiUTxajbcFQMyDDKvc4TqX1tYXxPGrcg36ryGKtPjaBgWGlW5SpR83DeZHL8hpofQpASGLVDxwuYUO7hCouMe1Ba2Q3MA= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 164034443763968.22444428394442; Fri, 24 Dec 2021 03:13:57 -0800 (PST) Received: from localhost ([::1]:39006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0iWK-0003pr-PQ for importer@patchew.org; Fri, 24 Dec 2021 06:13:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0iUP-00018Y-GF for qemu-devel@nongnu.org; Fri, 24 Dec 2021 06:11:59 -0500 Received: from relay.sw.ru ([185.231.240.75]:48192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0iUM-0003OU-5B for qemu-devel@nongnu.org; Fri, 24 Dec 2021 06:11:57 -0500 Received: from [10.94.3.117] (helo=nun.qa.sw.ru) by relay.sw.ru with esmtp (Exim 4.94.2) (envelope-from ) id 1n0iUG-004OwN-VJ; Fri, 24 Dec 2021 14:11:48 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-Id:Date:Subject:From: Content-Type; bh=npu6QCAVO0+Gg1boHLcX4oRJpIURmt5HZFLHhVTQCBE=; b=Y7e+mrjlXHs2 U4PWuA+kcxEkAzWb7sSeivDeTC6l1S2b+TOJwW2Tt2bxPj1JOJStQairQqo08OHVBK7VrODR6Bqvb VmALtQHtWyVgfwSj3AXm1wBR5w7cCrQWmCZYyHFq+khFQGWFZQD+rjIloFGaKWDL0Y+CGmDVNi9KN 4vxLA=; From: Nikita Lapshin To: qemu-devel@nongnu.org Cc: quintela@redhat.com, dgilbert@redhat.com, eblake@redhat.com, armbru@redhat.com, eduardo@habkost.net, crosa@redhat.com, kwolf@redhat.com, hreitz@redhat.com, nikita.lapshin@virtuozzo.com, vsementsov@virtuozzo.com, den@virtuozzo.com Subject: [PATCH 1/6] migration: is_ram changed to is_iterable Date: Fri, 24 Dec 2021 14:11:43 +0300 Message-Id: <20211224111148.345438-2-nikita.lapshin@virtuozzo.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211224111148.345438-1-nikita.lapshin@virtuozzo.com> References: <20211224111148.345438-1-nikita.lapshin@virtuozzo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=185.231.240.75; envelope-from=nikita.lapshin@virtuozzo.com; helo=relay.sw.ru X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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 @virtuozzo.com) X-ZM-MESSAGEID: 1640346234417000002 Content-Type: text/plain; charset="utf-8" For new migration capabilities upcoming we need to use something like is_ram for this purpose. This member of struction is true not only for RAM so it should be renamed. Signed-off-by: Nikita Lapshin Reviewed-by: Vladimir Sementsov-Ogievskiy --- migration/savevm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/migration/savevm.c b/migration/savevm.c index 0bef031acb..f90fdb2bdd 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -248,7 +248,7 @@ typedef struct SaveStateEntry { const VMStateDescription *vmsd; void *opaque; CompatEntry *compat; - int is_ram; + int is_iterable; } SaveStateEntry; =20 typedef struct SaveState { @@ -797,9 +797,9 @@ int register_savevm_live(const char *idstr, se->ops =3D ops; se->opaque =3D opaque; se->vmsd =3D NULL; - /* if this is a live_savem then set is_ram */ + /* if this is a live_savem then set is_iterable */ if (ops->save_setup !=3D NULL) { - se->is_ram =3D 1; + se->is_iterable =3D 1; } =20 pstrcat(se->idstr, sizeof(se->idstr), idstr); @@ -1625,7 +1625,7 @@ int qemu_save_device_state(QEMUFile *f) QTAILQ_FOREACH(se, &savevm_state.handlers, entry) { int ret; =20 - if (se->is_ram) { + if (se->is_iterable) { continue; } if ((!se->ops || !se->ops->save_state) && !se->vmsd) { @@ -2428,7 +2428,7 @@ qemu_loadvm_section_start_full(QEMUFile *f, Migration= IncomingState *mis) se->load_section_id =3D section_id; =20 /* Validate if it is a device's state */ - if (xen_enabled() && se->is_ram) { + if (xen_enabled() && se->is_iterable) { error_report("loadvm: %s RAM loading not allowed on Xen", idstr); return -EINVAL; } --=20 2.27.0