1. 15 11月, 2012 3 次提交
    • A
      qdev: Split up header so it can be used in cpu.h · 074a86fc
      Anthony Liguori 提交于
      Header file dependency is a frickin' nightmare right now.  cpu.h tends
      to get included in our 'include everything' header files but qdev also
      needs to include those headers mainly for qdev-properties since it knows
      about CharDriverState and friends.
      
      We can solve this for now by splitting out qdev.h along the same lines
      that we previously split the C file.  Then cpu.h just needs to include
      qdev-core.h.
      
      hw/qdev.h is split into following new headers:
          hw/qdev-core.h
          hw/qdev-properties.h
          hw/qdev-monitor.h
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      [ehabkost: re-add DEFINE_PROP_PCI_HOST_DEVADDR, that was removed on the
       original patch (by mistake, I guess)]
      [ehabkost: kill qdev_prop_set_vlan() declaration]
      [ehabkost: moved get_fw_dev_path() comment to the original location
       (I don't know why it was moved)]
      [ehabkost: removed qdev_exists() declaration]
      [ehabkost: keep using 'QemuOpts' instead of 'struct QemuOpts', as
       qdev-core.h includes qemu-option.h]
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      074a86fc
    • I
      Move qemu_irq typedef out of qemu-common.h · 5202ef94
      Igor Mammedov 提交于
      It's necessary for making CPU child of DEVICE without
      causing circular header deps.
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      [ehabkost: re-added the typedef to hw/irq.h after rebasing]
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      5202ef94
    • E
      qemu-common.h: Comment about usage rules · 04509ad9
      Eduardo Habkost 提交于
      Every time we make a tiny change on a header file, we often find
      circular header dependency problems. To avoid this nightmare, we need to
      stop including qemu-common.h from other headers, and we should gradually
      move the declarations from the catch-all qemu-common.h header to their
      specific headers.
      
      This simply adds a comment documenting the rules about qemu-common.h,
      hoping that people will see it before including qemu-common.h from other
      header files, and before adding more declarations to qemu-common.h.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      04509ad9
  2. 14 11月, 2012 16 次提交
  3. 13 11月, 2012 2 次提交
  4. 12 11月, 2012 15 次提交
  5. 11 11月, 2012 2 次提交
  6. 10 11月, 2012 2 次提交