Skip to contentSkip to conversation

Enable CGA acceleration for VTI.

Xen-changelog Anthony Liguori 2 participants 2 messages Jun 2, 2006 – Jun 3, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I assume this commit message was supposed to be "Enable VGA acceleration for VTI" right?

We're not actually accelerating CGA right?

Regards,

Anthony Liguori

Quoted 71 lines · Xen patchbot-unstable

# HG changeset patch
# User [email protected]
# Node ID e67432187b88ee60433779ad0f004b532ed378c8 # Parent 639ad22eb7c80ac21c3958747b879892680bdaba [IA64][HVM] Enable CGA acceleration for VTI.

---
 tools/ioemu/hw/cirrus_vga.c |    5 -----
 tools/ioemu/hw/vga.c        |    2 +-
 tools/ioemu/vl.c            |    2 +-
 3 files changed, 2 insertions(+), 7 deletions(-)

diff -r 639ad22eb7c8 -r e67432187b88 tools/ioemu/hw/cirrus_vga.c

tools/ioemu/hw/cirrus_vga.c +0 -5
@@ -2460,7 +2460,6 @@ static CPUWriteMemoryFunc *cirrus_linear
 };
 
 extern FILE *logfile;
-#if defined(__i386__) || defined (__x86_64__)
 static void * set_vram_mapping(unsigned long begin, unsigned long end)
 {
     unsigned long * extent_start = NULL;
@@ -2540,10 +2539,6 @@ static int unset_vram_mapping(unsigned l
     return 0;
 }
 
-#elif defined(__ia64__)
-static void * set_vram_mapping(unsigned long addr, unsigned long end) {}
-static int unset_vram_mapping(unsigned long addr, unsigned long end) {}
-#endif
 extern int vga_accelerate;
 
 /* Compute the memory access functions */

diff -r 639ad22eb7c8 -r e67432187b88 tools/ioemu/hw/vga.c

tools/ioemu/hw/vga.c +1 -1
@@ -1995,6 +1995,7 @@ void vga_common_init(VGAState *s, Displa
     s->get_resolution = vga_get_resolution;
     /* XXX: currently needed for display */
     vga_state = s;
+    vga_bios_init(s);
 }
 
 
@@ -2082,7 +2083,6 @@ int vga_initialize(PCIBus *bus, DisplayS
 #endif
     }
 
-    vga_bios_init(s);
     return 0;
 }
 

diff -r 639ad22eb7c8 -r e67432187b88 tools/ioemu/vl.c

tools/ioemu/vl.c +1 -1
@@ -2499,7 +2499,7 @@ int set_mm_mapping(int xc_handle,
     xc_domain_getinfo(xc_handle, domid, 1, &info);
 
     if ( xc_domain_setmaxmem(xc_handle, domid,
-                             (info.nr_pages + nr_pages) * PAGE_SIZE/1024) != 0)
+                             info.max_memkb + nr_pages * PAGE_SIZE/1024) !=0)
     {
         fprintf(logfile, "set maxmem returned error %d\n", errno);
         return -1;

_______________________________________________
Xen-changelog mailing list
[email protected]
http://lists.xensource.com/xen-changelog

#2 lore raw
Quoted 3 lines · Anthony Liguori

I assume this commit message was supposed to be "Enable VGA acceleration for VTI" right?

We're not actually accelerating CGA right?

Yes, typo.

-- Keir