1. 16 4月, 2013 1 次提交
  2. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  3. 05 4月, 2013 1 次提交
  4. 12 3月, 2013 1 次提交
  5. 01 3月, 2013 2 次提交
  6. 07 2月, 2013 1 次提交
  7. 02 2月, 2013 1 次提交
  8. 22 1月, 2013 1 次提交
  9. 15 1月, 2013 1 次提交
    • A
      cpu: Move cpu_index field to CPUState · 55e5c285
      Andreas Färber 提交于
      Note that target-alpha accesses this field from TCG, now using a
      negative offset. Therefore the field is placed last in CPUState.
      
      Pass PowerPCCPU to [kvm]ppc_fixup_cpu() to facilitate this change.
      
      Move common parts of mips cpu_state_reset() to mips_cpu_reset().
      
      Acked-by: Richard Henderson <rth@twiddle.net> (for alpha)
      [AF: Rebased onto ppc CPU subclasses and openpic changes]
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      55e5c285
  10. 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
  11. 19 12月, 2012 2 次提交
  12. 29 10月, 2012 1 次提交
    • Z
      Add USB option in machine options · 094b287f
      zhlcindy@gmail.com 提交于
      When -usb option is used, global varible usb_enabled is set.
      And all the plaform will create one USB controller according
      to this variable. In fact, global varibles make code hard
      to read.
      
      So this patch is to remove global variable usb_enabled and
      add USB option in machine options. All the plaforms will get
      USB option value from machine options.
      
      USB option of machine options will be set either by:
        * -usb
        * -machine type=pseries,usb=on
      
      Both these ways can work now. They both set USB option in
      machine options. In the future, the first way will be removed.
      Signed-off-by: NLi Zhang <zhlcindy@linux.vnet.ibm.com>
      Acked-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      094b287f
  13. 23 10月, 2012 2 次提交
    • 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
    • G
      serial: split serial.c · 488cb996
      Gerd Hoffmann 提交于
      Split serial.c into serial.c, serial.h and serial-isa.c.  While being at
      creating a serial.h header file move the serial prototypes from pc.h to
      the new serial.h.  The latter leads to s/pc.h/serial.h/ in tons of
      boards which just want the serial bits from pc.h
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      488cb996
  14. 20 6月, 2012 2 次提交
  15. 11 6月, 2012 1 次提交
  16. 05 6月, 2012 1 次提交
  17. 30 3月, 2012 1 次提交
  18. 17 3月, 2012 1 次提交
    • P
      hw/pxa2xx.c: Fix handling of pxa2xx_i2c variable offset within region · 14dd5faa
      Peter Maydell 提交于
      The pxa2xx I2C controller can have its registers at an arbitrary offset
      within the MemoryRegion it creates. We use this to create two controllers,
      one which covers a region of size 0x10000 with registers starting at an
      offset 0x1600 into that region, and a second one which covers a region
      of size just 0x100 with the registers starting at the base of the region.
      
      The implementation of this offsetting uses two qdev properties, "offset"
      (which sets the offset which must be subtracted from the address to
      get the offset into the actual register bank) and "size", which is the
      size of the MemoryRegion. We were actually using "offset" for two
      purposes: firstly the required one of handling the registers not being
      at the base of the MemoryRegion, and secondly as a workaround for a
      deficiency of QEMU. Until commit 5312bd8b, if a MemoryRegion was mapped
      at a non-page boundary, the address passed into the read and write
      functions would be the offset from the start of the page, not the
      offset from the start of the MemoryRegion. So when calculating the value
      to set the "offset" qdev property we included a rounding to a page
      boundary.
      
      Following commit 5312bd8b MemoryRegion read/write functions are now
      correctly passed the offset from the base of the region, and our
      workaround now means we're subtracting too much from addresses, resulting
      in warnings like "pxa2xx_i2c_read: Bad register 0xffffff90".
      The fix for this is simply to remove the rounding to a page boundary;
      this allows us to slightly simplify the expression since
        base - (base & (~region_size)) == base & region_size
      
      The qdev property "offset" itself must remain because it is still
      performing its primary job of handling register banks not being at
      the base of the MemoryRegion.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      14dd5faa
  19. 15 3月, 2012 1 次提交
  20. 15 2月, 2012 1 次提交
  21. 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
  22. 28 1月, 2012 3 次提交
  23. 04 1月, 2012 1 次提交
    • A
      vmstate, memory: decouple vmstate from memory API · c5705a77
      Avi Kivity 提交于
      Currently creating a memory region automatically registers it for
      live migration.  This differs from other state (which is enumerated
      in a VMStateDescription structure) and ties the live migration code
      into the memory core.
      
      Decouple the two by introducing a separate API, vmstate_register_ram(),
      for registering a RAM block for migration.  Currently the same
      implementation is reused, but later it can be moved into a separate list,
      and registrations can be moved to VMStateDescription blocks.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      c5705a77
  24. 28 11月, 2011 1 次提交
  25. 25 11月, 2011 4 次提交
  26. 14 11月, 2011 1 次提交
  27. 12 11月, 2011 1 次提交
  28. 17 10月, 2011 2 次提交
  29. 02 10月, 2011 2 次提交