From patchwork Tue Feb 4 09:34:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11364273 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 102301398 for ; Tue, 4 Feb 2020 09:35:46 +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 EA7D721744 for ; Tue, 4 Feb 2020 09:35:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA7D721744 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 1iyub9-0001DR-GN; Tue, 04 Feb 2020 09:34:23 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iyub8-0001Ch-EE for xen-devel@lists.xenproject.org; Tue, 04 Feb 2020 09:34:22 +0000 X-Inumbo-ID: 839ca774-4731-11ea-a933-bc764e2007e4 Received: from mail-wm1-f67.google.com (unknown [209.85.128.67]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 839ca774-4731-11ea-a933-bc764e2007e4; Tue, 04 Feb 2020 09:34:18 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id s144so1777387wme.1 for ; Tue, 04 Feb 2020 01:34:17 -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:in-reply-to :references; bh=VS370gLrXj/T0EnX2y8E7F4GunVSOLL2YMmsXGW0glg=; b=KsB9h9AOcIieFMNRM/fzoq5WJfLB/Nrmau18aW2Wu/zzETg9Xfw/fHWs9LfdHxKEU8 ypzsZh0M6NyaJxVQ4T85Tt4gynexahNMu9IS+esaHmD0vCTv3CYHJBfvbb1Z7pgSmGN0 KFXvvJEkBoHZk89ymIXTT9/90WUfD9mb9CrPTmA6EHwK+oFSHX6Kpt9i79nDIBOeIyyI 4z57WbWiJXb0D0Arx7rOta86Fb1/eCN1l2+h+/M/C928URub/BpIy31DRWpeXBRcjxQ1 ByD14xWog15y2daYdvzExXftWi/ofPUBGnldiMkVitF6+Pk9zsp+09ixWW7D8oB2lp1a ySMA== X-Gm-Message-State: APjAAAUlx5vfW5TfrNv/oQqY7HXTQyYKr4hQzvPcmMlmCyfSj0xzrs0F KQsWzZwjFti8bSOhyisPLMrUiIJHGPc= X-Google-Smtp-Source: APXvYqxTxwTE/McsCJd2u4Or8WLrb/KGlOLt8fhu5gYLoBxb3z4yGoCleDI2pSccTIK5CcwSN9AnVA== X-Received: by 2002:a05:600c:146:: with SMTP id w6mr5074858wmm.180.1580808856951; Tue, 04 Feb 2020 01:34:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 01:34:16 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 4 Feb 2020 09:34:10 +0000 Message-Id: <20200204093411.15887-2-julien@xen.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200204093411.15887-1-julien@xen.org> References: <20200204093411.15887-1-julien@xen.org> Subject: [Xen-devel] [PATCH 1/2] xen/x86: hap: Fix coding style 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 Signed-off-by: Julien Grall Reviewed-by: Roger Pau Monné --- xen/arch/x86/mm/hap/hap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index 3d93f3451c..31362a31b6 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -473,7 +473,8 @@ int hap_enable(struct domain *d, u32 mode) goto out; } - for (i = 0; i < MAX_NESTEDP2M; i++) { + for ( i = 0; i < MAX_NESTEDP2M; i++ ) + { rv = p2m_alloc_table(d->arch.nested_p2m[i]); if ( rv != 0 ) goto out;