[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 07/20] xen: modify grub_xen_ptr2mfn() for xen-pvh
From: |
Juergen Gross |
Subject: |
[PATCH v6 07/20] xen: modify grub_xen_ptr2mfn() for xen-pvh |
Date: |
Wed, 28 Nov 2018 14:55:17 +0100 |
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 <address@hidden>
Reviewed-by: Daniel Kiper <address@hidden>
---
V5: new patch (Daniel Kiper)
---
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.16.4
- [PATCH v6 02/20] loader/linux: support passing rsdp address via boot params, (continued)
- [PATCH v6 02/20] loader/linux: support passing rsdp address via boot params, Juergen Gross, 2018/11/28
- [PATCH v6 10/20] xen: add PVH boot entry code, Juergen Gross, 2018/11/28
- [PATCH v6 04/20] xen: prepare common code for Xen PVH support, Juergen Gross, 2018/11/28
- [PATCH v6 03/20] xen: carve out grant tab initialization into dedicated function, Juergen Gross, 2018/11/28
- [PATCH v6 08/20] xen: add PVH specific defines to offset.h, Juergen Gross, 2018/11/28
- [PATCH v6 13/20] xen: setup Xen specific data for PVH, Juergen Gross, 2018/11/28
- [PATCH v6 11/20] xen: setup hypercall page for PVH, Juergen Gross, 2018/11/28
- [PATCH v6 05/20] xen: add some dummy headers for PVH mode, Juergen Gross, 2018/11/28
- [PATCH v6 12/20] xen: get memory map from hypervisor for PVH, Juergen Gross, 2018/11/28
- [PATCH v6 07/20] xen: modify grub_xen_ptr2mfn() for xen-pvh,
Juergen Gross <=
- [PATCH v6 19/20] xen_pvh: support grub-install for xen_pvh, Juergen Gross, 2018/11/28
- [PATCH v6 16/20] grub-module-verifier: Ignore all_video for xenpvh, Juergen Gross, 2018/11/28
- [PATCH v6 09/20] xen: add basic hooks for PVH in current code, Juergen Gross, 2018/11/28
- [PATCH v6 18/20] xen_pvh: support building a standalone image, Juergen Gross, 2018/11/28
- [PATCH v6 06/20] xen: rearrange xen/init.c to prepare it for Xen PVH mode, Juergen Gross, 2018/11/28
- [PATCH v6 17/20] xen: use elfnote defines instead of plain numbers, Juergen Gross, 2018/11/28
- [PATCH v6 20/20] xen_pvh: add support to configure, Juergen Gross, 2018/11/28
- [PATCH v6 01/20] xen: add some xen headers, Juergen Gross, 2018/11/28