From patchwork Tue Feb 4 09:34:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11364269 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F0C21398 for ; Tue, 4 Feb 2020 09:35:08 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4596A2166E for ; Tue, 4 Feb 2020 09:35:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4596A2166E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iyub4-0001BS-OD; Tue, 04 Feb 2020 09:34:18 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iyub3-0001BK-IA for xen-devel@lists.xenproject.org; Tue, 04 Feb 2020 09:34:17 +0000 X-Inumbo-ID: 8300cce6-4731-11ea-8396-bc764e2007e4 Received: from mail-wr1-f65.google.com (unknown [209.85.221.65]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 8300cce6-4731-11ea-8396-bc764e2007e4; Tue, 04 Feb 2020 09:34:17 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id z3so22085544wru.3 for ; Tue, 04 Feb 2020 01:34:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UpR89a9KTtDavfw05CL8LSZGeOkc5z/InhvuqX26S6g=; b=GdbmHW03Pf38Gq0zxskz90QWyQJfRuKUpg+YmE2kIAI1L3Q1dC6dlproTpCSl8bsk4 0TA5eFQFtXgLCBRUTx8u2eRWlJExIFA/EQ+P9VenTG91kTwzwhHn2ds0E7Y/roueDgHG zL2CHUDkSitJpgpgK9GHhUBFjAHuONs0SldsEkVGL49kVZcLyfHmMl6J/ogO2mgGfjmS L66MBsIRzm5N4KzS7EvCVintRIbaqTpKEKwiq3mVZ1tznXZE/qe2HdIJwq+7zqgcV0PJ tG91wSYKhBIajqXVWcMwKO0rmrsfI8CTOJwrzKr9YsBGFVQTGYB25+gEfxnDV+65/c8a tajQ== X-Gm-Message-State: APjAAAWlpKNLft1X7F3Jfr8D/Qq0n5X54UwotU9klCRs1SePWVubDJ4/ +xYEkEuLHxLtQrTDjnNf8DVkRY+rrFY= X-Google-Smtp-Source: APXvYqwrAxfayv98shWJuD9ja4Q+ZFnRCrzytJ6q6BZwwu4sVC7h9PA+pFH6KR+XVEF93HMbMCLD6g== X-Received: by 2002:a5d:4b8f:: with SMTP id b15mr21115789wrt.100.1580808855870; Tue, 04 Feb 2020 01:34:15 -0800 (PST) Received: from ufe34d9ed68d054.ant.amazon.com (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id p11sm16923031wrn.40.2020.02.04.01.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 01:34:15 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 4 Feb 2020 09:34:09 +0000 Message-Id: <20200204093411.15887-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH 0/2] xen/x86: hap: Small clean-up/hardening in hap_enable() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , George Dunlap , Andrew Cooper , Julien Grall , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Julien Grall Hi all, This series contain a couple of clean-up/hardening for the function hap_enable(). Cheers, Julien Grall (2): xen/x86: hap: Fix coding style in hap_enable() xen/x86: hap: Clean-up and harden hap_enable() xen/arch/x86/mm/hap/hap.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-)