1. 09 4月, 2013 2 次提交
  2. 22 3月, 2013 1 次提交
  3. 09 3月, 2013 1 次提交
  4. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  5. 24 1月, 2013 1 次提交
    • M
      Revert "serial: fix retry logic" · b37a2e45
      Michael Tokarev 提交于
      This reverts commit 67c5322d:
      
          I'm not sure if the retry logic has ever worked when not using FIFO mode.  I
          found this while writing a test case although code inspection confirms it is
          definitely broken.
      
          The TSR retry logic will never actually happen because it is guarded by an
          'if (s->tsr_rety > 0)' but this is the only place that can ever make the
          variable greater than zero.  That effectively makes the retry logic an 'if (0)
      
          I believe this is a typo and the intention was >= 0.  Once this is fixed thoug
          I see double transmits with my test case.  This is because in the non FIFO
          case, serial_xmit may get invoked while LSR.THRE is still high because the
          character was processed but the retransmit timer was still active.
      
          We can handle this by simply checking for LSR.THRE and returning early.  It's
          possible that the FIFO paths also need some attention.
      
          Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      Even if the previous logic was never worked, new logic breaks stuff -
      namely,
      
       qemu -enable-kvm -nographic -kernel /boot/vmlinuz-$(uname -r) -append console=ttyS0 -serial pty
      
      the above command will cause the virtual machine to stuck at startup
      using 100% CPU till one connects to the pty and sends any char to it.
      
      Note this is rather typical invocation for various headless virtual
      machines by libvirt.
      
      So revert this change for now, till a better solution will be found.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b37a2e45
  6. 19 12月, 2012 3 次提交
  7. 04 12月, 2012 1 次提交
  8. 29 10月, 2012 1 次提交
  9. 23 10月, 2012 3 次提交
  10. 02 4月, 2012 2 次提交
    • A
      serial: clear LSR.TEMT when populating the TSR · dfe844c9
      Anthony Liguori 提交于
      We never actually clear the TEMT (transmit sending register empty) flag when
      populating the TSR.  We set the flag, but since it's never cleared, setting it
      is sort of pointless..
      
      I found this with a unit test case.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dfe844c9
    • A
      serial: fix retry logic · 67c5322d
      Anthony Liguori 提交于
      I'm not sure if the retry logic has ever worked when not using FIFO mode.  I
      found this while writing a test case although code inspection confirms it is
      definitely broken.
      
      The TSR retry logic will never actually happen because it is guarded by an
      'if (s->tsr_rety > 0)' but this is the only place that can ever make the
      variable greater than zero.  That effectively makes the retry logic an 'if (0)'.
      
      I believe this is a typo and the intention was >= 0.  Once this is fixed though,
      I see double transmits with my test case.  This is because in the non FIFO
      case, serial_xmit may get invoked while LSR.THRE is still high because the
      character was processed but the retransmit timer was still active.
      
      We can handle this by simply checking for LSR.THRE and returning early.  It's
      possible that the FIFO paths also need some attention.
      
      Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      67c5322d
  11. 25 2月, 2012 1 次提交
  12. 15 2月, 2012 1 次提交
  13. 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
  14. 28 1月, 2012 1 次提交
  15. 02 10月, 2011 4 次提交
  16. 25 9月, 2011 1 次提交
  17. 22 8月, 2011 2 次提交
  18. 21 8月, 2011 1 次提交
  19. 21 3月, 2011 1 次提交
    • P
      change all other clock references to use nanosecond resolution accessors · 74475455
      Paolo Bonzini 提交于
      This was done with:
      
          sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \
              $(git grep -l 'qemu_get_clock\>' )
          sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \
              $(git grep -l 'qemu_new_timer\>' )
      
      after checking that get_clock and new_timer never occur twice
      on the same line.  There were no missed occurrences; however, even
      if there had been, they would have been caught by the compiler.
      
      There was exactly one false positive in qemu_run_timers:
      
           -    current_time = qemu_get_clock (clock);
           +    current_time = qemu_get_clock_ns (clock);
      
      which is of course not in this patch.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      74475455
  20. 20 2月, 2011 1 次提交
  21. 12 12月, 2010 1 次提交
  22. 11 12月, 2010 1 次提交
    • A
      Add endianness as io mem parameter · 2507c12a
      Alexander Graf 提交于
      As stated before, devices can be little, big or native endian. The
      target endianness is not of their concern, so we need to push things
      down a level.
      
      This patch adds a parameter to cpu_register_io_memory that allows a
      device to choose its endianness. For now, all devices simply choose
      native endian, because that's the same behavior as before.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2507c12a
  23. 15 9月, 2010 1 次提交
  24. 14 9月, 2010 1 次提交
  25. 13 9月, 2010 1 次提交
  26. 06 7月, 2010 1 次提交
  27. 04 6月, 2010 1 次提交
  28. 15 5月, 2010 1 次提交
  29. 22 3月, 2010 1 次提交
  30. 07 3月, 2010 1 次提交