From patchwork Tue Feb 4 13:06:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11364565 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 0B2B2138D for ; Tue, 4 Feb 2020 13:07:41 +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 DC36C2084E for ; Tue, 4 Feb 2020 13:07:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC36C2084E 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 1iyxuV-0003sv-Mq; Tue, 04 Feb 2020 13:06:35 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iyxuU-0003sq-CN for xen-devel@lists.xenproject.org; Tue, 04 Feb 2020 13:06:34 +0000 X-Inumbo-ID: 2a641d04-474f-11ea-8f39-12813bfff9fa Received: from mail-wr1-f65.google.com (unknown [209.85.221.65]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 2a641d04-474f-11ea-8f39-12813bfff9fa; Tue, 04 Feb 2020 13:06:33 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id m16so22926655wrx.11 for ; Tue, 04 Feb 2020 05:06:33 -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:mime-version :content-transfer-encoding; bh=cvCJbZYtRAt9uo1xNe7lnenf4FFFjFs6R43/PynLhps=; b=aGHHEjekQldQXzarlzgVIuO1XmbXqMVAbCe7zQxudaJd8LGKvR0OFNr+AvWNQcwpKS dWajeRfW9c3gSNoADeWOpfEnLxcP7N/SlORZIgv7p66yXOeQz/CIjKSIufU0WdV0tCgP AyAFUmY5zvtwCIGnmsHQ80kbr7yM4CZ9643y3rGgxsE0H8vwM6BL21O/gGYvSdRJa/Sx 8+q5QsESB5ZYmBsqe+0unytoowAa2WRKD9f0gnZBp4dzpPqYNHy74Lz8tDNsX+kTiYVc o1a1q2wfsWh/8VNtRkYc9YIu7FpYoUnwYMcinRIaVa0lnIZdSAjWw3uS7GOx3F9XKNXA 3hAA== X-Gm-Message-State: APjAAAWIj+f1BzgiIXNePL6qnX2GGKgIjfJLJTCLkpwp/Q/Kj+WHIgNc Vn+vJZVmE3u8OncNidA3pT7mKbEotJw= X-Google-Smtp-Source: APXvYqw2jYAju4B+7V+4EQJNWp6gzhJtFFm0CSGJwwmrEuUOmNxjDQaWT6rl7T4loIoQi9vz4AveGg== X-Received: by 2002:a5d:40d1:: with SMTP id b17mr20415505wrq.93.1580821592233; Tue, 04 Feb 2020 05:06:32 -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 y8sm3624776wma.10.2020.02.04.05.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 05:06:31 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 4 Feb 2020 13:06:12 +0000 Message-Id: <20200204130614.15166-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2 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: julien@xen.org, Wei Liu , George Dunlap , Andrew Cooper , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This series contains 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(-)