Message ID | e6994f3d2d7f78ddf46bf22c9483fe718aae217b.1687430098.git.lukasstraub2@web.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2E8BFEB64D8 for <qemu-devel@archiver.kernel.org>; Thu, 22 Jun 2023 11:23:00 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1qCIOr-0005FF-9S; Thu, 22 Jun 2023 07:22:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <lukasstraub2@web.de>) id 1qCIOm-0005AB-Ed for qemu-devel@nongnu.org; Thu, 22 Jun 2023 07:22:48 -0400 Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <lukasstraub2@web.de>) id 1qCIOk-0006J6-RL for qemu-devel@nongnu.org; Thu, 22 Jun 2023 07:22:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1687432962; x=1688037762; i=lukasstraub2@web.de; bh=tk8ma7v3hC61F8xrAUpSv6dthTlZBmxKf3VkzxTLhp4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=WKa0SpEUqmUywMetO4HlaxCsMkgVZ1ABChPaaAREWyULs9kjOUyl3XxoWxs77ZQHoRaKU23 GvhQRJ+X56ox7dCTlp82GyvXDmsbPRWXOa+LSLaB5J0PM6r2eYYiNL2/tonvijyJy7f4fGoOs wXV+PPnqHTVa1uIdklH2FuWrMrCZyBkrtnyrC+1xB49CYBWTf7IM/20NlPMvGK+fjDhZlJ1eG kJW0hZFFwubaixVGiHFWUYMz5Zp8hDaWD1sOFoVEgwqi///7dzzKTPXQOJWTDsjVvPJe1OXj+ tXqqI656kG9S0DUchmlnL1WRskNjxY2hasXZfJxjLxEffrP/q5/w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from mobian ([46.114.147.93]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M4KNZ-1qCZNY3rLl-000P41; Thu, 22 Jun 2023 13:22:42 +0200 Date: Thu, 22 Jun 2023 13:22:38 +0200 From: Lukas Straub <lukasstraub2@web.de> To: qemu-devel <qemu-devel@nongnu.org> Cc: Juan Quintela <quintela@redhat.com>, Peter Xu <peterx@redhat.com>, Leonardo Bras <leobras@redhat.com>, " =?utf-8?q?C=C3=A9dric?= Le Goater" <clg@redhat.com>, Alex Williamson <alex.williamson@redhat.com> Subject: [PATCH 2/2] savevm: Disallow devices being legacy and iterable at the same time Message-ID: <e6994f3d2d7f78ddf46bf22c9483fe718aae217b.1687430098.git.lukasstraub2@web.de> In-Reply-To: <3c45b84bf970d20bfc72865c4de5c33563c2b62d.1687430098.git.lukasstraub2@web.de> References: <3c45b84bf970d20bfc72865c4de5c33563c2b62d.1687430098.git.lukasstraub2@web.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/vR5Y.N3pzCj19WYOy/2VMv2"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Provags-ID: V03:K1:hcdoR5mPasvgGWzs2TUzneFrxRhaVsrYMPJCtoN6xoHKtmvJQiv ++xzbxVgPmh296LPFShafkf3XcIPir5o0xGBcGZvnJv/a87E30yloy1xqNPeGPM6/4N9Hz2 0otMChUktP0087sis4+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xUitJuQQr4ADZikeJoWhVYF8EQg= Received-SPF: pass client-ip=212.227.15.4; envelope-from=lukasstraub2@web.de; helo=mout.web.de X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
[1/2] vfio: Don't be a iterable and legacy device at the same time
|
expand
|
diff --git a/migration/savevm.c b/migration/savevm.c index 5986f852b2..8d3cf7d675 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -774,6 +774,8 @@ int register_savevm_live(const char *idstr, se->is_ram = 1; } + assert(!(se->ops->save_setup && se->ops->save_state)); + pstrcat(se->idstr, sizeof(se->idstr), idstr); if (instance_id == VMSTATE_INSTANCE_ID_ANY) {
Signed-off-by: Lukas Straub <lukasstraub2@web.de> --- migration/savevm.c | 2 ++ 1 file changed, 2 insertions(+)