diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-10-12 04:00:49 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-10-12 04:00:49 +0000 |
| commit | c22f60e6e55f1bf300dd76d2222a93911f3b2bb2 (patch) | |
| tree | ef665e7018377f53612ac2751dcaea35a1c587b6 /stdvga-cache.patch | |
| parent | 39a4763249cd6289e5019acfe0c98dbb169f5f2e (diff) | |
automatic import of xenopeneuler22.03_LTS
Diffstat (limited to 'stdvga-cache.patch')
| -rw-r--r-- | stdvga-cache.patch | 16 |
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 ) + { |
