1. 14 6月, 2009 3 次提交
  2. 30 5月, 2009 1 次提交
  3. 23 5月, 2009 1 次提交
    • P
      Add common BusState · 02e2da45
      Paul Brook 提交于
      Implement and use a common device bus state.  The main side-effect is
      that creating a bus and attaching it to a parent device are no longer
      separate operations.  For legacy code we allow a NULL parent, but that
      should go away eventually.
      
      Also tweak creation code to veriry theat a device in on the right bus.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      02e2da45
  4. 22 5月, 2009 2 次提交
    • J
      Introduce reset notifier order · 8217606e
      Jan Kiszka 提交于
      Add the parameter 'order' to qemu_register_reset and sort callbacks on
      registration. On system reset, callbacks with lower order will be
      invoked before those with higher order. Update all existing users to the
      standard order 0.
      
      Note: At least for x86, the existing users seem to assume that handlers
      are called in their registration order. Therefore, the patch preserves
      this property. If someone feels bored, (s)he could try to identify this
      dependency and express it properly on callback registration.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8217606e
    • A
      Introduce is_default field for QEMUMachine · 0c257437
      Anthony Liguori 提交于
      f80f9ec9 changed the order that machines are registered which had the effect of
      changing the default machine.  This changeset introduces a new is_default field
      so that machine types can declare that they are the default for an architecture.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0c257437
  5. 21 5月, 2009 1 次提交
  6. 20 5月, 2009 3 次提交
  7. 19 5月, 2009 2 次提交
  8. 15 5月, 2009 5 次提交
  9. 14 5月, 2009 1 次提交
    • P
      Remove vga_ram_size · fbe1b595
      Paul Brook 提交于
      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: NPaul Brook <paul@codesourcery.com>
      fbe1b595
  10. 12 5月, 2009 2 次提交
    • P
      Push AUD_init down to devices · 22d83b14
      Paul Brook 提交于
      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: NPaul Brook <paul@codesourcery.com>
      22d83b14
    • P
      Make AUD_init failure fatal · 0d9acba8
      Paul Brook 提交于
      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: NPaul Brook <paul@codesourcery.com>
      0d9acba8
  11. 09 5月, 2009 2 次提交
  12. 01 5月, 2009 2 次提交
  13. 22 4月, 2009 1 次提交
  14. 19 4月, 2009 1 次提交
  15. 18 4月, 2009 1 次提交
    • A
      qemu: Add support for SMBIOS command line otions (Alex Williamson) · b6f6e3d3
      aliguori 提交于
      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: NAlex Williamson <alex.williamson@hp.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
      b6f6e3d3
  16. 12 4月, 2009 1 次提交
  17. 10 4月, 2009 4 次提交
  18. 29 3月, 2009 1 次提交
    • A
      get roms more room. (Glauber Costa) · 34b39c2b
      aliguori 提交于
      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: NGlauber Costa <glommer@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6896 c046a42c-6fe2-441c-8c8c-71466251a162
      34b39c2b
  19. 07 3月, 2009 1 次提交
  20. 06 3月, 2009 1 次提交
    • A
      monitor: Rework API (Jan Kiszka) · 376253ec
      aliguori 提交于
      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: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6711 c046a42c-6fe2-441c-8c8c-71466251a162
      376253ec
  21. 28 2月, 2009 1 次提交
  22. 11 2月, 2009 1 次提交
  23. 25 1月, 2009 1 次提交
  24. 17 1月, 2009 1 次提交
    • A
      graphical_console_init change (Stefano Stabellini) · 3023f332
      aliguori 提交于
      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: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6344 c046a42c-6fe2-441c-8c8c-71466251a162
      3023f332