From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9j3-0002I1-Ih for qemu-devel@nongnu.org; Fri, 29 Jul 2016 11:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT9j1-0000ci-Ow for qemu-devel@nongnu.org; Fri, 29 Jul 2016 11:29:24 -0400 Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:34583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9j1-0000cO-Kv for qemu-devel@nongnu.org; Fri, 29 Jul 2016 11:29:23 -0400 Received: by mail-ua0-x234.google.com with SMTP id 35so64264812uap.1 for ; Fri, 29 Jul 2016 08:29:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160729065453.qq44y2hxohizk3yw@hawk.localdomain> References: <1469723896-28049-1-git-send-email-wei@redhat.com> <20160729065453.qq44y2hxohizk3yw@hawk.localdomain> From: Peter Maydell Date: Fri, 29 Jul 2016 16:29:03 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 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: Andrew Jones Cc: Wei Huang , qemu-arm , QEMU Developers , Shannon Zhao , Andrea Bolognani On 29 July 2016 at 07:54, Andrew Jones wrote: > OK, so this property will be exposed to all ARM cpu types, and if a user > turns it on, then it will stay on for all types, except when using KVM > with an aarch64 cpu type, and KVM doesn't support it. This could mislead > users to believe they'll get a pmu, by simply adding pmu=on, even when > they can't. I think we'd ideally keep has_pmu, and the current code that > sets it, and then add code like > > if (enable_pmu && !has_pmu) { > error_report("Warning: ...") > } > > somewhere. I think we should probably follow the existing model used by has_el3, where the property only exists if it's valid to set it. thanks -- PMM