From patchwork Tue Feb 16 08:39:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 8322651 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B12E79F372 for ; Tue, 16 Feb 2016 08:39:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAF94202A1 for ; Tue, 16 Feb 2016 08:39:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F2B70202F2 for ; Tue, 16 Feb 2016 08:39:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754384AbcBPIjl (ORCPT ); Tue, 16 Feb 2016 03:39:41 -0500 Received: from mail.skyhub.de ([78.46.96.112]:57083 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752604AbcBPIjk (ORCPT ); Tue, 16 Feb 2016 03:39:40 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bSwuHuQh16iu; Tue, 16 Feb 2016 09:39:38 +0100 (CET) Received: from pd.tnic (p200300454B5A87000A606EFFFE5584DC.dip0.t-ipconnect.de [IPv6:2003:45:4b5a:8700:a60:6eff:fe55:84dc]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4D484245A96; Tue, 16 Feb 2016 09:39:38 +0100 (CET) Received: by pd.tnic (Postfix, from userid 1000) id BD17E160652; Tue, 16 Feb 2016 09:39:37 +0100 (CET) From: Borislav Petkov To: LKML Cc: alex.williamson@redhat.com, gleb@kernel.org, joro@8bytes.org, kvm@vger.kernel.org, Paolo Bonzini , sherry.hurwitz@amd.com, Suravee Suthikulpanit , wei@redhat.com, x86-ml Subject: [PATCH] x86/msr: Document msr-index.h rule for addition Date: Tue, 16 Feb 2016 09:39:37 +0100 Message-Id: <1455611977-14179-1-git-send-email-bp@alien8.de> X-Mailer: git-send-email 2.3.5 In-Reply-To: <20160216075041.GA27440@gmail.com> References: <20160216075041.GA27440@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Borislav Petkov In order to keep this file's size sensible and not cause too much unnecessary churn, make the rule explicit - similar to pci_ids.h - that only MSRs which are used in multiple compilation units, should get added to it. Signed-off-by: Borislav Petkov Acked-by: Ingo Molnar Cc: alex.williamson@redhat.com Cc: gleb@kernel.org Cc: joro@8bytes.org Cc: kvm@vger.kernel.org CC: Paolo Bonzini Cc: sherry.hurwitz@amd.com Cc: Suravee Suthikulpanit Cc: wei@redhat.com Cc: x86-ml --- arch/x86/include/asm/msr-index.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index b05402ef3b84..984ab75bf621 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -1,7 +1,12 @@ #ifndef _ASM_X86_MSR_INDEX_H #define _ASM_X86_MSR_INDEX_H -/* CPU model specific register (MSR) numbers */ +/* + * CPU model specific register (MSR) numbers. + * + * Do not add new entries to this file unless the definitions are shared + * between multiple compilation units. + */ /* x86-64 specific MSRs */ #define MSR_EFER 0xc0000080 /* extended feature register */