• Most 64 bit architectures I'm aware of support running 32 bit code
    of the same architecture as well.
    
    So x86_64 can run i386 code easily and ppc64 can run ppc code.
    
    Unfortunately, the current checks are pretty strict. So you can only
    load e.g. an x86_64 elf binary on qemu-system-x86_64, but no i386 one.
    
    This can get really annoying. I first encountered this issue with
    my multiboot patch, where qemu-system-x86_64 was unable to load an
    i386 elf binary because the elf loader rejected it.
    
    The same thing happened again on PPC64 now. The firmware we're loading
    is a PPC32 elf binary, as it's shared with PPC32. But the platform is
    PPC64.
    
    Right now there is a hack for this in the ppc cpu.h definition, that
    simply sets the type to PPC32 in system emulation mode. While that
    works fine for the firmware, it's no good if you also want to load a
    PPC64 kernel with -kernel.
    
    So in order to solve this mess, I figured the easiest way is to make
    the elf loader aware of platforms that are backwards compatible. For
    now I was only sure that x86_64 does i386 and ppc64 does ppc32, but
    maybe there are other combinations too.
    
    This patch is a prerequisite for having a working -kernel option on
    PPC64.
    
    Signed-off-by: Alexander Graf <alex@csgraf.de>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6855 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
     
    Browse Code »
  • A pci config write may remap the vga linear frame buffer, confusing the
    memory slot dirty logging logic.
    
    Fixed Windows with -vga std.
    
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Sigend-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6852 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • Otherwise, slot tracking gets confused.
    
    This fixes a screen corruption bug with Ubuntu guest installation.
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6851 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »