From patchwork Tue Jan 31 11:08:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9546911 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 051746016C for ; Tue, 31 Jan 2017 11:10:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2DA92811E for ; Tue, 31 Jan 2017 11:10:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D72E828329; Tue, 31 Jan 2017 11:10:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C8B82811E for ; Tue, 31 Jan 2017 11:10:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYWIN-0000Th-13; Tue, 31 Jan 2017 11:08:19 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYWIL-0000Sl-98 for xen-devel@lists.xenproject.org; Tue, 31 Jan 2017 11:08:17 +0000 Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id E1/8D-09053-02070985; Tue, 31 Jan 2017 11:08:16 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHSDva58wYQ Ig6VnFSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owT01vYCq6wVZydspGxgfERaxcjJ4eEgL/E xaeTGUFsNgFliZ+dvWwgtoiAnkTTgedgcWaBPInHq1rB4sICnhLbFj5mArFZBFQlDq29CxbnF bCQuDHvNTvETHmJXW0XgeZzcHAKWErsfJYLEhYCKjm3qIsNwlaQ6Jh+jAmiVVDi5MwnLBCrJC QOvnjBPIGRdxaS1CwkqQWMTKsYNYpTi8pSi3QNjfWSijLTM0pyEzNzdA0NzPRyU4uLE9NTcxK TivWS83M3MQJDhwEIdjB+WRZwiFGSg0lJlPez8IQIIb6k/JTKjMTijPii0pzU4kOMMhwcShK8 0/KBcoJFqempFWmZOcAghklLcPAoifD6g6R5iwsSc4sz0yFSpxh1OU59uvCSSYglLz8vVUqcV wmkSACkKKM0D24ELKIuMcpKCfMyAh0lxFOQWpSbWYIq/4pRnINRSZh3EsgUnsy8ErhNr4COYA I6wv1VH8gRJYkIKakGxvVVwpeF/xi7r3N58LL4lpjG1oyTdTuOsl7gm2q4k0dWb8ufbfc3rec vN7deVvrhQ2/M4aDVU3v2Nro6v2RLYpnJyDKrW7tud/SK1x/XZnzM/1azQUbQXeRd5wSVRMWq Tzm697TOX7ovvztvotPJJxmngrI8wi4x6vd1sPA/fKNs8Zl3+2O1MiWW4oxEQy3mouJEAEL5O WWjAgAA X-Env-Sender: prvs=1976b8d93=wei.liu2@citrix.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1485860890!75109961!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 38782 invoked from network); 31 Jan 2017 11:08:14 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 31 Jan 2017 11:08:14 -0000 X-IronPort-AV: E=Sophos;i="5.33,314,1477958400"; d="scan'208";a="411962739" From: Wei Liu To: Xen-devel Date: Tue, 31 Jan 2017 11:08:00 +0000 Message-ID: <20170131110809.30001-4-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170131110809.30001-1-wei.liu2@citrix.com> References: <20170131110809.30001-1-wei.liu2@citrix.com> MIME-Version: 1.0 Cc: Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH v2 03/12] x86: extract vendor numeric id to x86-vendors.h X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP They will be shared between xen and userspace programs. No functional change. Signed-off-by: Wei Liu Acked-by: Jan Beulich --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/include/asm-x86/processor.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/xen/include/asm-x86/processor.h b/xen/include/asm-x86/processor.h index ff0e51f3d5..be2ff71c72 100644 --- a/xen/include/asm-x86/processor.h +++ b/xen/include/asm-x86/processor.h @@ -17,15 +17,7 @@ #endif #include "x86-defns.h" - -/* - * CPU vendor IDs - */ -#define X86_VENDOR_INTEL 0 -#define X86_VENDOR_AMD 1 -#define X86_VENDOR_CENTAUR 2 -#define X86_VENDOR_NUM 3 -#define X86_VENDOR_UNKNOWN 0xff +#include "x86-vendors.h" /* Set for entry via SYSCALL. Informs return code to use SYSRETQ not IRETQ. */