diff mbox series

[kvm-unit-tests,3/4] x86: remove blind writes from setup_mmu()

Message ID 20200710183320.27266-4-namit@vmware.com (mailing list archive)
State New, archived
Headers show
Series x86: svm: bare-metal fixes | expand

Commit Message

Nadav Amit July 10, 2020, 6:33 p.m. UTC
Recent changes cause end_of_memory to be disregarded in 32-bit. Remove
the blind writes to it.

Signed-off-by: Nadav Amit <namit@vmware.com>
---
 lib/x86/vm.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/lib/x86/vm.c b/lib/x86/vm.c
index 2bc2a39..41d6d96 100644
--- a/lib/x86/vm.c
+++ b/lib/x86/vm.c
@@ -151,9 +151,6 @@  void *setup_mmu(phys_addr_t end_of_memory)
 
     setup_mmu_range(cr3, 0, end_of_memory);
 #else
-    if (end_of_memory > (1ul << 31))
-	    end_of_memory = (1ul << 31);
-
     setup_mmu_range(cr3, 0, (2ul << 30));
     setup_mmu_range(cr3, 3ul << 30, (1ul << 30));
     init_alloc_vpage((void*)(3ul << 30));