aboutsummaryrefslogtreecommitdiffstats
path: root/main/grub/0007-xen-Modify-grub_xen_ptr2mfn-for-Xen-PVH.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/grub/0007-xen-Modify-grub_xen_ptr2mfn-for-Xen-PVH.patch')
-rw-r--r--main/grub/0007-xen-Modify-grub_xen_ptr2mfn-for-Xen-PVH.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/main/grub/0007-xen-Modify-grub_xen_ptr2mfn-for-Xen-PVH.patch b/main/grub/0007-xen-Modify-grub_xen_ptr2mfn-for-Xen-PVH.patch
deleted file mode 100644
index aa0de2c4117..00000000000
--- a/main/grub/0007-xen-Modify-grub_xen_ptr2mfn-for-Xen-PVH.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 9db97a1c63053bc376419e913a19f9f99a3f7b7d Mon Sep 17 00:00:00 2001
-From: Juergen Gross <jgross@suse.com>
-Date: Fri, 7 Dec 2018 13:11:35 +0100
-Subject: [PATCH 07/20] xen: Modify grub_xen_ptr2mfn() for Xen PVH
-
-grub_xen_ptr2mfn() returns the machine frame number for a given pointer
-value. For Xen-PVH guests this is just the PFN. Add the PVH specific
-variant.
-
-Signed-off-by: Juergen Gross <jgross@suse.com>
-Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
-Tested-by: Hans van Kranenburg <hans@knorrie.org>
-(cherry picked from commit 3b8d09c7742a1890eadad6987852c82947ea5d4a)
----
- grub-core/kern/xen/init.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/grub-core/kern/xen/init.c b/grub-core/kern/xen/init.c
-index 10007b411..a23dad633 100644
---- a/grub-core/kern/xen/init.c
-+++ b/grub-core/kern/xen/init.c
-@@ -45,6 +45,8 @@ grub_xen_ptr2mfn (void *ptr)
- grub_xen_mfn_t *mfn_list =
- (grub_xen_mfn_t *) grub_xen_start_page_addr->mfn_list;
- return mfn_list[(grub_addr_t) ptr >> GRUB_XEN_LOG_PAGE_SIZE];
-+#else
-+ return (grub_addr_t) ptr >> GRUB_XEN_LOG_PAGE_SIZE;
- #endif
- }
-
---
-2.21.0
-