1. 02 10月, 2009 1 次提交
  2. 27 9月, 2009 4 次提交
  3. 12 9月, 2009 1 次提交
  4. 10 9月, 2009 2 次提交
    • N
      Fix for commit 3f9cb1c1 · 0859df68
      Naphtali Sprei 提交于
      Here's a patch to fix the issue introduced by me, as Reimar Döffinger pointed out,
      
      Reimar Döffinger wrote:
      > On Thu, Aug 13, 2009 at 03:01:20PM +0300, Naphtali Sprei wrote:
      >> Bug fix for segfault when run as i82551 HW:
      >> Use Extended TBD only when HW supports it (i82558 and up).
      >>
      >> Added assertions to guard from such buffer overflow
      >> Introduce the MAX_TCB_BYTE_COUNT macro
      >> Allocate buf big enough as HW needs (MAX_ETH_FRAME_SIZE -> MAX_TCB_BYTE_COUNT)
      >>
      >>
      >> I don't feel 100% OK with the "s->device >= i82558B" condition
      >> since it relies on the numeric (hex) value of those defines, which currently
      >> is correct, but changes (which I don't forsee now) might break it.
      >
      > It seems this was applied. Unfortunately this breaks things on FreeBSD.
      > There seem to be multiple issues.
      > First, the intel document says the 82551, 82550, 82559 models are all
      > supersets of the 82558. Or in other words: they all support this
      > feature.
      > Only the 82557 does not.
      > But then even for that the FreeBSD driver will fail.
      > The reason for that is this line:
      >     eeprom_contents[0xa] = 0x4000;
      > the value here must be 0x01000 for all 82557 models it seems.
      
       Correct the logic of determining devices that supports
       extended TxCB: only the 82557 do not support it.
      Signed-off-by: NNaphtali Sprei <nsprei@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0859df68
    • S
      eepro100: Clean code which sets the PCI device id · d6fd1e66
      Stefan Weil 提交于
      * Use function pci_config_set_device_id
      * Use new macro PCI_DEVICE_ID_INTEL_82557
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d6fd1e66
  5. 04 9月, 2009 1 次提交
    • A
      Remove typedef for bool from eepro100.c · b84a5c6f
      Amit Shah 提交于
      eepro100.c shouldn't have the need to do this in its local header file.
      
      And I recently started getting this:
      
      $ make -j3
      ...
        CC    x86_64-softmmu/eepro100.o
      /home/amit/src/qemu/hw/eepro100.c:112: error: two or more data types
      in declaration specifiers
      /home/amit/src/qemu/hw/eepro100.c:112: warning: useless type name in
      empty declaration
      make[1]: *** [eepro100.o] Error 1
      
      so just remove the typedef and include <stdbool.h> instead.
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b84a5c6f
  6. 28 8月, 2009 6 次提交
  7. 26 8月, 2009 1 次提交
  8. 17 7月, 2009 1 次提交
  9. 09 7月, 2009 1 次提交
  10. 30 6月, 2009 1 次提交
  11. 17 6月, 2009 2 次提交
  12. 09 6月, 2009 4 次提交
  13. 22 5月, 2009 1 次提交
    • 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
  14. 15 5月, 2009 1 次提交
  15. 14 5月, 2009 2 次提交
  16. 01 5月, 2009 1 次提交
  17. 18 4月, 2009 2 次提交
  18. 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
  19. 17 3月, 2009 1 次提交
  20. 13 3月, 2009 1 次提交
  21. 11 2月, 2009 1 次提交
  22. 02 2月, 2009 1 次提交
  23. 26 1月, 2009 1 次提交
  24. 08 1月, 2009 2 次提交