From patchwork Sun Mar 22 16:14:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11451883 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 A7E471744 for ; Sun, 22 Mar 2020 16:16:16 +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 8E61020724 for ; Sun, 22 Mar 2020 16:16:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E61020724 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass 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 1jG3FF-0004Z9-SW; Sun, 22 Mar 2020 16:14:37 +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 1jG3FF-0004Yb-7d for xen-devel@lists.xenproject.org; Sun, 22 Mar 2020 16:14:37 +0000 X-Inumbo-ID: 363024ba-6c58-11ea-8134-12813bfff9fa Received: from mail-ed1-f68.google.com (unknown [209.85.208.68]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 363024ba-6c58-11ea-8134-12813bfff9fa; Sun, 22 Mar 2020 16:14:31 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id a43so13499869edf.6 for ; Sun, 22 Mar 2020 09:14:31 -0700 (PDT) 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=PPouXUKimyKPAUwaiX+i857NLzRatKER6he+nfREvTY=; b=BIMYd1zNzmrkGlcNacbjqG2decGr6MrAuDg7rLq8wR4AQTtRF3RVrDVCwv1dMwYrbW ESlms6d06c8UFG2cmxHPP3cupkXqPvdNmoXu0Id/1AceLaTP3r/aTcmIQRQGpXmOma0H KNbSRiomq3WpjXDmhS60aA/ado4ADJ13VQ23ttp4PgXONiv+weOqy+HeiTiXmY/8B1nG qieNWLVAXsUPhQ0auS76SDr2tM4b0kmIHyn22En2NbsHvg6dxpoMlH8/O5bCS6yxLe29 dSHyQRw+8NfJJoURCeR7D1Hv8QP9aIerdd+p0bHhG2AH3I/0ELfPNl9hnsJdJLRkQ4tn o4YA== X-Gm-Message-State: ANhLgQ2ZY8cu7UCOJhXHUwQQ8B5gxSIw40pWGxyHNLdZcEhlEZTvUR4G r9PKe29nC8THFM9Zsf/+Cb45Xqa5lzd+8g== X-Google-Smtp-Source: ADFU+vsib/mmBtFQpTucPP1SO25CZHQIu/B4TsbM7c0M8pSakiBiLTIIV9TqknxtFODWVl+JX6cK/g== X-Received: by 2002:a17:906:5c43:: with SMTP id c3mr15001421ejr.3.1584893670472; Sun, 22 Mar 2020 09:14:30 -0700 (PDT) Received: from ufe34d9ed68d054.ant.amazon.com (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id v13sm106693edj.62.2020.03.22.09.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 09:14:29 -0700 (PDT) From: julien@xen.org To: xen-devel@lists.xenproject.org Date: Sun, 22 Mar 2020 16:14:07 +0000 Message-Id: <20200322161418.31606-7-julien@xen.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200322161418.31606-1-julien@xen.org> References: <20200322161418.31606-1-julien@xen.org> Subject: [Xen-devel] [PATCH 06/17] xen/x86: mm: Fix the comment on top put_page_from_l2e() to use 'mfn' 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 , 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 We are using the 'mfn' to refer to machine frame. As this function deal with 'mfn', replace 'pfn' with 'mfn'. Signed-off-by: Julien Grall Acked-by: Jan Beulich --- I am not entirely sure to understand the comment on top of the function, so this change may be wrong. --- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index aa0bf3d0ee..65bc03984d 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -1321,7 +1321,7 @@ static int put_data_pages(struct page_info *page, bool writeable, int pt_shift) } /* - * NB. Virtual address 'l2e' maps to a machine address within frame 'pfn'. + * NB. Virtual address 'l2e' maps to a machine address within frame 'mfn'. * Note also that this automatically deals correctly with linear p.t.'s. */ static int put_page_from_l2e(l2_pgentry_t l2e, mfn_t l2mfn, unsigned int flags)