m1n1.hv: Do map low RAM

Apparently this is still necessary

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-11-02 15:57:52 +09:00
parent 49858b6d2c
commit 85ca5b94cb

View file

@ -1267,7 +1267,7 @@ class HV(Reloadable):
print(f"Mapping guest physical memory...")
ram_base = self.u.ba.phys_base & ~0xffffffff
#self.map_hw(ram_base, ram_base, self.u.ba.phys_base - ram_base)
self.map_hw(ram_base, ram_base, self.u.ba.phys_base - ram_base)
self.map_hw(phys_base, phys_base, self.u.ba.mem_size_actual - phys_base + ram_base)
print(f"Loading kernel image (0x{len(image):x} bytes)...")