Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252AbdFUXlM (ORCPT ); Wed, 21 Jun 2017 19:41:12 -0400 Received: from mga14.intel.com ([192.55.52.115]:11258 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751689AbdFUXlJ (ORCPT ); Wed, 21 Jun 2017 19:41:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,370,1493708400"; d="scan'208";a="102222181" From: Andi Kleen To: x86@kernel.org Cc: linux-kernel@vger.kernel.org Subject: Support generic disabling of all XSAVE features Date: Wed, 21 Jun 2017 16:41:01 -0700 Message-Id: <20170621234106.16548-1-andi@firstfloor.org> X-Mailer: git-send-email 2.9.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 582 Lines: 18 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 clearcpuid 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 v3: Repost. No changes to code.