Re: KVM_CREATE_VCPU max vcpu ABI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

Jan

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux