1. 03 7月, 2013 1 次提交
  2. 02 5月, 2013 1 次提交
    • E
      target-i386: Replace cpuid_*features fields with a feature word array · 0514ef2f
      Eduardo Habkost 提交于
      This replaces the feature-bit fields on both X86CPU and x86_def_t
      structs with an array.
      
      With this, we will be able to simplify code that simply does the same
      operation on all feature words (e.g. kvm_check_features_against_host(),
      filter_features_for_kvm(), add_flagname_to_bitmaps(), CPU feature-bit
      property lookup/registration, and the proposed "feature-words" property)
      
      The following field replacements were made on X86CPU and x86_def_t:
      
        (cpuid_)features         -> features[FEAT_1_EDX]
        (cpuid_)ext_features     -> features[FEAT_1_ECX]
        (cpuid_)ext2_features    -> features[FEAT_8000_0001_EDX]
        (cpuid_)ext3_features    -> features[FEAT_8000_0001_ECX]
        (cpuid_)ext4_features    -> features[FEAT_C000_0001_EDX]
        (cpuid_)kvm_features     -> features[FEAT_KVM]
        (cpuid_)svm_features     -> features[FEAT_SVM]
        (cpuid_)7_0_ebx_features -> features[FEAT_7_0_EBX]
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      0514ef2f
  3. 09 4月, 2013 1 次提交
  4. 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
  5. 19 12月, 2012 2 次提交
  6. 13 4月, 2012 1 次提交
  7. 14 3月, 2012 1 次提交
    • A
      kvmclock: Always register type · 03f48b07
      Andreas Färber 提交于
      Currently, the "kvmclock" type is only registered when kvm_enabled().
      
      This breaks when moving type registration to before command line
      parsing (so that QOM types can be used for CPU and machine).
      
      Since the QOM classes are lazy-initialized anyway and kvmclock_create()
      has another kvm_enabled() check, simply drop the KVM check in
      kvmclock_register_types().
      
      kvm-i8259, kvm-apic and kvm-ioapic do not suffer from such a check.
      
      Reviewed-by: please.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Reviewed-by: NJan Kiszka <jan.kiszka@siemens.com>
      Cc: Marcelo Tosatti <mtosatti@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      03f48b07
  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. 19 1月, 2012 1 次提交
  12. 14 1月, 2012 1 次提交
  13. 16 9月, 2011 2 次提交
  14. 05 8月, 2011 1 次提交
  15. 21 6月, 2011 1 次提交
  16. 02 5月, 2011 1 次提交
  17. 14 2月, 2011 1 次提交