• These are references to 'loglevel' that aren't on a simple 'if (loglevel &
    X) qemu_log()' statement.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6340 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6339 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This is a large patch that changes all occurrences of logfile/loglevel
    global variables to use the new qemu_log*() macros.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6338 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This patch exploits the new DisplaySurface and PixelFormat structures in
    vnc, making the code easier to read allowing further improvements.
    
    Compared to the last version I fixed a bug that prevented the hextile
    encoding from working properly.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6337 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This patch changes the DisplayState interface adding support for
    multiple frontends at the same time (sdl and vnc) and implements most
    of the benefit of the shared_buf patch without the added complexity.
    
    Currently DisplayState is managed by sdl (or vnc) and sdl (or vnc) is
    also responsible for allocating the data and setting the depth.
    Vga.c (or another backend) will do any necessary conversion.
    
    The idea is to change it so that is vga.c (or another backend) together
    with console.c that fully manage the DisplayState interface allocating
    data and setting the depth (either 16 or 32 bit, if the guest uses a
    different resolution or is in text mode, vga.c (or another backend) is
    in charge of doing the conversion seamlessly).
    
    The other idea is that DisplayState supports *multiple* frontends
    like sdl and vnc; each of them can register some callbacks to be called
    when a display event occurs.
    
    The interesting changes are:
    
    - the new structures and related functions in console.h and console.c
    
    in particular the following functions are very helpful to manage a
    DisplaySurface:
    
    qemu_create_displaysurface
    qemu_resize_displaysurface
    qemu_create_displaysurface_from
    qemu_free_displaysurface
    
    - console_select and qemu_console_resize in console.c
    this two functions manage multiple consoles on a single host display
    
    - moving code around in hw/vga.c
    as for the shared_buf patch this is necessary to be able to handle a dynamic
    DisplaySurface bpp
    
    - changes to vga_draw_graphic in hw/vga.c
    this is the place where the DisplaySurface buffer is shared with the
    videoram, when possible;
    
    
    Compared to the last version the only changes are:
    
    - do not remove support to dpy_copy in cirrus_vga
    - change the name of the displaysurface handling functions
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6336 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • Do not handle bgr host displays in the backends.
    
    Right now a bgr flag exists so that sdl can set it, if the SDL_Surface
    is bgr.
    Afterwards the graphic device (e.g. vga.c) does the needed conversion.
    
    With this patch series is sdl that is responsible for rendering the format
    provided by the graphic device that must provide a DisplaySurface
    (ds->surface) in 16 or 32 bpp, rgb.
    Afterwards sdl creates a SDL_Surface from the given DisplaySurface and
    blits it into the main SDL_Surface using SDL_BlitSurface.
    
    Everything is handled by sdl transparently, because SDL_BlitSurface is
    perfectly capable of handling bgr displays by itself.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6335 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • The patch applies to upstream qemu as well as kvm-userspace, but since it is
    the qemu configure script I think it should go to upstream qemu (Anthony)
    first and with the next merge to kvm-userspace. On the other hand it is the kvm
    probe so an ack from Avi in case v3 is ok would be reasonable.
    
    *updates*
    v2 - it also reports other errors than just #error preprocessor statements
         (requested by Avi)
    v3 - In case awk or grep is not installed it now gracfully (silently)
         fails still disabling kvm (requested by Anthony)
    
    This patch is about reporting more details of the issue if configuring kvm
    fails. Therefore this patch keeps the qemu style configure output which is a
    list of "$Feature $Status", but extend the "no" result like "KVM Support no"
    with some more information.
    
    There might be a lot of things going wrong with that probe and I don't want
    to handle all of them, but if it is one of the known checks e.g. for
    KVM_API_VERSION then we could grep/awk that out and report it. The patch
    reports in case of a known case in the style
    "KVM support no - (Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS)"
    
    In case more than one #error is triggered it creates a comma separated list in
    those brackets and in case it is something else than an #error it just reports
    plain old "no".
    
    Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6334 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • These macros are NOT a proposal for a definitive new logging API. They
    are just a step for it: a way to mark all usage patterns of the
    logfile/loglevel variables on a single place.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6333 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • Use macros to avoid #ifdefs on debugging code.
    
    This patch doesn't try to merge logging macros from different files,
    but just unify the debugging code #ifdefs onto a macro on each file. A
    further cleanup can unify the debugging macros on a common header, later
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6332 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • getopt doesn't return a char but an int.
    
    Signed-off-by: Kevin Wolf <kwolf@suse.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6331 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • r6303 broke Windows build, where "noreturn" is a keyword used with __declspec.
    Attached patch fixes Windows build, by moving windows.h header inclusion before Qemu noreturn define.
    
    Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> 
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6330 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • Signed-off-by: Liu Yu <yu.liu@freescale.com>
    Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6329 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • An external interrupt should not interrupted in-servicing interrupt with equal priority.
    
    Signed-off-by: Liu Yu <yu.liu@freescale.com>
    Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6328 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • Signed-off-by: Liu Yu <yu.liu@freescale.com>
    Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6327 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »