From nobody Tue May 7 14:10:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1603998258; cv=none; d=zohomail.com; s=zohoarc; b=CcyuURg9xTpo+gCsPxauqVKoMXjz7UEhkgvDwRAbvJzs9V0FUX3UbUdOcOufNVN8dhjVheT8jQewc9G8ESLJv+Lp9/8M5I6AMXNJUlRtmQBThI+c74kXtZgzLoff6hBwpm2DFj88z6ojb1UMG0uhdyYLXIL8LmHndoKI7EUdTYs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603998258; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=PjoN1VtNrqCy9Sd+SGhiFGDyT8M6kw114LQQ5wrE1Lk=; b=EcvTwUdN9zRjozNwSwQvVqhciryOIMmzSvmfBz3rpKHfk4PmPO7AjTKaIgHv6Ayk06upRz1L7QTILbEwl7ZPB2gNyfgvPFlfeIQkUlEWohXETjJO9FJwXVCQVq5gUILrXeTr3SM/9KflTiQMVGgDalq8Lpkohuf7VSj6FxIx8J4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1603998258010223.62156657286152; Thu, 29 Oct 2020 12:04:18 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.14582.35993 (Exim 4.92) (envelope-from ) id 1kYDDD-0007Ol-M8; Thu, 29 Oct 2020 19:03:51 +0000 Received: by outflank-mailman (output) from mailman id 14582.35993; Thu, 29 Oct 2020 19:03:51 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kYDDD-0007Oe-J5; Thu, 29 Oct 2020 19:03:51 +0000 Received: by outflank-mailman (input) for mailman id 14582; Thu, 29 Oct 2020 19:03:50 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kYDDC-0007OZ-9F for xen-devel@lists.xenproject.org; Thu, 29 Oct 2020 19:03:50 +0000 Received: from mail-io1-xd41.google.com (unknown [2607:f8b0:4864:20::d41]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d77ef8ef-a576-42f2-bd4f-ebcbb3d3e1f8; Thu, 29 Oct 2020 19:03:49 +0000 (UTC) Received: by mail-io1-xd41.google.com with SMTP id u62so4708732iod.8 for ; Thu, 29 Oct 2020 12:03:49 -0700 (PDT) Received: from shine.lan ([2001:470:8:67e:fcfe:e213:efe5:2016]) by smtp.gmail.com with ESMTPSA id g185sm2958818ilh.35.2020.10.29.12.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 12:03:47 -0700 (PDT) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kYDDC-0007OZ-9F for xen-devel@lists.xenproject.org; Thu, 29 Oct 2020 19:03:50 +0000 Received: from mail-io1-xd41.google.com (unknown [2607:f8b0:4864:20::d41]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d77ef8ef-a576-42f2-bd4f-ebcbb3d3e1f8; Thu, 29 Oct 2020 19:03:49 +0000 (UTC) Received: by mail-io1-xd41.google.com with SMTP id u62so4708732iod.8 for ; Thu, 29 Oct 2020 12:03:49 -0700 (PDT) Received: from shine.lan ([2001:470:8:67e:fcfe:e213:efe5:2016]) by smtp.gmail.com with ESMTPSA id g185sm2958818ilh.35.2020.10.29.12.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 12:03:47 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d77ef8ef-a576-42f2-bd4f-ebcbb3d3e1f8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PjoN1VtNrqCy9Sd+SGhiFGDyT8M6kw114LQQ5wrE1Lk=; b=D4vmX/hVLY7pNXdyr/ARgCUQIxYP/peLKolCkz11AlYWKAV6E9FliRldyvgKm2W5RJ uWy81iRgo1aX5zEBx0XYHgTYskhIC/fsuHpZ7JTm/H8/9cm8G9jkt2Hqjr3VYhh6D0Ps G8WFwGj3kxrucyjP0lhi4AimJgd839QVFVgZJTC9HeaLHjuKqOxRmRSgj28ByEnfht/5 SAoVWBoKT+aNuKZLyclqBnm44XpLVadCcr216ap5SfflL8QMsZ6I+AOdV5xCpMsRqPF0 OQ4iLkV5G2zIAUf6fKAgCG4cgvMosGZfKGXkz9pbjPyNIWuLCQq3P3qtFtukLKvCBbzn YK4g== 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:mime-version :content-transfer-encoding; bh=PjoN1VtNrqCy9Sd+SGhiFGDyT8M6kw114LQQ5wrE1Lk=; b=pfXwWHsMtSHS2u3hk9+cFFCAyl+0wqyeYiPeOwYphrSCGIxyOUByqL7DPiVcERM7lX e8Ww40TLUzVak9T+xERtABIAYDBBYXgV+5uYn0CjSeqY1u5JHl+uh0l1xQdRCNVCvFfq 8OCoY+/InI8+hqEOononNU15LmOHSvPhdDUmyTJAuqizd+Q7NAH0JvAFzSwc0J/PjNZw 27rdJ5b0oJfPHYYsB9tOy8JmpcCslncpZ5surf42zbuOdznLmT28i/xRMniaBfNThe8a 3IQPDIJFT+UR23hTVzEEOuYEwaYGUD/z7rEPoRzRnIOP5yJfCiVBS1sXre6FVdtXmy+W eqWQ== X-Gm-Message-State: AOAM5305oB/iXwsAprNSUMJ6tSfw+MqctH2shOivbnW6tKRROyO66zkQ pQYVwx2tuO/DjOgCPQm7eFWNiJpAkjQ= X-Google-Smtp-Source: ABdhPJzOhp5U22ALopDDwWzUDzIt6Hf9u9tG4Ta9al7tHl/lc6geiR7/6WbaApxLlPxn4MzcDPMGGA== X-Received: by 2002:a02:48:: with SMTP id 69mr4618562jaa.108.1603998228652; Thu, 29 Oct 2020 12:03:48 -0700 (PDT) From: Jason Andryuk To: xen-devel@lists.xenproject.org Cc: Anthony PERARD , Jason Andryuk , Ian Jackson , Wei Liu Subject: [PATCH v2] libxl: Add suppress-vmdesc to QEMU machine Date: Thu, 29 Oct 2020 15:03:32 -0400 Message-Id: <20201029190332.31161-1-jandryuk@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Type: text/plain; charset="utf-8" The device model state saved by QMP xen-save-devices-state doesn't include the vmdesc json. When restoring an HVM, xen-load-devices-state always triggers "Expected vmdescription section, but got 0". This is not a problem when restore comes from a file. However, when QEMU runs in a linux stubdom and comes over a console, EOF is not received. This causes a delay restoring - though it does restore. Setting suppress-vmdesc skips looking for the vmdesc during restore and avoids the wait. QEMU 5.2 enables suppress-vmdesc by default for xenfv, but this change sets it manually for xenfv and xen_platform_pci=3D0 when -machine pc is use. QEMU commit 9850c6047b8b "migration: Allow to suppress vmdesc submission" added suppress-vmdesc in QEMU 2.3. Signed-off-by: Jason Andryuk Acked-by: Anthony PERARD --- QEMU 2.3 came out in 2015, so setting suppress-vmdesc unilaterally should be okay... Is this okay? --- tools/libs/light/libxl_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libs/light/libxl_dm.c b/tools/libs/light/libxl_dm.c index d1ff35dda3..3da83259c0 100644 --- a/tools/libs/light/libxl_dm.c +++ b/tools/libs/light/libxl_dm.c @@ -1778,9 +1778,9 @@ static int libxl__build_device_model_args_new(libxl__= gc *gc, /* Switching here to the machine "pc" which does not add * the xen-platform device instead of the default "xenfv" mach= ine. */ - machinearg =3D libxl__strdup(gc, "pc,accel=3Dxen"); + machinearg =3D libxl__strdup(gc, "pc,accel=3Dxen,suppress-vmde= sc=3Don"); } else { - machinearg =3D libxl__strdup(gc, "xenfv"); + machinearg =3D libxl__strdup(gc, "xenfv,suppress-vmdesc=3Don"); } if (b_info->u.hvm.mmio_hole_memkb) { uint64_t max_ram_below_4g =3D (1ULL << 32) - --=20 2.25.1