From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM_GET_SUPPORTED_CPUID returning -E2BIG Date: Sun, 08 May 2011 11:56:13 +0300 Message-ID: <4DC65AAD.3050003@redhat.com> References: <1304831743.10534.28.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm , Ingo Molnar , Pekka Enberg , Cyrill Gorcunov , Asias He , Prasad Joshi To: Sasha Levin Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31865 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839Ab1EHI4b (ORCPT ); Sun, 8 May 2011 04:56:31 -0400 In-Reply-To: <1304831743.10534.28.camel@lappy> Sender: kvm-owner@vger.kernel.org List-ID: On 05/08/2011 08:15 AM, Sasha Levin wrote: > Hello, > > I'm seeing a case where KVM tools occasionally fails with the following > error message: "KVM_GET_SUPPORTED_CPUID failed: Argument list too long", > which means that we get -E2BIG back from KVM_GET_SUPPORTED_CPUID. > > Why would it happen if we pass KVM_MAX_CPUID_ENTRIES as the max number > of entries (in the nent field of struct kvm_cpuid2)? KVM_MAX_CPUID_ENTRIES is a private define, not exported to userspace (since it can change). > Also, Why would it happen randomly and not each time the code is run? Probably you have some bug. E2BIG is returned when nent is smaller than the number of entries returned (which only depends on the host cpu type). -- error compiling committee.c: too many arguments to function