kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KVM_GET_SUPPORTED_CPUID returning -E2BIG
@ 2011-05-08  5:15 Sasha Levin
  2011-05-08  8:56 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2011-05-08  5:15 UTC (permalink / raw)
  To: kvm; +Cc: Ingo Molnar, Pekka Enberg, Cyrill Gorcunov, Asias He,
	Prasad Joshi

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)?

Also, Why would it happen randomly and not each time the code is run?

-- 

Sasha.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: KVM_GET_SUPPORTED_CPUID returning -E2BIG
  2011-05-08  5:15 KVM_GET_SUPPORTED_CPUID returning -E2BIG Sasha Levin
@ 2011-05-08  8:56 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-05-08  8:56 UTC (permalink / raw)
  To: Sasha Levin
  Cc: kvm, Ingo Molnar, Pekka Enberg, Cyrill Gorcunov, Asias He,
	Prasad Joshi

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-08  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-08  5:15 KVM_GET_SUPPORTED_CPUID returning -E2BIG Sasha Levin
2011-05-08  8:56 ` Avi Kivity

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).