1. 23 Aug, 2012 1 commit
  2. 28 Jul, 2012 1 commit
  3. 04 Jul, 2012 1 commit
  4. 11 Mar, 2012 1 commit
  5. 15 Feb, 2012 1 commit
  6. 03 Feb, 2012 1 commit
    • Anthony Liguori's avatar
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori authored
      
      
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  7. 27 Jan, 2012 2 commits
  8. 12 Sep, 2011 1 commit
  9. 08 Aug, 2011 2 commits
  10. 12 Jun, 2011 1 commit
  11. 17 Dec, 2010 3 commits
  12. 11 Dec, 2010 1 commit
  13. 24 Nov, 2010 1 commit
  14. 11 Jul, 2010 1 commit
    • Isaku Yamahata's avatar
      pci: don't overwrite multi functio bit in pci header type. · b80d4a98
      Isaku Yamahata authored
      
      
      Don't overwrite pci header type.
      Otherwise, multi function bit which pci_init_header_type() sets
      appropriately is lost.
      Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero
      which is already zero cleared.
      
      how to test:
      run qemu and issue info pci to see whether a device in question is
      normal device, not pci-to-pci bridge.
      This is handy because guest os isn't required.
      
      tested changes:
      The following files are covered by using following commands.
      sparc64-softmmu
        apb_pci.c, vga-pci.c, cmd646.c, ne2k_pci.c, sun4u.c
      ppc-softmmu
        grackle_pci.c, cmd646.c, ne2k_pci.c, vga-pci.c, macio.c
      ppc-softmmu -M mac99
        unin_pci.c(uni-north, uni-north-agp)
      ppc64-softmmu
        pci-ohci, ne2k_pci, vga-pci, unin_pci.c(u3-agp)
      x86_64-softmmu
        acpi_piix4.c, ide/piix.c, piix_pci.c
        -vga vmware vmware_vga.c
        -watchdog i6300esb wdt_i6300esb.c
        -usb usb-uhci.c
        -sound ac97 ac97.c
        -nic model=rtl8139 rtl8139.c
        -nic model=pcnet pcnet.c
        -balloon virtio virtio-pci.c:
      
      untested changes:
      The following changes aren't tested.
      prep_pci.c: ppc-softmmu -M prep should cover, but core dumped.
      unin_pci.c(uni-north-pci): the caller is commented out.
      openpic.c: the caller is commented out in ppc_prep.c
      Signed-off-by: default avatarIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      b80d4a98
  15. 06 Jul, 2010 1 commit
  16. 04 Jun, 2010 1 commit
  17. 01 May, 2010 2 commits
  18. 23 Dec, 2009 1 commit
  19. 13 Dec, 2009 1 commit
    • Igor V. Kovalenko's avatar
      workaround for cmd646 bmdma register access while no dma is active · 90228ee3
      Igor V. Kovalenko authored
      
      
      This is a workaround only, and is a partial revert
      of a few changes to BMDMAState which removed pci_dev
      field on the way.
      
      - cmd646 pci_from_bm() expects bm->unit value to
      correspond with bm data being passed to callback
      as opaque pointer. This breaks when write to dma
      control register of second channel happens when no
      dma operation is in progress, so bm->unit is zero
      for second channel, and pci_from_bm() returns garbage
      pointer. Crash happens shortly after that while
      dereferencing that pointer.
      
      v0->v1: cleaned up dead code from pci_from_bm.
      Signed-off-by: default avatarIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      90228ee3
  20. 12 Dec, 2009 1 commit
  21. 09 Nov, 2009 2 commits
  22. 07 Nov, 2009 2 commits
  23. 27 Oct, 2009 1 commit
  24. 12 Oct, 2009 9 commits
  25. 07 Oct, 2009 1 commit
    • Markus Armbruster's avatar
      New qdev_init_nofail() · e23a1b33
      Markus Armbruster authored
      
      
      Like qdev_init(), but terminate program via hw_error() instead of
      returning an error value.
      
      Use it instead of qdev_init() where terminating the program on failure
      is okay, either because it's during machine construction, or because
      we know that failure can't happen.
      
      Because relying in the latter is somewhat unclean, and the former is
      not always obvious, it would be nice to go back to qdev_init() in the
      not-so-obvious cases, only with proper error handling.  I'm leaving
      that for another day, because it involves making sure that error
      values are properly checked by all callers.
      
      Patchworks-ID: 35168
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      e23a1b33