1. 01 6月, 2013 2 次提交
    • L
      debugcon: make debug message more readable · e6ee2846
      liguang 提交于
      before change:
      Bdebugcon: write addr=0x0000 val=0x6f
      odebugcon: write addr=0x0000 val=0x6f
      odebugcon: write addr=0x0000 val=0x74
      tdebugcon: write addr=0x0000 val=0x69
      idebugcon: write addr=0x0000 val=0x6e
      ndebugcon: write addr=0x0000 val=0x67
      gdebugcon: write addr=0x0000 val=0x20
       debugcon: write addr=0x0000 val=0x66
      
      after change:
      B [debugcon: write addr=0x0000 val=0x6f]
      o [debugcon: write addr=0x0000 val=0x6f]
      o [debugcon: write addr=0x0000 val=0x74]
      t [debugcon: write addr=0x0000 val=0x69]
      i [debugcon: write addr=0x0000 val=0x6e]
      n [debugcon: write addr=0x0000 val=0x67]
      g [debugcon: write addr=0x0000 val=0x20]
        [debugcon: write addr=0x0000 val=0x66]
      Signed-off-by: Nliguang <lig.fnst@cn.fujitsu.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      e6ee2846
    • L
      debugcon: fix always print "addr=0x0, val=0x0" bug when use DEBUG_DEBUGCON · 8c1f72da
      liguang 提交于
      when use DEBUG_DEBUGCON, screen spits:
      debugcon: write addr=0x0000 val=0x00
      Rdebugcon: write addr=0x0000 val=0x00
      udebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
      idebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
      gdebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      odebugcon: write addr=0x0000 val=0x00
      pdebugcon: write addr=0x0000 val=0x00
      tdebugcon: write addr=0x0000 val=0x00
      idebugcon: write addr=0x0000 val=0x00
      odebugcon: write addr=0x0000 val=0x00
      ndebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      rdebugcon: write addr=0x0000 val=0x00
      odebugcon: write addr=0x0000 val=0x00
      mdebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      adebugcon: write addr=0x0000 val=0x00
      tdebugcon: write addr=0x0000 val=0x00
       debugcon: write addr=0x0000 val=0x00
      
      Oh, that's wrong, val is not always be 0.
      this bug caused by lack of length modifier
      for specifier 'x'.
      Signed-off-by: Nliguang <lig.fnst@cn.fujitsu.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      8c1f72da
  2. 16 4月, 2013 1 次提交
  3. 09 4月, 2013 2 次提交
  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. 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
  6. 04 1月, 2013 1 次提交
  7. 19 12月, 2012 1 次提交
  8. 15 2月, 2012 1 次提交
  9. 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
  10. 28 1月, 2012 1 次提交
  11. 22 8月, 2011 1 次提交
  12. 09 4月, 2010 1 次提交
  13. 08 1月, 2010 1 次提交
    • H
      debugcon: support for debugging consoles (e.g. Bochs port 0xe9) · c9f398e5
      H. Peter Anvin 提交于
      Add generic support for debugging consoles (simple I/O ports which
      when written to cause debugging output to be written to a target.)
      The current implementation matches Bochs' port 0xe9, allowing the same
      debugging code to be used for both Bochs and Qemu.
      
      There is no vm state associated with the debugging port, simply
      because it has none -- the entire interface is a single, stateless,
      write-only port.
      
      Most of the code was cribbed from the serial port driver.
      
      v2: removed non-ISA variants (they can be introduced when/if someone
      wants them, using code from the serial port); added configurable
      readback (Bochs returns 0xe9 on a read from this register, mimic that
      by default)  This retains the apparently somewhat controversial user
      friendly option, however.
      
      v3: reimplemented the user friendly option as a synthetic option
      ("-debugcon foo" basically ends up being a parser-level shorthand for
      "-chardev stdio,id=debugcon -device isa-debugcon,chardev=debugcon") --
      this dramatically reduced the complexity while keeping the same level
      of user friendliness.
      
      v4: spaces, not tabs.
      
      v5: update to match current top of tree.  Calling qemu_chr_open()
      already during parsing no longer works; defer until we are parsing the
      other console-like devices.
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c9f398e5