• The vga_ram_size argument to machine init functions always has the same
    value, and is ignored by many machines (including SPARC32 which has an
    obsolete ifdef for VGA_RAM_SIZE).
    
    Remove it and push VGA_RAM_SIZE into vga_int.h.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
     
    Browse Code »

  • Now we can safely call AUD_init multiple times we can push it down to
    individual audio devices, rather than having to pass it from the board
    init.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
     
    Browse Code »
  • Failure to initialize the audio subsystem is not handled consistently.
    Where it is handled it has guest visible effects, which is wrong.
    We already have a "nosound" audio driver as a last resort, so trying to
    proceed without an audio backend seems pointless.
    
    Also protect against multiple calls to AUD_init so that this can be
    pushed down into individual devices.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
     
    Browse Code »

  • The linux loader is just an option rom like any other, just with
    some special requirements. Right now, our option rom resetting
    mechanism is not being applied to it. As a result, users using
    -kernel will not be able to successfully reboot their machines
    
    This patch fixes it by saving all the data we generated in
    the load_linux() function, to be used later by the option rom
    resetting mechanism.
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »
  • Currently, boot options are not preserved across a system reset.
    option roms can modify themselves, or can for instance restore the real
    int 0x19 vector after they tried to boot from it.
    
    To properly do that, we need a reset handler registered to deal with option
    roms. This patch is based on current version on qemu-kvm.git
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »

  • According to PnP specification, Appendix B, Option ROMs
    that support DDIM (device driver initialization model) should
    have their memory space writeable.
    
    KVM deviates from us here, by removing the IO_MEM_ROM flag,
    to allow for PCI option ROMs (they require DDIM). However,
    there's absolutely no reason we can't do the same.
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »
  • Here is an updated hardware watchdog patch, which should fix
    everything that was raised about the previous version ...
    
    Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Richard W.M. Jones authored
     
    Browse Dir »



  • Create a new -smbios option (x86-only) to allow binary SMBIOS entries
    to be passed through to the BIOS or modify the default values of
    individual fields of type 0 and 1 entries on the command line.
    
    Binary SMBIOS entries can be generated as follows:
    
    dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \
            perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin
    
    These can then be passed to the BIOS using this switch:
    
     -smbios file=smbios_type_1.bin
    
    Command line generation supports the following syntax:
    
     -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]
     -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str]
                  [,uuid=$(uuidgen)][,sku=str][,family=str]
    
    For instance, to add a serial number to the type 1 table:
    
     -smbios type=1,serial=0123456789
    
    Interface is extensible to support more fields/tables as needed.
    
    aliguori: remove texi formatting from help output
    
    Signed-off-by: Alex Williamson <alex.williamson@hp.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse File »




  • This patch increases by 50 % the size available for option roms.
    The main motivator is that some roms grew bigger than the 64k we
    currently allocate for them (Hey, it's 2009!)
    
    One example is the gpxe project, that produces some roms with 69k,
    70k, etc. The space proposed by this patch actually makes it as
    big as 84k. Probably still a fit for some time.
    
    But there is no free lunch. This space must come from somewhere,
    and we take it from vga rom space. Currently, our vga roms are
    around 35k in size. With this patch, option rom space will begin
    just after vga ends, aligned to the next 2k boundary.
    
    Technicaly, we could do the same with the uper space (the bios itself),
    but since bochs bios is already 128 k in size, I don't see an
    urgent need to do it.
    
    [ fix case for vgabioses smaller than 30k, by Carl-Daniel Hailfinger ]
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6896 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Dir »


  • Refactor the monitor API and prepare it for decoupled terminals:
    term_print functions are renamed to monitor_* and all monitor services
    gain a new parameter (mon) that will once refer to the monitor instance
    the output is supposed to appear on. However, the argument remains
    unused for now. All monitor command callbacks are also extended by a mon
    parameter so that command handlers are able to pass an appropriate
    reference to monitor output services.
    
    For the case that monitor outputs so far happen without clearly
    identifiable context, the global variable cur_mon is introduced that
    shall once provide a pointer either to the current active monitor (while
    processing commands) or to the default one. On the mid or long term,
    those use case will be obsoleted so that this variable can be removed
    again.
    
    Due to the broad usage of the monitor interface, this patch mostly deals
    with converting users of the monitor API. A few of them are already
    extended to pass 'mon' from the command handler further down to internal
    functions that invoke monitor_printf.
    
    At this chance, monitor-related prototypes are moved from console.h to
    a new monitor.h. The same is done for the readline API.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6711 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »



  • On the MIPS Magnum, the time that is held in the RTC's NVRAM should be
    relative to midnight on 1980-01-01.  This patch adds an extra parameter
    to rtc_init(), allowing different epochs to be used.  For the Magnum,
    1980 is specified, and for all other machines, 2000 is specified.
    
    I've not modified the handling of the century byte, as with an epoch of
    1980 and a year of 2009, one could argue that it should hold either
    0, 1, 19 or 20.  NT 3.50 on MIPS does not read the century byte.
    
    Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6429 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
     
    Browse Code »

  • Patch 5/7
    
    This patch changes the graphical_console_init function to return an
    allocated DisplayState instead of a QEMUConsole.
    
    This patch contains just the graphical_console_init change and few other
    modifications mainly in console.c and vl.c.
    It was necessary to move the display frontends (e.g. sdl and vnc)
    initialization after machine->init in vl.c.
    
    This patch does *not* include any required changes to any device, these
    changes come with the following patches.
    
    Patch 6/7
    
    This patch changes the QEMUMachine init functions not to take a
    DisplayState as an argument because is not needed any more;
    
    In few places the graphic hardware initialization function was called
    only if DisplayState was not NULL, now they are always called.
    Apart from these cases, the rest are all mechanical substitutions.
    
    Patch 7/7
    
    This patch updates the graphic device code to use the new
    graphical_console_init function.
    
    As for the previous patch, in few places graphical_console_init was called
    only if DisplayState was not NULL, now it is always called.
    Apart from these cases, the rest are all mechanical substitutions.
    
    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@6344 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse File »
  • r6322 introduced a warning pointed out by Jan Kiszka.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6342 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »