From patchwork Tue Jan 10 07:42:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Sun X-Patchwork-Id: 9506635 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 6722D606E1 for ; Tue, 10 Jan 2017 07:45:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B5B728156 for ; Tue, 10 Jan 2017 07:45:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 503DF28485; Tue, 10 Jan 2017 07:45:47 +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 E63FC28156 for ; Tue, 10 Jan 2017 07:45:46 +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 1cQr5v-00042B-FS; Tue, 10 Jan 2017 07:43:47 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQr5t-000413-PU for xen-devel@lists.xenproject.org; Tue, 10 Jan 2017 07:43:45 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id C8/E4-09053-1B094785; Tue, 10 Jan 2017 07:43:45 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRWlGSWpSXmKPExsVywNykWHfDhJI Igw9Nyhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bv5riCt6wViyaLNzDeZeli5OAQEqiUePlQ r4uRk0NCgFfiyLIZrBC2v8TLr9MZuxi5gEoaGCVeflvEDpJgE1CXePy1hwnEFhFQkri3ajITS BGzwH5GifnHjzODJIQFrCTun5/NCGKzCKhKvNm7igXE5hVwl3j64Tw7xAY5iZPHJoNt4xTwkG i5ug6sXgiopvntfcYJjLwLGBlWMWoUpxaVpRbpGhvrJRVlpmeU5CZm5ugaGpjp5aYWFyemp+Y kJhXrJefnbmIEhgIDEOxg3Lk+8BCjJAeTkihvim5JhBBfUn5KZUZicUZ8UWlOavEhRhkODiUJ 3q/9QDnBotT01Iq0zBxgUMKkJTh4lER4WUDSvMUFibnFmekQqVOMuhwH3q94yiTEkpeflyolz rsXpEgApCijNA9uBCxCLjHKSgnzMgIdJcRTkFqUm1mCKv+KUZyDUUmYlx1kCk9mXgncpldARz ABHRFpVwxyREkiQkqqgZGPzbUsxHfbvqL2NNMcBxOnGVU/lM8Wh/ZsE7QX92dY/OyAjuzyRUL Hr5RK2bcbOd67fvHAxhymecbmFWd0vy/T/bVxCbtLHMtV01LZJfxnSn+r5/DLujS+Vrhncpbx Q/EUne+LOzN/uOrNrU1Z0clXIHieTz09+tRBDeH3WisVCrk573DJK7EUZyQaajEXFScCAKWjf vCLAgAA X-Env-Sender: yi.y.sun@linux.intel.com X-Msg-Ref: server-11.tower-21.messagelabs.com!1484034222!51795053!1 X-Originating-IP: [192.55.52.115] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15047 invoked from network); 10 Jan 2017 07:43:44 -0000 Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by server-11.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 10 Jan 2017 07:43:44 -0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 09 Jan 2017 23:43:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,343,1477983600"; d="scan'208";a="211583035" Received: from vmmmba-s2600wft.bj.intel.com ([10.240.193.63]) by fmsmga004.fm.intel.com with ESMTP; 09 Jan 2017 23:43:26 -0800 From: Yi Sun To: xen-devel@lists.xenproject.org Date: Tue, 10 Jan 2017 15:42:24 +0800 Message-Id: <1484034155-4521-6-git-send-email-yi.y.sun@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484034155-4521-1-git-send-email-yi.y.sun@linux.intel.com> References: <1484034155-4521-1-git-send-email-yi.y.sun@linux.intel.com> Cc: wei.liu2@citrix.com, he.chen@linux.intel.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, Yi Sun , jbeulich@suse.com, chao.p.peng@linux.intel.com Subject: [Xen-devel] [RFC 05/16] x86: parse config parameters for MBA. 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch parses MBA parameters in configuration file. The parameter means whether MBA is supported. Signed-off-by: Yi Sun --- xen/arch/x86/psr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c index 58d3555..eca9c43 100644 --- a/xen/arch/x86/psr.c +++ b/xen/arch/x86/psr.c @@ -969,6 +969,7 @@ static void __init parse_psr_param(char *s) parse_psr_bool(s, val_str, "cmt", PSR_CMT); parse_psr_bool(s, val_str, "cat", PSR_CAT); parse_psr_bool(s, val_str, "cdp", PSR_CDP); + parse_psr_bool(s, val_str, "mba", PSR_MBA); if ( val_str && !strcmp(s, "rmid_max") ) opt_rmid_max = simple_strtoul(val_str, NULL, 0);