qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vga: Mark VBE area as reserved in e820 tables
@ 2010-10-14 18:36 Alex Williamson
  2010-10-15  8:22 ` [Qemu-devel] " Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Williamson @ 2010-10-14 18:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: jes.sorensen, alex.williamson, kvm

Otherwise the guest might try to use the range for device hotplug.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---

 hw/vga.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/hw/vga.c b/hw/vga.c
index 966185e..90f9dc0 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2331,6 +2331,14 @@ void vga_init(VGACommonState *s)
 void vga_init_vbe(VGACommonState *s)
 {
 #ifdef CONFIG_BOCHS_VBE
+#if defined (TARGET_I386)
+    if (e820_add_entry(VBE_DISPI_LFB_PHYSICAL_ADDRESS,
+                       VGA_RAM_SIZE, E820_RESERVED) < 0) {
+        fprintf(stderr,
+                "Warning: unable to register VBE range as e820 reserved\n");
+    }
+#endif
+
     /* XXX: use optimized standard vga accesses */
     cpu_register_physical_memory(VBE_DISPI_LFB_PHYSICAL_ADDRESS,
                                  VGA_RAM_SIZE, s->vram_offset);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: [PATCH] vga: Mark VBE area as reserved in e820 tables
  2010-10-14 18:36 [Qemu-devel] [PATCH] vga: Mark VBE area as reserved in e820 tables Alex Williamson
@ 2010-10-15  8:22 ` Gerd Hoffmann
  2010-10-15 14:41   ` Alex Williamson
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2010-10-15  8:22 UTC (permalink / raw)
  To: Alex Williamson; +Cc: jes.sorensen, qemu-devel, kvm

On 10/14/10 20:36, Alex Williamson wrote:
> Otherwise the guest might try to use the range for device hotplug.

Aaaaarrgh.

/me tries to kill vga_init_vbe() usage for everything (but isa-vga) for 
*months* now.  I want to zap the magic framebuffer @ 
VBE_DISPI_LFB_PHYSICAL_ADDRESS instead of trying to convince guests to 
not touch it using all kinds of voodoo.

Anthony, what is the status of the vgabios patches?  Can we *please* 
finally merge them?

thanks,
   Gerd

http://cgit.freedesktop.org/spice/qemu/log/?h=vgabios
http://cgit.freedesktop.org/~kraxel/vgabios/log/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: [PATCH] vga: Mark VBE area as reserved in e820 tables
  2010-10-15  8:22 ` [Qemu-devel] " Gerd Hoffmann
@ 2010-10-15 14:41   ` Alex Williamson
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Williamson @ 2010-10-15 14:41 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: jes.sorensen, qemu-devel, kvm

On Fri, 2010-10-15 at 10:22 +0200, Gerd Hoffmann wrote:
> On 10/14/10 20:36, Alex Williamson wrote:
> > Otherwise the guest might try to use the range for device hotplug.
> 
> Aaaaarrgh.
> 
> /me tries to kill vga_init_vbe() usage for everything (but isa-vga) for 
> *months* now.  I want to zap the magic framebuffer @ 
> VBE_DISPI_LFB_PHYSICAL_ADDRESS instead of trying to convince guests to 
> not touch it using all kinds of voodoo.

Sorry I missed that.  Sure, if we can zap it entirely and move it into
the option ROM, that clearly seems like the way to go.  Thanks,

Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-15 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 18:36 [Qemu-devel] [PATCH] vga: Mark VBE area as reserved in e820 tables Alex Williamson
2010-10-15  8:22 ` [Qemu-devel] " Gerd Hoffmann
2010-10-15 14:41   ` Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).