From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] pmu: fixes for Sandy Bridge hosts Date: Thu, 30 May 2013 19:45:02 +0200 Message-ID: <51A7901E.7040509@redhat.com> References: <1369935788-19069-1-git-send-email-pbonzini@redhat.com> <1369935788-19069-2-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail-vc0-f173.google.com ([209.85.220.173]:64222 "EHLO mail-vc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965724Ab3E3RpP (ORCPT ); Thu, 30 May 2013 13:45:15 -0400 Received: by mail-vc0-f173.google.com with SMTP id ht10so387503vcb.18 for ; Thu, 30 May 2013 10:45:15 -0700 (PDT) Received: from yakj.usersys.redhat.com (net-37-116-217-184.cust.dsl.vodafone.it. [37.116.217.184]) by mx.google.com with ESMTPSA id l5sm19735065vev.1.2013.05.30.10.45.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 May 2013 10:45:14 -0700 (PDT) In-Reply-To: <1369935788-19069-2-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 30/05/2013 19:43, Paolo Bonzini ha scritto: > @@ -395,6 +396,14 @@ int main(int ac, char **av) > printf("Fixed counters: %d\n", edx.split.num_counters_fixed); > printf("Fixed counter width: %d\n", edx.split.bit_width_fixed); > > + num_counters = eax.split.num_counters; > + if (num_counters > ARRAY_SIZE(gp_events)) > + num_counters = ARRAY_SIZE(gp_events); > + while (id.b) { > + num_counters--; > + id.b &= id.b - 1; > + } > + > apic_write(APIC_LVTPC, PC_VECTOR); > > check_gp_counters(); > Please ignore this patch. The parent one with "[PATCH kvm-unit-tests]" subject is good though. Paolo