From patchwork Fri Mar 6 11:09:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 184264 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp7299646ile; Fri, 6 Mar 2020 03:16:48 -0800 (PST) X-Google-Smtp-Source: ADFU+vsaJQ3Xs8GwjLNgaQjPVqxle3FhC124cijMpuRYNOB1Cj2Z93sM9vtNMOU4N/m3gXlh9fCq X-Received: by 2002:ac8:2b8f:: with SMTP id m15mr2457237qtm.30.1583493408079; Fri, 06 Mar 2020 03:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583493408; cv=none; d=google.com; s=arc-20160816; b=cEcMSwS4iKwR7b2Eiy3cI/39v/SQpN2B+tNr8f7mhOqME3tAgWCju0EJaq47J5qpZD x7p2KSieJ7Pvf4T+qCViIMtkcnGKNTaHJb7ljwqe88OvlohgPCzPGjAjhW/TkrWW58y7 eLFEpJ8YayLnRJRGgG38ELOF9lSeGlbRJdHhXpWDO4obYKot4GxVcvA0Fg8Gkla11cA0 YdRz+M7Qdb4N+IYrTO1FGItJQg1e5y5etubXyT0lOGz2TJY1A287HmKy6e9NY6ew3Hgr 9Vrt3GHSMJZOm8h7itNctnqVDOxYY4Uj80brNeRe2KOnNrKj79fQGqK1Qw9pzZCap1xR 7upw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=35LJFplcENQkWTwhyASkVZwG6kWYY8alVYwNQMduLFs=; b=MiTbhh2ClgVOyU+NFDcUEhCJYq8jspdEo4bsRKp3dKIbFLTu7HRPGqF06NuaCjjxr1 W+Ar8cX8TY/yMaBVjDsqmXmNA+9ZUItMAT9sXY91P1AIW/2Xxn9vr3ODjWjoMpap5x1L 5APhPubMKVOuDSBKzw8/fBMcu8BuWWJDWAPP/r2ln1/zG+fRKvvcs2dMlQ9rqIHvdzmS Khj4Hb8ns8p7GxhmBKLcWTD8EBTs/sWOTYPuSSP+K7VlaBy491gGjOe0uVQCATgcPDdS IH7+GoAnY1z0D7i7WNfLlfCr2FhvXo+gkPAOcjaN77Ok3EKuVgZGVfgsx294HjxyrcaF 0y4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eB+kGHv7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o69si1136969qke.172.2020.03.06.03.16.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Mar 2020 03:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eB+kGHv7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34911 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAAyE-0006pC-Ii for patch@linaro.org; Fri, 06 Mar 2020 06:16:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39458) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAAs9-0003oW-PU for qemu-devel@nongnu.org; Fri, 06 Mar 2020 06:10:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAAs7-0005EO-N9 for qemu-devel@nongnu.org; Fri, 06 Mar 2020 06:10:29 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:35282) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAAs7-0005CE-Eo for qemu-devel@nongnu.org; Fri, 06 Mar 2020 06:10:27 -0500 Received: by mail-wr1-x441.google.com with SMTP id r7so1881713wro.2 for ; Fri, 06 Mar 2020 03:10:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=35LJFplcENQkWTwhyASkVZwG6kWYY8alVYwNQMduLFs=; b=eB+kGHv7yj4DcoIHJsIcvOUXJHzKsXvIaRt886Duru0cupY2wpLZQJvsy60QDBaTRB AhxbeIFtqS60vFvPxvsuZDmcQe6FLNL0xeX7uUPZCvL/ZiL5y+GY6A/oa61otNgQBXf9 RL9PZn6tPVQtzy9xuYaf+RhVi80Dbn4I5DJ7i4YKJ33oKH2LY+BezmK8vRMvs5A+S1OC cE/4X1UW1S/fQ9sn+nsHkfc/oCk9JHhy6L6e89XT5e5eyn75Jk5kBayxu1QyWdgA9kTy HeR1TwbfxH3FEClBa5InsGP4DyylXGfIXqj229vhNcu5D6UyvtAermxbKgVynlKrQ8hg Lebg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=35LJFplcENQkWTwhyASkVZwG6kWYY8alVYwNQMduLFs=; b=Yd7Cmw1LaTwubkcVruWLBTXkd0vOjPGYFCgNh9DhZl9Z0KrpeNXCLszNc/juo2S3mx h1D83Yrff8Io1EIMJ/+omK2suHIot/3r+uNcamCPLTMuQbKgRleMpj3p20ZTiwVXQ4qL aAINucc3msVhpJbITaaAxxx+8Ywpgsf/T693U0EaqfAXGflRodNPrFp+Cf21aJ+cf8n4 tKEjNTYHvh+MXOr+BCbjbzdKL6Sh8TmP73UU7AaVHthnhRIYpzh9HwQU/tDRPijBpgyp TroIknUPIiXS/DduTROamp7WYFvjQdg7OFLMyS4MsdNFkdtQ4fPYX5kgh2QC0inJLZv/ xVFg== X-Gm-Message-State: ANhLgQ3HZM/PpJawNXkRf/Ll47yxipPVDrR1D7UYXOxlKJEtwaDA0bTx ZginSqJ2Q9lIbg7LlMigOCYlJxBL3Oqmsg== X-Received: by 2002:adf:fa0f:: with SMTP id m15mr3739564wrr.392.1583493026138; Fri, 06 Mar 2020 03:10:26 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id y10sm12553029wma.26.2020.03.06.03.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 03:10:25 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 17/33] docs/system: convert managed startup to rST. Date: Fri, 6 Mar 2020 11:09:43 +0000 Message-Id: <20200306110959.29461-18-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200306110959.29461-1-peter.maydell@linaro.org> References: <20200306110959.29461-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Fix one typo in the process and format more option and command names as literal text, but make no significant changes to the content. Signed-off-by: Peter Maydell Signed-off-by: Paolo Bonzini Reviewed-by: Alex Bennée Tested-by: Alex Bennée Message-id: 20200228153619.9906-18-peter.maydell@linaro.org Message-id: 20200226113034.6741-17-pbonzini@redhat.com --- docs/system/index.rst | 2 +- docs/system/managed-startup.rst | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 docs/system/managed-startup.rst -- 2.20.1 diff --git a/docs/system/index.rst b/docs/system/index.rst index 5034f903407..d655344fffd 100644 --- a/docs/system/index.rst +++ b/docs/system/index.rst @@ -13,6 +13,6 @@ Contents: .. toctree:: :maxdepth: 2 - + managed-startup security vfio-ap diff --git a/docs/system/managed-startup.rst b/docs/system/managed-startup.rst new file mode 100644 index 00000000000..9bcf98ea790 --- /dev/null +++ b/docs/system/managed-startup.rst @@ -0,0 +1,35 @@ +Managed start up options +======================== + +In system mode emulation, it's possible to create a VM in a paused +state using the ``-S`` command line option. In this state the machine +is completely initialized according to command line options and ready +to execute VM code but VCPU threads are not executing any code. The VM +state in this paused state depends on the way QEMU was started. It +could be in: + +- initial state (after reset/power on state) +- with direct kernel loading, the initial state could be amended to execute + code loaded by QEMU in the VM's RAM and with incoming migration +- with incoming migration, initial state will be amended with the migrated + machine state after migration completes + +This paused state is typically used by users to query machine state and/or +additionally configure the machine (by hotplugging devices) in runtime before +allowing VM code to run. + +However, at the ``-S`` pause point, it's impossible to configure options +that affect initial VM creation (like: ``-smp``/``-m``/``-numa`` ...) or +cold plug devices. The experimental ``--preconfig`` command line option +allows pausing QEMU before the initial VM creation, in a "preconfig" state, +where additional queries and configuration can be performed via QMP +before moving on to the resulting configuration startup. In the +preconfig state, QEMU only allows a limited set of commands over the +QMP monitor, where the commands do not depend on an initialized +machine, including but not limited to: + +- ``qmp_capabilities`` +- ``query-qmp-schema`` +- ``query-commands`` +- ``query-status`` +- ``x-exit-preconfig``