1. 02 2月, 2013 2 次提交
  2. 30 1月, 2013 1 次提交
  3. 11 1月, 2013 1 次提交
    • A
      Make all static TypeInfos const · 8c43a6f0
      Andreas Färber 提交于
      Since 39bffca2 (qdev: register all
      types natively through QEMU Object Model), TypeInfo as used in
      the common, non-iterative pattern is no longer amended with information
      and should therefore be const.
      
      Fix the documented QOM examples:
      
       sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h
      
      Since frequently the wrong examples are being copied by contributors of
      new devices, fix all types in the tree:
      
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c
      
      This also avoids to piggy-back these changes onto real functional
      changes or other refactorings.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8c43a6f0
  4. 07 1月, 2013 2 次提交
  5. 19 12月, 2012 2 次提交
  6. 17 12月, 2012 1 次提交
  7. 03 12月, 2012 1 次提交
  8. 01 11月, 2012 2 次提交
  9. 23 10月, 2012 1 次提交
    • A
      Rename target_phys_addr_t to hwaddr · a8170e5e
      Avi Kivity 提交于
      target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
      reserved) and its purpose doesn't match the name (most target_phys_addr_t
      addresses are not target specific).  Replace it with a finger-friendly,
      standards conformant hwaddr.
      
      Outstanding patchsets can be fixed up with the command
      
        git rebase -i --exec 'find -name "*.[ch]"
                              | xargs s/target_phys_addr_t/hwaddr/g' origin
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a8170e5e
  10. 08 10月, 2012 1 次提交
  11. 14 9月, 2012 1 次提交
  12. 01 8月, 2012 2 次提交
  13. 23 7月, 2012 1 次提交
  14. 04 7月, 2012 1 次提交
  15. 25 4月, 2012 7 次提交
  16. 20 4月, 2012 1 次提交
  17. 15 2月, 2012 1 次提交
  18. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      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: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  19. 28 1月, 2012 3 次提交
  20. 27 1月, 2012 1 次提交
  21. 23 1月, 2012 1 次提交
  22. 13 12月, 2011 1 次提交
  23. 02 11月, 2011 1 次提交
  24. 23 9月, 2011 1 次提交
    • D
      e1000: Don't set the Capabilities List bit · dd8e9379
      dann frazier 提交于
      [Originally sent to qemu-kvm list, but I was redirected here]
      
      The Capabilities Pointer is NULL, so this bit shouldn't be set. The state of
      this bit doesn't appear to change any behavior on Linux/Windows versions we've
      tested, but it does cause Windows' PCI/PCI Express Compliance Test to balk.
      
      I happen to have a physical 82540EM controller, and it also sets the
      Capabilities Bit, but it actually has items on the capabilities list to go
      with it :)
      Signed-off-by: Ndann frazier <dann.frazier@canonical.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dd8e9379
  25. 20 9月, 2011 1 次提交
  26. 22 8月, 2011 1 次提交
    • B
      e1000: use MII status register for link up/down · d4044c2a
      Bjørn Mork 提交于
      Some guests will use the standard MII status register
      to verify link state.  They will not notice link changes
      unless this register is updated.
      
      Verified with Linux 3.0 and Windows XP guests.
      
      Without this patch, ethtool will report speed and duplex as
      unknown when the link is down, but still report the link as
      up.  This is because the Linux e1000 driver checks the
      mac_reg[STATUS] register link state before it checks speed
      and duplex, but uses the phy_reg[PHY_STATUS] register for
      the actual link state check.  Fix by updating both registers
      on link state changes.
      
      Linux guest before:
      
       (qemu) set_link e1000.0 off
      
       kvm-sid:~# ethtool eth0
       Settings for eth0:
              Supported ports: [ TP ]
              Supported link modes:   10baseT/Half 10baseT/Full
                                      100baseT/Half 100baseT/Full
                                      1000baseT/Full
              Supports auto-negotiation: Yes
              Advertised link modes:  10baseT/Half 10baseT/Full
                                      100baseT/Half 100baseT/Full
                                      1000baseT/Full
              Advertised pause frame use: No
              Advertised auto-negotiation: Yes
              Speed: Unknown!
              Duplex: Unknown! (255)
              Port: Twisted Pair
              PHYAD: 0
              Transceiver: internal
              Auto-negotiation: on
              MDI-X: Unknown
              Supports Wake-on: umbg
              Wake-on: d
              Current message level: 0x00000007 (7)
                                     drv probe link
              Link detected: yes
      
       (qemu) set_link e1000.0 on
      
      Linux guest after:
      
       (qemu) set_link e1000.0 off
       [   63.384221] e1000: eth0 NIC Link is Down
      
       kvm-sid:~# ethtool eth0
       Settings for eth0:
              Supported ports: [ TP ]
              Supported link modes:   10baseT/Half 10baseT/Full
                                      100baseT/Half 100baseT/Full
                                      1000baseT/Full
              Supports auto-negotiation: Yes
              Advertised link modes:  10baseT/Half 10baseT/Full
                                      100baseT/Half 100baseT/Full
                                      1000baseT/Full
              Advertised pause frame use: No
              Advertised auto-negotiation: Yes
              Speed: Unknown!
              Duplex: Unknown! (255)
              Port: Twisted Pair
              PHYAD: 0
              Transceiver: internal
              Auto-negotiation: on
              MDI-X: Unknown
              Supports Wake-on: umbg
              Wake-on: d
              Current message level: 0x00000007 (7)
                                     drv probe link
              Link detected: no
      
       (qemu) set_link e1000.0 on
       [   84.304582] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d4044c2a
  27. 08 8月, 2011 1 次提交