From: Jan Kiszka <jan.kiszka@siemens.com>
To: Alexander Graf <agraf@suse.de>
Cc: "list@suse.de:PReP" <qemu-ppc@nongnu.org>,
Paul Mackerras <paulus@samba.org>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] kvm: Add a new machine property kvm_type
Date: Mon, 04 Nov 2013 14:32:27 +0100 [thread overview]
Message-ID: <5277A1EB.1080107@siemens.com> (raw)
In-Reply-To: <49782D9E-55C2-4D29-843C-46357C565127@suse.de>
On 2013-11-04 14:30, Alexander Graf wrote:
>
> On 04.11.2013, at 14:28, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>
>> On 2013-10-07 18:53, Aneesh Kumar K.V wrote:
>>> From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
>>>
>>> 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 <aneesh.kumar@linux.vnet.ibm.com>
>>
>> ...
>>
>>> 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.
>>
>> OTOH, I do not recall right now how these help strings can be obtained
>> at all. One could intuitively try "-machine <sometype>,?", but that's
>> not implemented. Anyone?
>
> They should definitely show up in the man page. But yes, -machine kvm_type=? would be helpful as well.
The man page is not generate from this C code, is it?
>
> As for -machine ? we are have a problem orthogonal to this patch. I agree that we need some way to programmatically list all machine options.
I'm not saying that this is an issue of this patch, just that I wonder
how that .help message can be made visisble at at besides with the help
of an editor.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2013-11-04 13:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-07 16:53 [Qemu-devel] [PATCH] kvm: Add a new machine property kvm_type Aneesh Kumar K.V
2013-11-04 12:28 ` Alexander Graf
2013-11-04 13:28 ` Jan Kiszka
2013-11-04 13:30 ` Alexander Graf
2013-11-04 13:32 ` Jan Kiszka [this message]
2013-11-04 13:55 ` Alexander Graf
2013-11-04 17:41 ` Andreas Färber
2013-11-04 17:57 ` Paolo Bonzini
2013-11-06 15:08 ` Aneesh Kumar K.V
2013-11-07 7:27 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5277A1EB.1080107@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=agraf@suse.de \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=paulus@samba.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).