From nobody Sat Apr 27 19:01:53 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=1603137733; cv=none; d=zohomail.com; s=zohoarc; b=HTpcQP4oZEyQoYNR0wa4gpeAQvdPWmCha2iSRRqRXfXXT88t4f2KbBPhTi0DYQTpoWxHjmVqB4TM+mxgyx2zrhKlyiXL7DeS/yOvMKqZqN8b3j9uX/SrvIAZpX6opPlsifAUh/YOcTSSDLikft2VMPFbe9kCXdErp2Qvw9BHz1k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603137733; 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=+eQKL04xasUcDd+ftioh0iFMePD/ue+0Y1d/ZN01kBg=; b=KT0+c0F3P9YOep3Z8mqG6FDsOhj2ceedZ0w5RyB7x41FZ7KgJ4HK6rrYqSxHzEYuuTTQEvHHIaH7YS38kzYlmhxhZNxb1pbK7Xj/il0oy7MMenLF9PmmZeBMtW53UpuDNpyhySGu218wq5hoN70FDSbm+FE6NjE84YSdTklIw3w= 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 1603137733610321.9796996142379; Mon, 19 Oct 2020 13:02:13 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.8825.23718 (Exim 4.92) (envelope-from ) id 1kUbLF-0008Tv-Iv; Mon, 19 Oct 2020 20:01:13 +0000 Received: by outflank-mailman (output) from mailman id 8825.23718; Mon, 19 Oct 2020 20:01:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kUbLF-0008To-Fu; Mon, 19 Oct 2020 20:01:13 +0000 Received: by outflank-mailman (input) for mailman id 8825; Mon, 19 Oct 2020 20:01:12 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kUbLE-0008Tj-Nl for xen-devel@lists.xenproject.org; Mon, 19 Oct 2020 20:01:12 +0000 Received: from mail-io1-xd44.google.com (unknown [2607:f8b0:4864:20::d44]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1e333733-8481-45e8-b598-2c21f80f53db; Mon, 19 Oct 2020 20:01:06 +0000 (UTC) Received: by mail-io1-xd44.google.com with SMTP id k6so1300374ior.2 for ; Mon, 19 Oct 2020 13:01:06 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:ba27:ebff:fee8:ce27]) by smtp.gmail.com with ESMTPSA id r12sm748051ilm.28.2020.10.19.13.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 13:01:05 -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 1kUbLE-0008Tj-Nl for xen-devel@lists.xenproject.org; Mon, 19 Oct 2020 20:01:12 +0000 Received: from mail-io1-xd44.google.com (unknown [2607:f8b0:4864:20::d44]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1e333733-8481-45e8-b598-2c21f80f53db; Mon, 19 Oct 2020 20:01:06 +0000 (UTC) Received: by mail-io1-xd44.google.com with SMTP id k6so1300374ior.2 for ; Mon, 19 Oct 2020 13:01:06 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:ba27:ebff:fee8:ce27]) by smtp.gmail.com with ESMTPSA id r12sm748051ilm.28.2020.10.19.13.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 13:01:05 -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: 1e333733-8481-45e8-b598-2c21f80f53db 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=+eQKL04xasUcDd+ftioh0iFMePD/ue+0Y1d/ZN01kBg=; b=XCEbA9S54338AP5dTI8F9hUleHSbLlg34igGxVjXXq/rnVp5Yuymde3Slc91gNLSqW 7zG7zYxDigc6rWP1HgoqbvZQKysbKtv+CPOgh6CigBHdXZD61lAsG597Zj3Cgb/xYOmu bVOBVpHOgSTFNBCvgEeSv5e09oixObUy0onRC9tWLt6j5o8WJ1g4LzP+O+SA/3F+VhnT ONEs89tl+/fqI3AywtYxKe4oNWZtjXIisalBHbwEM9NLNwH7/2Md8v5sEM7/XyaF2N6e dikejV/M0/v+fQ6GIeTw3ChSn9cq48Opc0AVce6/RlhkmK722QOWmu4lNXGZv2MwUhg6 yhiw== 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=+eQKL04xasUcDd+ftioh0iFMePD/ue+0Y1d/ZN01kBg=; b=oWH8MFbXK7WcxK4mHB65egBT9UH8/gC71tgxUqC4DrrQgZ43ucm/y5Z5Hu6nGu+Pz8 5ipg6TC8yREC7IYE6sz3SFH4B6PavVRUEoUdTM1scGOE/aV346sPHK91Y0jbZzlcIhjY R2XejfmOy15WyhTPeflSqYt96t6EmN+ROFq6UZ3kxtk0P7VJXokXybWlQ91gB4UVso7P cyL+7SrRPuOS5hmNIkOWSl48Xh7aN397FmJ/DpuIfFD+bMHamB5FM/pchsNNXOQsfsc3 PeMi3n1wd09grA/E/yMy1QOmaYbUEYQ1rfNVU9bJ87SrwhKjPUL3Y+OrmCzbxh4Wa1TK Fmtg== X-Gm-Message-State: AOAM533v//4/FJPD8BZz5QLeEcn1GVG27rWwUvDOyySO5bTHI7sxD7lS CC58QcalVe8hRxDM+2KU73w= X-Google-Smtp-Source: ABdhPJyNHzUu4H6hURcTDLEKIci573YL5yT9qlQBpApJVZ8Ka0Qz6NplrJDui0k+P45kWTlLlZZY2Q== X-Received: by 2002:a02:cd2c:: with SMTP id h12mr1404514jaq.138.1603137665874; Mon, 19 Oct 2020 13:01:05 -0700 (PDT) From: Jason Andryuk To: anthony.perard@citrix.com, xen-devel@lists.xenproject.org Cc: Jason Andryuk , Ian Jackson , Wei Liu Subject: [PATCH] libxl: Add suppress-vmdesc to QEMU -machine pc options Date: Mon, 19 Oct 2020 16:00:50 -0400 Message-Id: <20201019200050.103360-1-jandryuk@gmail.com> X-Mailer: git-send-email 2.26.2 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. This is a libxl change for the non-xenfv case to match the xenfv change made in qemu Signed-off-by: Jason Andryuk --- Should this also add suppress-vmdesc to xenfv for backwards compatibility? In that case, the change in QEMU is redundent. Since this only really matters for the stubdom case, it could be conditioned on that. tools/libs/light/libxl_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/light/libxl_dm.c b/tools/libs/light/libxl_dm.c index d1ff35dda3..7d735ffcd9 100644 --- a/tools/libs/light/libxl_dm.c +++ b/tools/libs/light/libxl_dm.c @@ -1778,7 +1778,7 @@ 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"); } --=20 2.26.2