From nobody Fri May 17 06:07:23 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 1508982201993720.6121627668321; Wed, 25 Oct 2017 18:43:21 -0700 (PDT) Received: from localhost ([::1]:50564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7XCL-0006e9-3T for importer@patchew.org; Wed, 25 Oct 2017 21:43:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7XBa-0006N1-2h for qemu-devel@nongnu.org; Wed, 25 Oct 2017 21:42:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7XBV-0003Vz-Rz for qemu-devel@nongnu.org; Wed, 25 Oct 2017 21:42:18 -0400 Received: from ozlabs.ru ([107.173.13.209]:58662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7XBV-0003VA-Ls for qemu-devel@nongnu.org; Wed, 25 Oct 2017 21:42:13 -0400 Received: from vpl1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 0A4F43A60066; Wed, 25 Oct 2017 21:40:34 -0400 (EDT) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Thu, 26 Oct 2017 12:41:39 +1100 Message-Id: <20171026014139.46221-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 v2] 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. Also, since only lower case letters are specified in qapi/common.json, this changes the letter cases too. 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..bd3db14e12 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