From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve4ix-0005wm-NT for qemu-devel@nongnu.org; Wed, 06 Nov 2013 10:08:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve4ip-0000i8-Re for qemu-devel@nongnu.org; Wed, 06 Nov 2013 10:08:51 -0500 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:33220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve4ip-0000h6-60 for qemu-devel@nongnu.org; Wed, 06 Nov 2013 10:08:43 -0500 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 Nov 2013 20:38:38 +0530 From: "Aneesh Kumar K.V" In-Reply-To: <5277A0EA.8050608@siemens.com> References: <1381164805-452-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <5277A0EA.8050608@siemens.com> Date: Wed, 06 Nov 2013 20:38:18 +0530 Message-ID: <878ux1tvod.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] kvm: Add a new machine property kvm_type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka , agraf@suse.de, paulus@samba.org Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org Jan Kiszka writes: > On 2013-10-07 18:53, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" >> >> Targets like ppc64 support different typed of KVM, one which use >> hypervisor mode and the other which doesn't. Add a new machine >> property kvm_type that helps in selecting the respective ones >> We also add a new QEMUMachine callback get_vm_type that helps >> in mapping the string representation of kvm type specified. >> >> Signed-off-by: Aneesh Kumar K.V > > ... > >> diff --git a/vl.c b/vl.c >> index 4e709d5..7ecc581 100644 >> --- a/vl.c >> +++ b/vl.c >> @@ -427,7 +427,12 @@ static QemuOptsList qemu_machine_opts = { >> .name = "usb", >> .type = QEMU_OPT_BOOL, >> .help = "Set on/off to enable/disable usb", >> + },{ >> + .name = "kvm_type", >> + .type = QEMU_OPT_STRING, >> + .help = "Set to kvm type to be used in create vm ioctl", > > This does not sound like an appropriate documentation for an enduser. > Any other suggestion for that ? It is actually a string which will be parsed by the machine opt callback, and the return value is used as the argument to create vm ioctl. -aneesh