diff mbox series

[RFC,76/84] x86/setup: also clear the permission bits in the dummy 1:1 mapping.

Message ID 50268efd2bd6bdf4e1508218e7f1ec9b8776ea72.1569489002.git.hongyax@amazon.com (mailing list archive)
State New, archived
Headers show
Series Remove direct map from Xen | expand

Commit Message

Xia, Hongyan Sept. 26, 2019, 9:46 a.m. UTC
From: Hongyan Xia <hongyax@amazon.com>

Signed-off-by: Hongyan Xia <hongyax@amazon.com>
---
 xen/arch/x86/setup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Wei Liu Sept. 26, 2019, 2:42 p.m. UTC | #1
On Thu, Sep 26, 2019 at 10:46:39AM +0100, hongyax@amazon.com wrote:
> From: Hongyan Xia <hongyax@amazon.com>
> 

Assuming we end up keeping those calls, this patch should be squashed.

Wei.
diff mbox series

Patch

diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 3dc2fad987..9015e3b723 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -1368,7 +1368,7 @@  void __init noreturn __start_xen(unsigned long mbi_p)
             if ( map_e < end )
             {
                 map_pages_to_xen((unsigned long)__va(map_e), INVALID_MFN,
-                                 PFN_DOWN(end - map_e), PAGE_HYPERVISOR);
+                                 PFN_DOWN(end - map_e), _PAGE_NONE);
                 init_boot_pages(map_e, end);
                 map_e = end;
             }
@@ -1383,7 +1383,7 @@  void __init noreturn __start_xen(unsigned long mbi_p)
         if ( s < map_s )
         {
             map_pages_to_xen((unsigned long)__va(s), INVALID_MFN,
-                             PFN_DOWN(map_s - s), PAGE_HYPERVISOR);
+                             PFN_DOWN(map_s - s), _PAGE_NONE);
             init_boot_pages(s, map_s);
         }
     }