From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUEci-0002ID-Gv for qemu-devel@nongnu.org; Mon, 01 Aug 2016 10:55:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUEcd-0000lO-6y for qemu-devel@nongnu.org; Mon, 01 Aug 2016 10:55:19 -0400 Message-ID: <1470063301.3971.15.camel@redhat.com> From: Andrea Bolognani Date: Mon, 01 Aug 2016 16:55:01 +0200 In-Reply-To: References: <1469723896-28049-1-git-send-email-wei@redhat.com> <20160729065453.qq44y2hxohizk3yw@hawk.localdomain> <1470053099.3971.11.camel@redhat.com> <20160801130808.2igpsx52opi7ogvk@kamzik.localdomain> <1470058019.3971.13.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH RFC 1/1] arm64: add an option to turn on/off vpmu support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Andrew Jones , Wei Huang , qemu-arm , QEMU Developers , Shannon Zhao On Mon, 2016-08-01 at 14:32 +0100, Peter Maydell wrote: > > Wouldn't that mean that you'd be unable to use > >=C2=A0 > >=C2=A0=C2=A0=C2=A0-cpu foo,pmu=3Doff > >=C2=A0 > > if CPU model 'foo' doesn't support a PMU? I'd expect that > > to work. >=C2=A0 > The current precedent (has_el3) doesn't work like that: if > foo isn't a CPU which can support EL3 then the property doesn't > exist, and it's an error to try to set it. Doesn't look like the pmu option works like that on x86, though, unless I'm missing something. I have a guest running with =C2=A0 -cpu pentium,pmu=3Don and I can't see hardware perf events from inside the guest, eg. dmesg reports =C2=A0 Performance Events: no PMU driver, software events only. and perf tells me =C2=A0 instructions =C2=A0 branches =C2=A0 ... I'm not sure whether that's because the PMU is being emulated but the kernel doesn't have a driver for it, or whether it's not being emulated at all. Any way to find out? --=C2=A0 Andrea Bolognani / Red Hat / Virtualization