1. 05 10月, 2009 1 次提交
    • L
      Fix exit on 'pci_add' Monitor command · 0148fde5
      Luiz Capitulino 提交于
      If the user issues one of the following commands to the Monitor:
      
      pci_add pci_addr=auto nic model=None
      pci_add pci_addr=auto nic model=?
      
      QEMU will exit, because the function used to perform sanity
      checks (qemu_check_nic_model_list()) exits on error.
      
      This function is used by the startup code, where it makes
      sense to exit on error, but in the Monitor it doesn't.
      
      Changing qemu_check_nic_model_list() to not exit on error
      is not possible though, as it's used by the board init
      code (the PC one), where all board specific code must have
      void return.
      
      The way I've chosen to fix this was to introduce a new function
      called pci_nic_supported(), which checks if the NIC is supported
      and returns true or false accordingly.
      
      The new function is used only by the Monitor, it performs the
      necessary check and returns an error in case the NIC is not
      supported, thus qemu_check_nic_model_list()'s exit is never trigged.
      
      The following should be observed:
      
      1. Only the specified NIC is checked, the default one is assumed
      to be supported
      
      2. The NIC query command (model=?) won't work with pci_add, the
      right way to do this with the Monitor is to add a new command
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0148fde5
  2. 02 10月, 2009 2 次提交
  3. 20 9月, 2009 1 次提交
  4. 16 9月, 2009 1 次提交
  5. 10 9月, 2009 3 次提交
  6. 04 9月, 2009 1 次提交
  7. 28 8月, 2009 2 次提交
  8. 11 8月, 2009 1 次提交
  9. 09 7月, 2009 1 次提交
  10. 30 6月, 2009 1 次提交
  11. 24 6月, 2009 6 次提交
  12. 22 6月, 2009 2 次提交
  13. 17 6月, 2009 1 次提交
  14. 10 6月, 2009 1 次提交
  15. 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
  16. 15 5月, 2009 3 次提交
  17. 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
  18. 04 5月, 2009 1 次提交
  19. 10 4月, 2009 1 次提交
  20. 29 3月, 2009 1 次提交
    • A
      Clean some PCI defines (Stefan Weil) · cef3017c
      aliguori 提交于
      this patch adds some more defines from linux/pci_regs.h to
      hw/pci.h. There is now no longer a need to define them in
      eepro100.c, so they were removed there.
      
      Some defines from linux/pci_regs.h had similar, but not
      the same defines in hw/pci.h (PCI_REVISION_ID / PCI_REVISION,
      PCI_SUBSYSTEM_VENDOR_ID / PCI_SUBVENDOR_ID,
      PCI_SUBSYSTEM_ID / PCI_SUBDEVICE_ID).
      
      I suggest to use the "standard" from linux/pci_regs.h and
      replace the "old" Qemu ones. To facilitate the migration,
      my patch does not remove the old defines but marks them
      as obsolete. After a migration to the "standard" defines,
      pci.h could use linux/pci_regs.h which is far more complete.
      
      The patch is needed for an updated maintainer version of
      hw/eepro100.c which I'd like to see in Qemu stable.
      
       * Remove declarations already declared in header file from eepro100.c
       * Add missing declarations from pci_regs.h to pci.h
       * Mark "non-standard" declarations in pci.h as obsolete
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6901 c046a42c-6fe2-441c-8c8c-71466251a162
      cef3017c
  21. 13 3月, 2009 1 次提交
  22. 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
  23. 03 3月, 2009 1 次提交
  24. 11 2月, 2009 5 次提交