From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061AbdFMARW (ORCPT ); Mon, 12 Jun 2017 20:17:22 -0400 Received: from mga07.intel.com ([134.134.136.100]:62621 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbdFMARV (ORCPT ); Mon, 12 Jun 2017 20:17:21 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,335,1493708400"; d="scan'208";a="1140584861" From: Andi Kleen To: x86@kernel.org Cc: linux-kernel@vger.kernel.org Subject: Re: Support generic disabling of all XSAVE features References: <20170607232939.27441-1-andi@firstfloor.org> Date: Mon, 12 Jun 2017 17:17:20 -0700 In-Reply-To: <20170607232939.27441-1-andi@firstfloor.org> (Andi Kleen's message of "Wed, 7 Jun 2017 16:29:34 -0700") Message-ID: <87vao07ncf.fsf@firstfloor.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andi Kleen writes: Any comments on this patchkit? If there are no objections please merge. -Andi > For performance testing and debugging it can be useful to disable XSAVE > features individually. This patchkit hooks up XSAVE with the > generic clearcpuid=... option, so that disabling a CPUID feature > automatically disables the respective XSAVE feature. > > It also cleans up CPUID dependency management. Currently it's > possible to generate configurations with cleacpuid that crash. > > It replaces an earlier patchkit that did this with special > case options. > > v1: > Initial post > v2: > Work around broken lguest by exporting set_cpu_cap > Repost with cover letter