From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755049AbcIOTnu (ORCPT ); Thu, 15 Sep 2016 15:43:50 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:43688 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbcIOTnm (ORCPT ); Thu, 15 Sep 2016 15:43:42 -0400 Subject: Re: [Xen-devel] [PATCH v2 2/3] x86 Test and expose CPUID faulting capabilities in /proc/cpuinfo To: Kyle Huey , Jan Beulich References: <1473886902-17902-1-git-send-email-khuey@kylehuey.com> <1473886902-17902-3-git-send-email-khuey@kylehuey.com> <57DA724E.6090606@citrix.com> <57DA9342020000780010F267@prv-mh.provo.novell.com> Cc: "Rafael J. Wysocki" , Peter Zijlstra , DaveHansen , Huang Rui , Kristen Carlson Accardi , "H. PeterAnvin" , Srinivas Pandruvada , Thomas Gleixner , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , "Robert O'Callahan" , Alexander Shishkin , Ingo Molnar , "moderated list:XEN HYPERVISOR INTERFACE" , Borislav Petkov , Len Brown , Andy Lutomirski , Juergen Gross , "open list:X86 ARCHITECTURE 32-BIT AND 64-BIT" , Aravind Gopalakrishnan , David Vrabel , Vladimir Zapolskiy From: Boris Ostrovsky Message-ID: Date: Thu, 15 Sep 2016 15:41:13 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/15/2016 03:11 PM, Kyle Huey wrote: > On Thu, Sep 15, 2016 at 3:25 AM, Jan Beulich wrote: >>>>> On 15.09.16 at 12:05, wrote: >>> On 14/09/16 22:01, Kyle Huey wrote: >>>> Xen advertises the underlying support for CPUID faulting but not does pass >>>> through writes to the relevant MSR, nor does it virtualize it, so it does >>>> not actually work. For now mask off the relevant bit on MSR_PLATFORM_INFO. >>> Could you clarify in the commit message that it is PV guests that are >>> affected. >> What makes you think HVM ones aren't? > Testing on EC2, HVM guests are affected as well. Not sure what to do > about that. You could clear capability bit in xen_set_cpu_features() but of course this assumes you will never again read MSR_PLATFORM_INFO. -boris