From: Pekka Enberg <penberg@kernel.org>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Avi Kivity <avi@redhat.com>, KVM General <kvm@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>, Asias He <asias.hejun@gmail.com>,
Cyrill Gorcunov <gorcunov@gmail.com>,
Sasha Levin <levinsasha928@gmail.com>
Subject: Re: KVM_CREATE_VCPU max vcpu ABI
Date: Sat, 07 May 2011 17:48:19 +0300 [thread overview]
Message-ID: <1304779699.10621.12.camel@jaguar> (raw)
In-Reply-To: <4DC52919.2040100@web.de>
On Sat, 2011-05-07 at 13:12 +0200, Jan Kiszka wrote:
> On 2011-05-07 12:16, Pekka Enberg wrote:
> > Hi!
> >
> > Documentation/kvm/api.txt says the following:
> >
> > 4.6 KVM_CREATE_VCPU
> >
> > Capability: basic
> > Architectures: all
> > Type: vm ioctl
> > Parameters: vcpu id (apic id on x86)
> > Returns: vcpu fd on success, -1 on error
> >
> > This API adds a vcpu to a virtual machine. The vcpu id is a small integer
> > in the range [0, max_vcpus).
> >
> > However, max_vcpus is not specified and I am unable to find ioctl()
> > which I could use to look it up. Is it specified somewhere? We can, of
> > course, attempt to create as many VCPUs as possible until
> > KVM_CREATE_VCPU returns EINVAL...
>
> Querying for KVM_CAP_NR_VCPUS returns this number (documented in the kvm
> header). Want to file a patch for adding a hint to the section above?
Done. Thanks Jan!
prev parent reply other threads:[~2011-05-07 14:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-07 10:16 KVM_CREATE_VCPU max vcpu ABI Pekka Enberg
2011-05-07 11:12 ` Jan Kiszka
2011-05-07 14:48 ` Pekka Enberg [this message]
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=1304779699.10621.12.camel@jaguar \
--to=penberg@kernel.org \
--cc=asias.hejun@gmail.com \
--cc=avi@redhat.com \
--cc=gorcunov@gmail.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=mingo@elte.hu \
/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