From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Evensky" Subject: Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed. Date: Thu, 17 Nov 2011 08:29:59 -0800 Message-ID: <20111117162959.GC25489@dancer.ca.sandia.gov> References: <1321510055.4221.5.camel@lappy> <1321512998.4221.7.camel@lappy> <20111117153833.GA5915@dancer.ca.sandia.gov> <1321544629.8010.9.camel@lappy> <20111117155000.GB5915@dancer.ca.sandia.gov> <1321545120.8010.10.camel@lappy> <4EC52E0E.1000502@redhat.com> <20111117161200.GB25489@dancer.ca.sandia.gov> <4EC53451.5070209@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "Sasha Levin" , "Pekka Enberg" , kvm@vger.kernel.org To: "Avi Kivity" Return-path: Received: from sentry-two.sandia.gov ([132.175.109.14]:43306 "EHLO sentry-two.sandia.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757919Ab1KQQaS (ORCPT ); Thu, 17 Nov 2011 11:30:18 -0500 In-Reply-To: <4EC53451.5070209@redhat.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Avi, evensky@waltz:~/megatux/vmatic$ perl -e 'for $cnt (1..10000){ $o=`taskset 0x01 ./4sasha`; chomp($o); $histogram{$o}++}; for $o (sort keys %histogram){print "$o: $histogram{$o}\n"}' KVM_GET_SUPPORTED_CPUID returned -1 with errno 7: 3 Returned entries: 31: 9995 Returned entries: 32: 1 Returned entries: 64: 1 evensky@waltz:~/megatux/vmatic$ perl -e 'for $cnt (1..10000){ $o=`taskset 0x02 ./4sasha`; chomp($o); $histogram{$o}++}; for $o (sort keys %histogram){print "$o: $histogram{$o}\n"}' KVM_GET_SUPPORTED_CPUID returned -1 with errno 7: 1 Returned entries: 31: 9999 evensky@waltz:~/megatux/vmatic$ perl -e 'for $cnt (1..10000){ $o=`taskset 0x03 ./4sasha`; chomp($o); $histogram{$o}++}; for $o (sort keys %histogram){print "$o: $histogram{$o}\n"}' KVM_GET_SUPPORTED_CPUID returned -1 with errno 7: 3 Returned entries: 31: 9995 Returned entries: 57: 1 Returned entries: 58: 1 evensky@waltz:~/megatux/vmatic$ perl -e 'for $cnt (1..10000){ $o=`taskset 0x04 ./4sasha`; chomp($o); $histogram{$o}++}; for $o (sort keys %histogram){print "$o: $histogram{$o}\n"}' Returned entries: 31: 10000 evensky@waltz:~/megatux/vmatic$ perl -e 'for $cnt (1..10000){ $o=`taskset 0x08 ./4sasha`; chomp($o); $histogram{$o}++}; for $o (sort keys %histogram){print "$o: $histogram{$o}\n"}' KVM_GET_SUPPORTED_CPUID returned -1 with errno 7: 1 Returned entries: 31: 9998 Returned entries: 54: 1 \dae On Thu, Nov 17, 2011 at 06:20:33PM +0200, Avi Kivity wrote: > On 11/17/2011 06:12 PM, David Evensky wrote: > > > > evensky@waltz:~/megatux/vmatic$ perl -e 'for $cnt (1..100000){ $o=`./4sasha`; chomp($o); $histogram{$o}++}; for $o (keys %histogram){print "$o: $histogram{$o}\n"}' > > Returned entries: 31: 99987 > > Returned entries: 56: 1 > > KVM_GET_SUPPORTED_CPUID returned -1 with errno 7: 8 > > Returned entries: 37: 4 > > > > > > So it seems to be cpu migration related. But there's a get_cpu() in > do_cpuid_ent(). > > What happens if you change `./4sasha` to `taskset 1 ./4sasha`? or 2 4 8 > 10 20 etc? > > -- > 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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html