Re: [PATCH 3/3] kvm-s390: implement KVM_CAP_MAX_VCPUS

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

 



On 04/24/2012 10:24 AM, Christian Borntraeger wrote:
> Let userspace know the number of supported cpus fro kvm.
>
> Signed-off-by: Christian Borntraeger <borntraeger@xxxxxxxxxx>
> ---
>  arch/s390/kvm/kvm-s390.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
> index fd98914..0054cb0 100644
> --- a/arch/s390/kvm/kvm-s390.c
> +++ b/arch/s390/kvm/kvm-s390.c
> @@ -136,6 +136,9 @@ int kvm_dev_ioctl_check_extension(long ext)
>  	case KVM_CAP_SYNC_REGS:
>  		r = 1;
>  		break;
> +	case KVM_CAP_NR_VCPUS:
> +		r = KVM_MAX_VCPUS;
> +		break;
>  	default:
>  		r = 0;
>  	}

This looks like a bugfix, but having survived so long without it, I
imagine it's not urgent for 3.4.

btw, a better place might be in kvm_devel_ioctl_check_extension_generic().

-- 
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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