From nobody Thu Nov 13 22:12:10 2025 Delivered-To: importer@patchew.org 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; 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=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582904468; cv=none; d=zohomail.com; s=zohoarc; b=HKmkWJ2vK6sCn2z78JytvkoSTzJJda+dg028UOkrYt6HGqdEvAooPUo6zokMblOU84Gkx+Zn1hjhBoqjSorbK6CvnOyjVbmB+p30taiHyRlErJ9zhb85K5EhIdRWNWPCrxWh6t4Fj94qyf6oC3aWLRUnBRoq12lMsLtQItdkFoE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582904468; 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=DcfqCgUZHlnjMNnIpq2LHXlCmbSL3XxrstwKCbLM91U=; b=H8eHgHRc4ZHy2vqyiIv9EoWQerwxnZ26SPOHqSEy1bXtM5wwyU2xN3aopG+ctkFYmOKDMbumP0iHGuQHn6cwWKYkKtKlzFpAVwNtQhxn8du2dyNsryGMCDyxFSfd4m0XLSw25rbxQVPilmJaPPDwup0Mc6ib/mpJStAQFqDWo1w= 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=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582904468904661.4283396083688; Fri, 28 Feb 2020 07:41:08 -0800 (PST) Received: from localhost ([::1]:48784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7hlD-0000s7-P8 for importer@patchew.org; Fri, 28 Feb 2020 10:41:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46872) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7hh5-0000yH-TR for qemu-devel@nongnu.org; Fri, 28 Feb 2020 10:36:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7hh4-0004yW-J3 for qemu-devel@nongnu.org; Fri, 28 Feb 2020 10:36:51 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:44321) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7hh4-0004xs-D2 for qemu-devel@nongnu.org; Fri, 28 Feb 2020 10:36:50 -0500 Received: by mail-wr1-x442.google.com with SMTP id m16so3381199wrx.11 for ; Fri, 28 Feb 2020 07:36:50 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id u23sm2659452wmu.14.2020.02.28.07.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 07:36:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DcfqCgUZHlnjMNnIpq2LHXlCmbSL3XxrstwKCbLM91U=; b=cdq/Z3VomzrEkBE3oStCtbx5LYQPMFEAv22KR1QN5EmOJ3+UvTWyW7umCu4a6OhNHv /iu8IKcG4wur5DjmPx35VvFMLkdnm+D/P1Tegak/tqhIkpyov8KoBeRLCSnXqpzRK6EQ BEEWMJt/4ZyqNkAcKwTKkwBvpNzPZELXe1ylm8BMi3l8IOr77RhwpPPi+kvyJ5d2/B/C FRkqsA1KU3O/o4f7hEntsW4hBo+sjhXn6KtziuNL/xsu/RCZLYOp3Fea1+/qtkrWacTV I3upPuCdSDvHIc9irpNAIjkoqwNwf2mTdy6N/4ldDCQHHX2bq+27sPqHamZlDdyGfEmO kn6Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DcfqCgUZHlnjMNnIpq2LHXlCmbSL3XxrstwKCbLM91U=; b=HlOlgd+1T7B5Qic6zo7YW2nUrWBzIMQmoCO+ervz4zfNZrUkraP3734Pw4O6q47TYY I+nW33KsjhNPd1sBjksukPEsyqdo1FqSFrbb15V2lci/0o7MA8B/xSgNpO6+jtS3R/Cm pCNfyoiTKLPE61rwExDWARo8BzpXOmis+g5gm+AOQePiIwi4qpw4t56AGJR4RkQsOnoS TTOYPeGL+19dN5aWRpZ947jasUOMhVaYGFew6aCzcnXG8K10jnskfrSmGjWuJ/Dvh83j KdNvSIKx1ej2T2Hke0XWfYqBJcjdXKSP23MMmteHDmtYQWXLtMNRVN1Lgfjtmkeo5i4g P8Tw== X-Gm-Message-State: APjAAAVeVYINiJF9gelc4f9z4y5JXUBnRzrrxHpSHp76h1LE9BcftmrY xwNn4wa7aB04UNYZSrq169PGqo4fqi1wFA== X-Google-Smtp-Source: APXvYqwAFYmBgQvHzgLCbAH76ZKSXKeUleXYKCDMZKKzrTwNFvN3fnr5sUg057zmwjkMDHzDmG8TBA== X-Received: by 2002:a05:6000:1147:: with SMTP id d7mr5484850wrx.142.1582904208950; Fri, 28 Feb 2020 07:36:48 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH v3 17/33] docs/system: convert managed startup to rST. Date: Fri, 28 Feb 2020 15:36:03 +0000 Message-Id: <20200228153619.9906-18-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200228153619.9906-1-peter.maydell@linaro.org> References: <20200228153619.9906-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 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: , Cc: Paolo Bonzini , Kashyap Chamarthy Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" 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 Message-id: 20200226113034.6741-17-pbonzini@redhat.com Reviewed-by: Alex Benn=C3=A9e --- 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 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: =20 .. 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 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +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 bef= ore +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`` --=20 2.20.1