[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/16] x86/P2M: rename p2m_remove_page()


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 5 Jul 2021 18:05:36 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z4RpaDeng9lWcvFK84pEeyS4Y5FUQv/CbdN7CkzTyrQ=; b=iKscJRJE5NMYs8pB1ESmibOFyxOJPuSSmfIOGrEgsT/zejvqjPITVm4FNWQOwgMjQaSuEvwzvk5aiDijctUKaM9x/aU2JnouzjLxM9lQRIVMGew3Kh4PQ8kNrtSkdXjNGTJw8IlXYtDKBvgjpyvn2UC7zu5E9ZxFl5hQimppWMtyeSriDIsU2s05DgZdtAwH9GAOEbm/33vVQ4M4P0m3eI81btLgzW/CyddjmFW0KjW5QIcov6oXqqc81MTVLf/LqqjnIj0ETVYtHGbm/ZlqUQRx6mjnp5JIU+3uKx/iYi5Y/j9RlYbXyuqfSfH4RWFCBJyeFzW3j4vNx2IqpLl3Fg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RaY/l8CgDOuH0MeNIF51p8UC1Tx9HVuDubP00DOtFBgbMgYjpZxd4kwV6BDfn322YXzEsexjNqdMm5XBYn/meQWoOdMs6FGsxMTm13+myZTFCviDX5FP5Avadcs5ho/+o9+Bb+yXBxsSiYynSY5P3ev7NAEkb878mDNA5ZiIHt4gLgmNzscqapfpMXjkanQjKnmjYeuw04pobKp/ai5TegCUfB/5Ovm3YT4NRK7oNMK1PzzN54JWuNaG9upIBSXtBJmbJLadAF4oBfZgNOoCdSXs+3E1FZ/UqeZ92PZsx8mME2xYgwPFu868zD4MkgPJGEcj22n7cvgFusTC0R4l9A==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
  • Delivery-date: Mon, 05 Jul 2021 16:05:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This is in preparation to re-using the original name.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/mm/p2m.c
+++ b/xen/arch/x86/mm/p2m.c
@@ -788,8 +788,8 @@ void p2m_final_teardown(struct domain *d
 #ifdef CONFIG_HVM
 
 static int __must_check
-p2m_remove_page(struct p2m_domain *p2m, gfn_t gfn, mfn_t mfn,
-                unsigned int page_order)
+p2m_remove_entry(struct p2m_domain *p2m, gfn_t gfn, mfn_t mfn,
+                 unsigned int page_order)
 {
     unsigned long i;
     p2m_type_t t;
@@ -840,7 +840,7 @@ guest_physmap_remove_page(struct domain
         return 0;
 
     gfn_lock(p2m, gfn, page_order);
-    rc = p2m_remove_page(p2m, gfn, mfn, page_order);
+    rc = p2m_remove_entry(p2m, gfn, mfn, page_order);
     gfn_unlock(p2m, gfn, page_order);
 
     return rc;
@@ -1009,7 +1009,7 @@ guest_physmap_add_entry(struct domain *d
                 P2M_DEBUG("old gfn=%#lx -> mfn %#lx\n",
                           gfn_x(ogfn) , mfn_x(omfn));
                 if ( mfn_eq(omfn, mfn_add(mfn, i)) &&
-                     (rc = p2m_remove_page(p2m, ogfn, omfn, 0)) )
+                     (rc = p2m_remove_entry(p2m, ogfn, omfn, 0)) )
                     goto out;
             }
         }
@@ -2382,7 +2382,7 @@ int p2m_change_altp2m_gfn(struct domain
     {
         mfn = ap2m->get_entry(ap2m, old_gfn, &t, &a, 0, NULL, NULL);
         rc = mfn_valid(mfn)
-             ? p2m_remove_page(ap2m, old_gfn, mfn, PAGE_ORDER_4K)
+             ? p2m_remove_entry(ap2m, old_gfn, mfn, PAGE_ORDER_4K)
              : 0;
         goto out;
     }




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.