From patchwork Fri Jun 30 17:01:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9820123 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 E72BF603F2 for ; Fri, 30 Jun 2017 17:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D35A8286B4 for ; Fri, 30 Jun 2017 17:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8347286BC; Fri, 30 Jun 2017 17:03:40 +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 69A5C286B4 for ; Fri, 30 Jun 2017 17:03:40 +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 1dQzIU-0002wP-Mb; Fri, 30 Jun 2017 17:01:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQzIT-0002t2-A9 for xen-devel@lists.xenproject.org; Fri, 30 Jun 2017 17:01:33 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id 43/28-03557-CE386595; Fri, 30 Jun 2017 17:01:32 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHRDpO6b5rB Ig+XvOC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oylvctZCg5zVTQensDUwLiJo4uRk0NCwF/i 7vm5LCA2m4CyxM/OXjYQW0RAT6LpwHNGEJtZIE/i7OpFrCC2sIChxN2fD4FsDg4WAVWJpke2I GFeAXOJBY872CFGykvsarsIVs4pYCFxacM0sPFCQDWLr+5hgrAVJDqmH2OC6BWUODnzCQvEKg mJgy9eME9g5J2FJDULSWoBI9MqRo3i1KKy1CJdQyO9pKLM9IyS3MTMHF1DAzO93NTi4sT01Jz EpGK95PzcTYzA0GEAgh2MlzcGHGKU5GBSEuVdeS00UogvKT+lMiOxOCO+qDQntfgQowwHh5IE b0ZTWKSQYFFqempFWmYOMIhh0hIcPEoivH61QGne4oLE3OLMdIjUKUZdjlcT/n9jEmLJy89Ll RLnXQoyQwCkKKM0D24ELKIuMcpKCfMyAh0lxFOQWpSbWYIq/4pRnINRSZjXG2QKT2ZeCdymV0 BHMAEdITwjBOSIkkSElFQDo/xiP38B9fX7SnKiHh+7+/3FvWfOV8WZbghxO1yX0Ph45OTdB6/ n+SsdYNKyW/H6mB7r6kP7shjnLPs6y9F+mc0eNhbNhj/CUqe2xgfNuPPyV/QDuTvL905zveU1 5elVzW195h7/yjKmX9nU1GM3663yea4s55uHrvvs+vDBdHG8dHHpWvH/9cxKLMUZiYZazEXFi QDGDzySowIAAA== X-Env-Sender: prvs=347159f46=wei.liu2@citrix.com X-Msg-Ref: server-5.tower-21.messagelabs.com!1498842088!63149081!4 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29687 invoked from network); 30 Jun 2017 17:01:31 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-5.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 30 Jun 2017 17:01:31 -0000 X-IronPort-AV: E=Sophos;i="5.40,287,1496102400"; d="scan'208";a="430033369" From: Wei Liu To: Xen-devel Date: Fri, 30 Jun 2017 18:01:16 +0100 Message-ID: <20170630170126.4148-9-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170630170126.4148-1-wei.liu2@citrix.com> References: <20170630170126.4148-1-wei.liu2@citrix.com> MIME-Version: 1.0 Cc: Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH 08/18] x86/i387.c: use plain bool 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 Signed-off-by: Wei Liu --- xen/arch/x86/i387.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c index 9a172db5dc..88452522ad 100644 --- a/xen/arch/x86/i387.c +++ b/xen/arch/x86/i387.c @@ -22,7 +22,7 @@ /* Restore x87 extended state */ static inline void fpu_xrstor(struct vcpu *v, uint64_t mask) { - bool_t ok; + bool ok; ASSERT(v->arch.xsave_area); /* @@ -135,7 +135,7 @@ static inline uint64_t vcpu_xsave_mask(const struct vcpu *v) /* Save x87 extended state */ static inline void fpu_xsave(struct vcpu *v) { - bool_t ok; + bool ok; uint64_t mask = vcpu_xsave_mask(v); ASSERT(mask); @@ -260,10 +260,10 @@ void vcpu_restore_fpu_lazy(struct vcpu *v) * On each context switch, save the necessary FPU info of VCPU being switch * out. It dispatches saving operation based on CPU's capability. */ -static bool_t _vcpu_save_fpu(struct vcpu *v) +static bool _vcpu_save_fpu(struct vcpu *v) { if ( !v->fpu_dirtied && !v->arch.nonlazy_xstate_used ) - return 0; + return false; ASSERT(!is_idle_vcpu(v)); @@ -277,7 +277,7 @@ static bool_t _vcpu_save_fpu(struct vcpu *v) v->fpu_dirtied = 0; - return 1; + return true; } void vcpu_save_fpu(struct vcpu *v)