From patchwork Wed Apr 8 09:33:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 459176 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 780F81401DA for ; Wed, 8 Apr 2015 19:34:56 +1000 (AEST) Received: from localhost ([::1]:51785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfmNq-0007fN-Ey for incoming@patchwork.ozlabs.org; Wed, 08 Apr 2015 05:34:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfmNT-0007KL-1G for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfmNP-0000Ji-S1 for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:34:30 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:50915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfmNP-0000Iy-8E for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:34:27 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 8 Apr 2015 19:34:24 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp06.au.ibm.com (202.81.31.212) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 8 Apr 2015 19:34:22 +1000 Received: from d23relay08.au.ibm.com (d23relay08.au.ibm.com [9.185.71.33]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 726F7357804C; Wed, 8 Apr 2015 19:34:21 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay08.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t389YDJZ9896168; Wed, 8 Apr 2015 19:34:21 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t389Xldp002771; Wed, 8 Apr 2015 19:33:47 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t389XlZS002013; Wed, 8 Apr 2015 19:33:47 +1000 Received: from bran.ozlabs.ibm.com (haven.au.ibm.com [9.192.253.15]) by ozlabs.au.ibm.com (Postfix) with ESMTP id 6C5C0A01EE; Wed, 8 Apr 2015 19:33:24 +1000 (AEST) Received: from ka1.ozlabs.ibm.com (ka1.ozlabs.ibm.com [10.61.145.11]) by bran.ozlabs.ibm.com (Postfix) with ESMTP id 13F4216A9ED; Wed, 8 Apr 2015 19:33:24 +1000 (AEST) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Wed, 8 Apr 2015 19:33:21 +1000 Message-Id: <1428485601-26482-1-git-send-email-aik@ozlabs.ru> X-Mailer: git-send-email 2.0.0 In-Reply-To: <76160645-F63F-4D9E-A228-ECDB92C56CC3@suse.de> References: <76160645-F63F-4D9E-A228-ECDB92C56CC3@suse.de> MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15040809-0021-0000-0000-0000010AE78A X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 202.81.31.148 Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf , David Gibson Subject: [Qemu-devel] [PATCH qemu v2] qemu-options: Add documentation about PPC64's "-cpu compat" option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Since 8dfa3a5e "target-ppc: Add "compat" CPU option" (which was a part of client-architecture-support patchset) there is a "compat" option of "-cpu". However it was not documented at all and this is what this patch is trying to do. Signed-off-by: Alexey Kardashevskiy --- After the patch: [aik@vpl2 ~]$ ./qemu-system-ppc64 --help | grep -a2 -- "-cpu cpu" -cpu cpu[,compat=power6|power7|power8] select CPU ('-cpu help' for list) compat= processor compatibility mode ka1:/scratch/alexey/p/qemu-build/x86_x86_64$ ./x86_64-softmmu/qemu-system-x86_64 -help | grep -a2 -- "-cpu cpu" -cpu cpu select CPU ('-cpu help' for list) -smp [cpus=]n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets] set the number of CPUs to 'n' [default=1] qemu-doc.html: -cpu model[,compat=mode] Select CPU model (-cpu help for list and additional feature selection) compat=power6|power7|power8 Enables POWER architecture compatibility mode. ‘power6’ enables PowerISA 2.05-compatibility mode, ‘power7’ - 2.06, ‘power8’ - 2.07. ‘mode’ is only supported by a PPC64-pseries machine. --- Changes: v2: * only show new option for PPC --- qemu-options.hx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index c513352..5214798 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -84,11 +84,22 @@ HXCOMM Deprecated by -machine DEF("M", HAS_ARG, QEMU_OPTION_M, "", QEMU_ARCH_ALL) DEF("cpu", HAS_ARG, QEMU_OPTION_cpu, - "-cpu cpu select CPU ('-cpu help' for list)\n", QEMU_ARCH_ALL) + "-cpu cpu select CPU ('-cpu help' for list)\n", QEMU_ARCH_ALL & ~QEMU_ARCH_PPC) +DEF("cpu", HAS_ARG, QEMU_OPTION_cpu_ppc, + "-cpu cpu[,compat=power6|power7|power8]\n" + " select CPU ('-cpu help' for list)\n" + " compat= processor compatibility mode\n", QEMU_ARCH_PPC) STEXI -@item -cpu @var{model} +@item -cpu @var{model}[,compat=@var{mode}] @findex -cpu Select CPU model (@code{-cpu help} for list and additional feature selection) +@table @option +@item compat=power6|power7|power8 +Enables POWER architecture compatibility mode. +@samp{power6} enables PowerISA 2.05-compatibility mode, +@samp{power7} - 2.06, @samp{power8} - 2.07. @samp{mode} is only supported by +a PPC64-pseries machine. +@end table ETEXI DEF("smp", HAS_ARG, QEMU_OPTION_smp,