summaryrefslogtreecommitdiff
path: root/stdvga-cache.patch
diff options
context:
space:
mode:
Diffstat (limited to 'stdvga-cache.patch')
-rw-r--r--stdvga-cache.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/stdvga-cache.patch b/stdvga-cache.patch
new file mode 100644
index 0000000..e4a0f1f
--- /dev/null
+++ b/stdvga-cache.patch
@@ -0,0 +1,16 @@
+Index: xen-4.9.0-testing/xen/arch/x86/hvm/stdvga.c
+===================================================================
+--- xen-4.9.0-testing.orig/xen/arch/x86/hvm/stdvga.c
++++ xen-4.9.0-testing/xen/arch/x86/hvm/stdvga.c
+@@ -166,7 +166,10 @@ static int stdvga_outb(uint64_t addr, ui
+
+ /* When in standard vga mode, emulate here all writes to the vram buffer
+ * so we can immediately satisfy reads without waiting for qemu. */
+- s->stdvga = (s->sr[7] == 0x00);
++ s->stdvga =
++ (s->sr[7] == 0x00) && /* standard vga mode */
++ (s->gr[6] == 0x05); /* misc graphics register w/ MemoryMapSelect=1
++ * 0xa0000-0xaffff (64k region), AlphaDis=1 */
+
+ if ( !prev_stdvga && s->stdvga )
+ {