From nobody Sat May 18 07:48:33 2024 Delivered-To: importer@patchew.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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620747677; cv=none; d=zohomail.com; s=zohoarc; b=gnBZEStEgY3LwGdgnLZ3gYD7zWXj8DETZpB+EcpGGY8EUwFr597ebrjNgxkmyt9XgifgFc63HoYv539GO3yldus+gx8BARd3h3P+TIFlNi18ZC/WBugpUT0CJZoKV/le14lfyg7wp9/mpf2bO+uMFIAVgqLxAXj4K1kfIj6MnpU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620747677; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=a61q3kMQ7ZSYJT7JxatZFK5aAgRH4JNCtClGRzfYnNI=; b=TvfHp8wzQOU6lDqXA71WUU+be8jdHN+kgMtnOSZCjM8hOtjvLgiXZwbIyPuJghBOjfCmnEnnJN8UdXKKmVXzzaBm7CIwnSSqx/gjCDI1cvylWWZBo4cV59UnYHiZtmhUtXwHD23SpnF0Jc9ZXb8bTrh0ywrsupy5rmrn9t0Erm0= 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 1620747677833872.8586266049527; Tue, 11 May 2021 08:41:17 -0700 (PDT) Received: from localhost ([::1]:43360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgUVY-000181-Fb for importer@patchew.org; Tue, 11 May 2021 11:41:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUU4-0008QI-RC for qemu-devel@nongnu.org; Tue, 11 May 2021 11:39:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUU3-0002Zs-B2 for qemu-devel@nongnu.org; Tue, 11 May 2021 11:39:44 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-264-x__PCvBmMxaHAs54Fk4WIw-1; Tue, 11 May 2021 11:39:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A204E8014D8 for ; Tue, 11 May 2021 15:39:39 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 71D645D6D1 for ; Tue, 11 May 2021 15:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620747582; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a61q3kMQ7ZSYJT7JxatZFK5aAgRH4JNCtClGRzfYnNI=; b=ihHvuxzvHkvOPsv68cwJjJ8qlREXdTl+4/l8nwgK4gAD5LbQY0NZOoCnyJt5K9v08fDXhZ HpnJ8CKuOdTkXd4RmzxgQQ1g2WipehjXzCc5g4TFjSSWwpjQdVBiOKRWykOQ/gJU3Jb221 mUyAtdqKYxvddTyRenM8V0nRJrxmt8A= X-MC-Unique: x__PCvBmMxaHAs54Fk4WIw-1 From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] object: add more commands to preconfig mode Date: Tue, 11 May 2021 11:39:38 -0400 Message-Id: <20210511153938.505687-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.699, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Creating and destroying QOM objects does not require a fully constructed machine. Allow running object-add and object-del before machine initialization has concluded. Signed-off-by: Paolo Bonzini Reviewed-by: Daniel P. Berrang=C3=A9 --- hmp-commands.hx | 2 ++ qapi/qom.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 435c591a1c..146a13c896 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1297,6 +1297,7 @@ ERST .help =3D "create QOM object", .cmd =3D hmp_object_add, .command_completion =3D object_add_completion, + .flags =3D "p", }, =20 SRST @@ -1311,6 +1312,7 @@ ERST .help =3D "destroy QOM object", .cmd =3D hmp_object_del, .command_completion =3D object_del_completion, + .flags =3D "p", }, =20 SRST diff --git a/qapi/qom.json b/qapi/qom.json index cd0e76d564..f1e243dbe5 100644 --- a/qapi/qom.json +++ b/qapi/qom.json @@ -857,7 +857,8 @@ # <- { "return": {} } # ## -{ 'command': 'object-add', 'data': 'ObjectOptions', 'boxed': true } +{ 'command': 'object-add', 'data': 'ObjectOptions', 'boxed': true, + 'allow-preconfig': true } =20 ## # @object-del: @@ -877,4 +878,5 @@ # <- { "return": {} } # ## -{ 'command': 'object-del', 'data': {'id': 'str'} } +{ 'command': 'object-del', 'data': {'id': 'str'}, + 'allow-preconfig': true } --=20 2.26.2