[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] re-register whole area upon lfb unmap.
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 1/5] re-register whole area upon lfb unmap. |
Date: |
Wed, 17 Dec 2008 15:46:58 -0500 |
set phys_offset correctly for the whole vga area when unmapping linear vram
(for vga optimization). We first register the old pieces as unassigned
memory, to make things easier for kvm (and possibly other slot based
implementations in the future). Replacing the region directly would
make the slot management significantly more complex.
Signed-off-by: Glauber Costa <address@hidden>
---
hw/cirrus_vga.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 83c5f40..6e81906 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -2658,8 +2658,10 @@ static void map_linear_vram(CirrusVGAState *s)
vga_dirty_log_start((VGAState *)s);
}
else {
- cpu_register_physical_memory(isa_mem_base + 0xa0000, 0x8000,
s->vga_io_memory);
- cpu_register_physical_memory(isa_mem_base + 0xa8000, 0x8000,
s->vga_io_memory);
+ cpu_register_physical_memory(isa_mem_base + 0xa0000, 0x8000,
IO_MEM_UNASSIGNED);
+ cpu_register_physical_memory(isa_mem_base + 0xa8000, 0x8000,
IO_MEM_UNASSIGNED);
+
+ cpu_register_physical_memory(isa_mem_base + 0xa0000, 0x20000,
s->vga_io_memory);
}
}
--
1.5.6.5
- [Qemu-devel] [PATCH 0/5] Replace tcg memory functions, Glauber Costa, 2008/12/17
- [Qemu-devel] [PATCH 1/5] re-register whole area upon lfb unmap.,
Glauber Costa <=
- [Qemu-devel] [PATCH 2/5] isolate io handling routing, Glauber Costa, 2008/12/17
- [Qemu-devel] [PATCH 3/5] replace cpu_physical_memory_rw, Glauber Costa, 2008/12/17
- [Qemu-devel] [PATCH 4/5] hook cpu_register_physical_mem, Glauber Costa, 2008/12/17
- [Qemu-devel] [PATCH 5/5] cache slot lookup, Glauber Costa, 2008/12/17
- [Qemu-devel] Re: [PATCH 5/5] cache slot lookup, Avi Kivity, 2008/12/18
- [Qemu-devel] Re: [PATCH 5/5] cache slot lookup, Glauber Costa, 2008/12/18
- Re: [Qemu-devel] Re: [PATCH 5/5] cache slot lookup, Daniel P. Berrange, 2008/12/18
- Re: [Qemu-devel] Re: [PATCH 5/5] cache slot lookup, Glauber Costa, 2008/12/18
- [Qemu-devel] Re: [PATCH 5/5] cache slot lookup, Avi Kivity, 2008/12/18
- [Qemu-devel] Re: [PATCH 3/5] replace cpu_physical_memory_rw, Anthony Liguori, 2008/12/17