From nobody Thu May 2 00:11:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 150898145183811.617608853877528; Wed, 25 Oct 2017 18:30:51 -0700 (PDT) Received: from localhost ([::1]:50533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7X0M-0002nB-OX for importer@patchew.org; Wed, 25 Oct 2017 21:30:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7WzW-0002Q6-3E for qemu-devel@nongnu.org; Wed, 25 Oct 2017 21:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7WzS-0003bn-VZ for qemu-devel@nongnu.org; Wed, 25 Oct 2017 21:29:50 -0400 Received: from ozlabs.ru ([107.173.13.209]:56160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7WzS-0003aG-PJ for qemu-devel@nongnu.org; Wed, 25 Oct 2017 21:29:46 -0400 Received: from vpl1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 009B43A60066; Wed, 25 Oct 2017 21:28:06 -0400 (EDT) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Thu, 26 Oct 2017 12:29:10 +1100 Message-Id: <20171026012910.45515-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 107.173.13.209 Subject: [Qemu-devel] [PATCH qemu] machine: Polish -machine xxx,help X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The "-machine xxx,help" prints kernel-irqchip possible values as "OnOffSplit", this adds separators to the printed line. Signed-off-by: Alexey Kardashevskiy --- aik@fstn1-p1:~$ ./qemu-system-ppc64 -machine pseries,help 2>&1 | grep kerne= l-irqchip Was: pseries-2.11.kernel-irqchip=3DOnOffSplit (Configure KVM in-kernel irqchip) Now: pseries-2.11.kernel-irqchip=3DOn|Off|Split (Configure KVM in-kernel irqchip) --- hw/core/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 36c2fb069c..ea89cf706e 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -506,7 +506,7 @@ static void machine_class_init(ObjectClass *oc, void *d= ata) object_class_property_set_description(oc, "accel", "Accelerator list", &error_abort); =20 - object_class_property_add(oc, "kernel-irqchip", "OnOffSplit", + object_class_property_add(oc, "kernel-irqchip", "On|Off|Split", NULL, machine_set_kernel_irqchip, NULL, NULL, &error_abort); object_class_property_set_description(oc, "kernel-irqchip", --=20 2.11.0