Browse Source

qdev: Move softmmu properties to qdev-properties-system.h

Move the property types and property macros implemented in
qdev-properties-system.c to a new qdev-properties-system.h
header.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-16-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Eduardo Habkost 4 years ago
parent
commit
ce35e2295e
76 changed files with 158 additions and 75 deletions
  1. 1 0
      audio/audio.h
  2. 1 0
      hw/acpi/vmgenid.c
  3. 1 0
      hw/arm/pxa2xx.c
  4. 1 0
      hw/arm/strongarm.c
  5. 1 0
      hw/block/fdc.c
  6. 1 0
      hw/block/m25p80.c
  7. 1 0
      hw/block/nand.c
  8. 1 0
      hw/block/onenand.c
  9. 1 0
      hw/block/pflash_cfi01.c
  10. 1 0
      hw/block/pflash_cfi02.c
  11. 1 0
      hw/block/vhost-user-blk.c
  12. 1 0
      hw/char/avr_usart.c
  13. 1 0
      hw/char/bcm2835_aux.c
  14. 1 0
      hw/char/cadence_uart.c
  15. 1 0
      hw/char/cmsdk-apb-uart.c
  16. 1 0
      hw/char/debugcon.c
  17. 1 0
      hw/char/digic-uart.c
  18. 1 0
      hw/char/escc.c
  19. 1 0
      hw/char/etraxfs_ser.c
  20. 1 0
      hw/char/exynos4210_uart.c
  21. 1 0
      hw/char/grlib_apbuart.c
  22. 1 0
      hw/char/ibex_uart.c
  23. 1 0
      hw/char/imx_serial.c
  24. 1 0
      hw/char/ipoctal232.c
  25. 1 0
      hw/char/lm32_juart.c
  26. 1 0
      hw/char/lm32_uart.c
  27. 1 0
      hw/char/mcf_uart.c
  28. 1 0
      hw/char/milkymist-uart.c
  29. 1 0
      hw/char/nrf51_uart.c
  30. 1 0
      hw/char/parallel.c
  31. 1 0
      hw/char/pl011.c
  32. 1 0
      hw/char/renesas_sci.c
  33. 1 0
      hw/char/sclpconsole-lm.c
  34. 1 0
      hw/char/sclpconsole.c
  35. 1 0
      hw/char/serial-pci-multi.c
  36. 1 0
      hw/char/serial.c
  37. 1 0
      hw/char/spapr_vty.c
  38. 1 0
      hw/char/stm32f2xx_usart.c
  39. 1 0
      hw/char/terminal3270.c
  40. 1 0
      hw/char/virtio-console.c
  41. 1 0
      hw/char/xilinx_uartlite.c
  42. 1 0
      hw/core/qdev-properties-system.c
  43. 1 0
      hw/hyperv/vmbus.c
  44. 1 0
      hw/i386/kvm/i8254.c
  45. 1 0
      hw/ide/qdev.c
  46. 1 0
      hw/ipmi/ipmi_bmc_extern.c
  47. 1 0
      hw/ipmi/ipmi_bmc_sim.c
  48. 1 0
      hw/misc/allwinner-sid.c
  49. 1 0
      hw/misc/ivshmem.c
  50. 1 0
      hw/misc/mac_via.c
  51. 1 0
      hw/misc/sifive_u_otp.c
  52. 1 0
      hw/net/rocker/rocker.c
  53. 1 0
      hw/nvram/eeprom_at24c.c
  54. 1 0
      hw/nvram/spapr_nvram.c
  55. 1 0
      hw/pci-bridge/gen_pcie_root_port.c
  56. 1 0
      hw/pci/pci.c
  57. 1 0
      hw/ppc/pnv_pnor.c
  58. 1 0
      hw/rdma/vmw/pvrdma_main.c
  59. 1 0
      hw/rtc/mc146818rtc.c
  60. 1 0
      hw/scsi/scsi-disk.c
  61. 1 0
      hw/scsi/scsi-generic.c
  62. 1 0
      hw/scsi/vhost-user-scsi.c
  63. 1 0
      hw/sd/sd.c
  64. 1 0
      hw/usb/ccid-card-passthru.c
  65. 1 0
      hw/usb/dev-serial.c
  66. 1 0
      hw/usb/redirect.c
  67. 1 0
      hw/vfio/pci.c
  68. 1 0
      hw/virtio/vhost-user-fs.c
  69. 1 0
      hw/virtio/vhost-user-vsock.c
  70. 1 0
      hw/virtio/virtio-iommu-pci.c
  71. 1 0
      hw/xen/xen_pt.c
  72. 1 0
      include/hw/block/block.h
  73. 84 0
      include/hw/qdev-properties-system.h
  74. 0 75
      include/hw/qdev-properties.h
  75. 1 0
      include/net/net.h
  76. 1 0
      migration/migration.c

+ 1 - 0
audio/audio.h

@@ -28,6 +28,7 @@
 #include "qemu/queue.h"
 #include "qemu/queue.h"
 #include "qapi/qapi-types-audio.h"
 #include "qapi/qapi-types-audio.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 
 
 typedef void (*audio_callback_fn) (void *opaque, int avail);
 typedef void (*audio_callback_fn) (void *opaque, int avail);
 
 

+ 1 - 0
hw/acpi/vmgenid.c

@@ -19,6 +19,7 @@
 #include "hw/acpi/vmgenid.h"
 #include "hw/acpi/vmgenid.h"
 #include "hw/nvram/fw_cfg.h"
 #include "hw/nvram/fw_cfg.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "sysemu/reset.h"
 #include "sysemu/reset.h"
 
 

+ 1 - 0
hw/arm/pxa2xx.c

@@ -21,6 +21,7 @@
 #include "hw/i2c/i2c.h"
 #include "hw/i2c/i2c.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/ssi/ssi.h"
 #include "hw/ssi/ssi.h"
 #include "hw/sd/sd.h"
 #include "hw/sd/sd.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"

+ 1 - 0
hw/arm/strongarm.c

@@ -33,6 +33,7 @@
 #include "hw/boards.h"
 #include "hw/boards.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "strongarm.h"
 #include "strongarm.h"

+ 1 - 0
hw/block/fdc.c

@@ -36,6 +36,7 @@
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "hw/block/block.h"
 #include "hw/block/block.h"

+ 1 - 0
hw/block/m25p80.c

@@ -25,6 +25,7 @@
 #include "qemu/units.h"
 #include "qemu/units.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/ssi/ssi.h"
 #include "hw/ssi/ssi.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/bitops.h"
 #include "qemu/bitops.h"

+ 1 - 0
hw/block/nand.c

@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/block/flash.h"
 #include "hw/block/flash.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"

+ 1 - 0
hw/block/onenand.c

@@ -24,6 +24,7 @@
 #include "hw/block/flash.h"
 #include "hw/block/flash.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "exec/memory.h"
 #include "exec/memory.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"

+ 1 - 0
hw/block/pflash_cfi01.c

@@ -40,6 +40,7 @@
 #include "hw/block/block.h"
 #include "hw/block/block.h"
 #include "hw/block/flash.h"
 #include "hw/block/flash.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"

+ 1 - 0
hw/block/pflash_cfi02.c

@@ -36,6 +36,7 @@
 #include "hw/block/block.h"
 #include "hw/block/block.h"
 #include "hw/block/flash.h"
 #include "hw/block/flash.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "qemu/bitmap.h"
 #include "qemu/bitmap.h"

+ 1 - 0
hw/block/vhost-user-blk.c

@@ -22,6 +22,7 @@
 #include "qemu/cutils.h"
 #include "qemu/cutils.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/virtio/vhost.h"
 #include "hw/virtio/vhost.h"
 #include "hw/virtio/vhost-user-blk.h"
 #include "hw/virtio/vhost-user-blk.h"
 #include "hw/virtio/virtio.h"
 #include "hw/virtio/virtio.h"

+ 1 - 0
hw/char/avr_usart.c

@@ -24,6 +24,7 @@
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 
 
 static int avr_usart_can_receive(void *opaque)
 static int avr_usart_can_receive(void *opaque)
 {
 {

+ 1 - 0
hw/char/bcm2835_aux.c

@@ -24,6 +24,7 @@
 #include "hw/char/bcm2835_aux.h"
 #include "hw/char/bcm2835_aux.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/char/cadence_uart.c

@@ -32,6 +32,7 @@
 #include "hw/char/cadence_uart.h"
 #include "hw/char/cadence_uart.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-clock.h"
 #include "hw/qdev-clock.h"
+#include "hw/qdev-properties-system.h"
 #include "trace.h"
 #include "trace.h"
 
 
 #ifdef CADENCE_UART_ERR_DEBUG
 #ifdef CADENCE_UART_ERR_DEBUG

+ 1 - 0
hw/char/cmsdk-apb-uart.c

@@ -27,6 +27,7 @@
 #include "chardev/char-serial.h"
 #include "chardev/char-serial.h"
 #include "hw/char/cmsdk-apb-uart.h"
 #include "hw/char/cmsdk-apb-uart.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
+#include "hw/qdev-properties-system.h"
 
 
 REG32(DATA, 0)
 REG32(DATA, 0)
 REG32(STATE, 4)
 REG32(STATE, 4)

+ 1 - 0
hw/char/debugcon.c

@@ -30,6 +30,7 @@
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 
 #define TYPE_ISA_DEBUGCON_DEVICE "isa-debugcon"
 #define TYPE_ISA_DEBUGCON_DEVICE "isa-debugcon"

+ 1 - 0
hw/char/digic-uart.c

@@ -35,6 +35,7 @@
 
 
 #include "hw/char/digic-uart.h"
 #include "hw/char/digic-uart.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 
 
 enum {
 enum {
     ST_RX_RDY = (1 << 0),
     ST_RX_RDY = (1 << 0),

+ 1 - 0
hw/char/escc.c

@@ -25,6 +25,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/char/etraxfs_ser.c

@@ -25,6 +25,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "qemu/log.h"
 #include "qemu/log.h"

+ 1 - 0
hw/char/exynos4210_uart.c

@@ -32,6 +32,7 @@
 #include "hw/arm/exynos4210.h"
 #include "hw/arm/exynos4210.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 
 
 #include "trace.h"
 #include "trace.h"
 #include "qom/object.h"
 #include "qom/object.h"

+ 1 - 0
hw/char/grlib_apbuart.c

@@ -25,6 +25,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sparc/grlib.h"
 #include "hw/sparc/grlib.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/char/ibex_uart.c

@@ -30,6 +30,7 @@
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-clock.h"
 #include "hw/qdev-clock.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/char/imx_serial.c

@@ -22,6 +22,7 @@
 #include "hw/char/imx_serial.h"
 #include "hw/char/imx_serial.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/char/ipoctal232.c

@@ -12,6 +12,7 @@
 #include "hw/ipack/ipack.h"
 #include "hw/ipack/ipack.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/bitops.h"
 #include "qemu/bitops.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/char/lm32_juart.c

@@ -26,6 +26,7 @@
 
 
 #include "hw/char/lm32_juart.h"
 #include "hw/char/lm32_juart.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 
 enum {
 enum {

+ 1 - 0
hw/char/lm32_uart.c

@@ -25,6 +25,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "trace.h"
 #include "trace.h"

+ 1 - 0
hw/char/mcf_uart.c

@@ -13,6 +13,7 @@
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "hw/m68k/mcf.h"
 #include "hw/m68k/mcf.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/char/milkymist-uart.c

@@ -24,6 +24,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "trace.h"
 #include "trace.h"

+ 1 - 0
hw/char/nrf51_uart.c

@@ -18,6 +18,7 @@
 #include "hw/char/nrf51_uart.h"
 #include "hw/char/nrf51_uart.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "trace.h"
 #include "trace.h"
 
 

+ 1 - 0
hw/char/parallel.c

@@ -32,6 +32,7 @@
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "hw/char/parallel.h"
 #include "hw/char/parallel.h"
 #include "sysemu/reset.h"
 #include "sysemu/reset.h"

+ 1 - 0
hw/char/pl011.c

@@ -23,6 +23,7 @@
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "hw/qdev-clock.h"
 #include "hw/qdev-clock.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "qemu/log.h"
 #include "qemu/log.h"

+ 1 - 0
hw/char/renesas_sci.c

@@ -26,6 +26,7 @@
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/registerfields.h"
 #include "hw/registerfields.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/char/renesas_sci.h"
 #include "hw/char/renesas_sci.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 
 

+ 1 - 0
hw/char/sclpconsole-lm.c

@@ -23,6 +23,7 @@
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "hw/s390x/event-facility.h"
 #include "hw/s390x/event-facility.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/s390x/ebcdic.h"
 #include "hw/s390x/ebcdic.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/char/sclpconsole.c

@@ -20,6 +20,7 @@
 #include "hw/s390x/sclp.h"
 #include "hw/s390x/sclp.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/s390x/event-facility.h"
 #include "hw/s390x/event-facility.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "qom/object.h"
 #include "qom/object.h"

+ 1 - 0
hw/char/serial-pci-multi.c

@@ -33,6 +33,7 @@
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 
 
 #define PCI_SERIAL_MAX_PORTS 4
 #define PCI_SERIAL_MAX_PORTS 4

+ 1 - 0
hw/char/serial.c

@@ -36,6 +36,7 @@
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "trace.h"
 #include "trace.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 
 
 #define UART_LCR_DLAB	0x80	/* Divisor latch access bit */
 #define UART_LCR_DLAB	0x80	/* Divisor latch access bit */
 
 

+ 1 - 0
hw/char/spapr_vty.c

@@ -8,6 +8,7 @@
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr_vio.h"
 #include "hw/ppc/spapr_vio.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 
 #define VTERM_BUFSIZE   16
 #define VTERM_BUFSIZE   16

+ 1 - 0
hw/char/stm32f2xx_usart.c

@@ -26,6 +26,7 @@
 #include "hw/char/stm32f2xx_usart.h"
 #include "hw/char/stm32f2xx_usart.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
 #include "qemu/module.h"
 
 

+ 1 - 0
hw/char/terminal3270.c

@@ -16,6 +16,7 @@
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/s390x/3270-ccw.h"
 #include "hw/s390x/3270-ccw.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/char/virtio-console.c

@@ -16,6 +16,7 @@
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "trace.h"
 #include "trace.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/virtio/virtio-serial.h"
 #include "hw/virtio/virtio-serial.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qapi/qapi-events-char.h"
 #include "qapi/qapi-events-char.h"

+ 1 - 0
hw/char/xilinx_uartlite.c

@@ -26,6 +26,7 @@
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"

+ 1 - 0
hw/core/qdev-properties-system.c

@@ -12,6 +12,7 @@
 
 
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qapi/visitor.h"
 #include "qapi/visitor.h"
 #include "qapi/qapi-types-block.h"
 #include "qapi/qapi-types-block.h"

+ 1 - 0
hw/hyperv/vmbus.c

@@ -13,6 +13,7 @@
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/hyperv/hyperv.h"
 #include "hw/hyperv/hyperv.h"
 #include "hw/hyperv/vmbus.h"
 #include "hw/hyperv/vmbus.h"
 #include "hw/hyperv/vmbus-bridge.h"
 #include "hw/hyperv/vmbus-bridge.h"

+ 1 - 0
hw/i386/kvm/i8254.c

@@ -32,6 +32,7 @@
 #include "sysemu/runstate.h"
 #include "sysemu/runstate.h"
 #include "hw/timer/i8254.h"
 #include "hw/timer/i8254.h"
 #include "hw/timer/i8254_internal.h"
 #include "hw/timer/i8254_internal.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/ide/qdev.c

@@ -26,6 +26,7 @@
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "hw/ide/internal.h"
 #include "hw/ide/internal.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
 #include "sysemu/blockdev.h"
 #include "hw/block/block.h"
 #include "hw/block/block.h"

+ 1 - 0
hw/ipmi/ipmi_bmc_extern.c

@@ -35,6 +35,7 @@
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "hw/ipmi/ipmi.h"
 #include "hw/ipmi/ipmi.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/ipmi/ipmi_bmc_sim.c

@@ -30,6 +30,7 @@
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "hw/loader.h"
 #include "hw/loader.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 
 
 #define IPMI_NETFN_CHASSIS            0x00
 #define IPMI_NETFN_CHASSIS            0x00

+ 1 - 0
hw/misc/allwinner-sid.c

@@ -26,6 +26,7 @@
 #include "qemu/guest-random.h"
 #include "qemu/guest-random.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/misc/allwinner-sid.h"
 #include "hw/misc/allwinner-sid.h"
 #include "trace.h"
 #include "trace.h"
 
 

+ 1 - 0
hw/misc/ivshmem.c

@@ -23,6 +23,7 @@
 #include "qemu/cutils.h"
 #include "qemu/cutils.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msix.h"
 #include "hw/pci/msix.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"

+ 1 - 0
hw/misc/mac_via.c

@@ -28,6 +28,7 @@
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qemu/cutils.h"
 #include "qemu/cutils.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "trace.h"
 #include "trace.h"
 #include "qemu/log.h"
 #include "qemu/log.h"

+ 1 - 0
hw/misc/sifive_u_otp.c

@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/net/rocker/rocker.c

@@ -18,6 +18,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "hw/pci/msix.h"
 #include "hw/pci/msix.h"
 #include "net/net.h"
 #include "net/net.h"

+ 1 - 0
hw/nvram/eeprom_at24c.c

@@ -13,6 +13,7 @@
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "hw/i2c/i2c.h"
 #include "hw/i2c/i2c.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/nvram/spapr_nvram.c

@@ -39,6 +39,7 @@
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr_vio.h"
 #include "hw/ppc/spapr_vio.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 
 struct SpaprNvram {
 struct SpaprNvram {

+ 1 - 0
hw/pci-bridge/gen_pcie_root_port.c

@@ -16,6 +16,7 @@
 #include "hw/pci/msix.h"
 #include "hw/pci/msix.h"
 #include "hw/pci/pcie_port.h"
 #include "hw/pci/pcie_port.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qom/object.h"
 #include "qom/object.h"
 
 

+ 1 - 0
hw/pci/pci.c

@@ -31,6 +31,7 @@
 #include "hw/pci/pci_bus.h"
 #include "hw/pci/pci_bus.h"
 #include "hw/pci/pci_host.h"
 #include "hw/pci/pci_host.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/qemu-file-types.h"
 #include "migration/qemu-file-types.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"

+ 1 - 0
hw/ppc/pnv_pnor.c

@@ -17,6 +17,7 @@
 #include "hw/loader.h"
 #include "hw/loader.h"
 #include "hw/ppc/pnv_pnor.h"
 #include "hw/ppc/pnv_pnor.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 
 
 static uint64_t pnv_pnor_read(void *opaque, hwaddr addr, unsigned size)
 static uint64_t pnv_pnor_read(void *opaque, hwaddr addr, unsigned size)
 {
 {

+ 1 - 0
hw/rdma/vmw/pvrdma_main.c

@@ -21,6 +21,7 @@
 #include "hw/pci/msi.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msix.h"
 #include "hw/pci/msix.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "trace.h"
 #include "trace.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"

+ 1 - 0
hw/rtc/mc146818rtc.c

@@ -30,6 +30,7 @@
 #include "hw/acpi/aml-build.h"
 #include "hw/acpi/aml-build.h"
 #include "hw/irq.h"
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qemu/timer.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/replay.h"
 #include "sysemu/replay.h"

+ 1 - 0
hw/scsi/scsi-disk.c

@@ -34,6 +34,7 @@
 #include "sysemu/blockdev.h"
 #include "sysemu/blockdev.h"
 #include "hw/block/block.h"
 #include "hw/block/block.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "sysemu/dma.h"
 #include "sysemu/dma.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "qemu/cutils.h"
 #include "qemu/cutils.h"

+ 1 - 0
hw/scsi/scsi-generic.c

@@ -19,6 +19,7 @@
 #include "hw/scsi/scsi.h"
 #include "hw/scsi/scsi.h"
 #include "migration/qemu-file-types.h"
 #include "migration/qemu-file-types.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/scsi/emulation.h"
 #include "hw/scsi/emulation.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "trace.h"
 #include "trace.h"

+ 1 - 0
hw/scsi/vhost-user-scsi.c

@@ -21,6 +21,7 @@
 #include "hw/fw-path-provider.h"
 #include "hw/fw-path-provider.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/virtio/vhost.h"
 #include "hw/virtio/vhost.h"
 #include "hw/virtio/vhost-backend.h"
 #include "hw/virtio/vhost-backend.h"
 #include "hw/virtio/vhost-user-scsi.h"
 #include "hw/virtio/vhost-user-scsi.h"

+ 1 - 0
hw/sd/sd.c

@@ -42,6 +42,7 @@
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qemu/bitmap.h"
 #include "qemu/bitmap.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "qemu/timer.h"
 #include "qemu/timer.h"
 #include "qemu/log.h"
 #include "qemu/log.h"

+ 1 - 0
hw/usb/ccid-card-passthru.c

@@ -14,6 +14,7 @@
 #include <libcacard.h>
 #include <libcacard.h>
 #include "chardev/char-fe.h"
 #include "chardev/char-fe.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "qemu/module.h"
 #include "qemu/module.h"

+ 1 - 0
hw/usb/dev-serial.c

@@ -14,6 +14,7 @@
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "qemu/module.h"
 #include "qemu/module.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/usb.h"
 #include "hw/usb.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "desc.h"
 #include "desc.h"

+ 1 - 0
hw/usb/redirect.c

@@ -42,6 +42,7 @@
 #include <usbredirfilter.h>
 #include <usbredirfilter.h>
 
 
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/usb.h"
 #include "hw/usb.h"
 #include "migration/qemu-file-types.h"
 #include "migration/qemu-file-types.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"

+ 1 - 0
hw/vfio/pci.c

@@ -27,6 +27,7 @@
 #include "hw/pci/msix.h"
 #include "hw/pci/msix.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "migration/vmstate.h"
 #include "migration/vmstate.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "qemu/main-loop.h"
 #include "qemu/main-loop.h"

+ 1 - 0
hw/virtio/vhost-user-fs.c

@@ -16,6 +16,7 @@
 #include "standard-headers/linux/virtio_fs.h"
 #include "standard-headers/linux/virtio_fs.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/virtio/virtio-bus.h"
 #include "hw/virtio/virtio-bus.h"
 #include "hw/virtio/virtio-access.h"
 #include "hw/virtio/virtio-access.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"

+ 1 - 0
hw/virtio/vhost-user-vsock.c

@@ -13,6 +13,7 @@
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/virtio/vhost-user-vsock.h"
 #include "hw/virtio/vhost-user-vsock.h"
 
 
 static const int user_feature_bits[] = {
 static const int user_feature_bits[] = {

+ 1 - 0
hw/virtio/virtio-iommu-pci.c

@@ -14,6 +14,7 @@
 #include "virtio-pci.h"
 #include "virtio-pci.h"
 #include "hw/virtio/virtio-iommu.h"
 #include "hw/virtio/virtio-iommu.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
 #include "qom/object.h"
 #include "qom/object.h"

+ 1 - 0
hw/xen/xen_pt.c

@@ -58,6 +58,7 @@
 
 
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "hw/xen/xen.h"
 #include "hw/xen/xen.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/xen/xen-legacy-backend.h"
 #include "hw/xen/xen-legacy-backend.h"

+ 1 - 0
include/hw/block/block.h

@@ -13,6 +13,7 @@
 
 
 #include "exec/hwaddr.h"
 #include "exec/hwaddr.h"
 #include "qapi/qapi-types-block-core.h"
 #include "qapi/qapi-types-block-core.h"
+#include "hw/qdev-properties-system.h"
 
 
 /* Configuration */
 /* Configuration */
 
 

+ 84 - 0
include/hw/qdev-properties-system.h

@@ -0,0 +1,84 @@
+#ifndef HW_QDEV_PROPERTIES_SYSTEM_H
+#define HW_QDEV_PROPERTIES_SYSTEM_H
+
+#include "hw/qdev-properties.h"
+
+extern const PropertyInfo qdev_prop_chr;
+extern const PropertyInfo qdev_prop_macaddr;
+extern const PropertyInfo qdev_prop_reserved_region;
+extern const PropertyInfo qdev_prop_multifd_compression;
+extern const PropertyInfo qdev_prop_losttickpolicy;
+extern const PropertyInfo qdev_prop_blockdev_on_error;
+extern const PropertyInfo qdev_prop_bios_chs_trans;
+extern const PropertyInfo qdev_prop_fdc_drive_type;
+extern const PropertyInfo qdev_prop_drive;
+extern const PropertyInfo qdev_prop_drive_iothread;
+extern const PropertyInfo qdev_prop_netdev;
+extern const PropertyInfo qdev_prop_pci_devfn;
+extern const PropertyInfo qdev_prop_blocksize;
+extern const PropertyInfo qdev_prop_pci_host_devaddr;
+extern const PropertyInfo qdev_prop_uuid;
+extern const PropertyInfo qdev_prop_audiodev;
+extern const PropertyInfo qdev_prop_off_auto_pcibar;
+extern const PropertyInfo qdev_prop_pcie_link_speed;
+extern const PropertyInfo qdev_prop_pcie_link_width;
+
+#define DEFINE_PROP_PCI_DEVFN(_n, _s, _f, _d)                   \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pci_devfn, int32_t)
+
+#define DEFINE_PROP_CHR(_n, _s, _f)             \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharBackend)
+#define DEFINE_PROP_NETDEV(_n, _s, _f)             \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_netdev, NICPeers)
+#define DEFINE_PROP_DRIVE(_n, _s, _f) \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_drive, BlockBackend *)
+#define DEFINE_PROP_DRIVE_IOTHREAD(_n, _s, _f) \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_drive_iothread, BlockBackend *)
+#define DEFINE_PROP_MACADDR(_n, _s, _f)         \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, MACAddr)
+#define DEFINE_PROP_RESERVED_REGION(_n, _s, _f)         \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_reserved_region, ReservedRegion)
+#define DEFINE_PROP_MULTIFD_COMPRESSION(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_multifd_compression, \
+                       MultiFDCompression)
+#define DEFINE_PROP_LOSTTICKPOLICY(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_losttickpolicy, \
+                        LostTickPolicy)
+#define DEFINE_PROP_BLOCKDEV_ON_ERROR(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_blockdev_on_error, \
+                        BlockdevOnError)
+#define DEFINE_PROP_BIOS_CHS_TRANS(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_bios_chs_trans, int)
+#define DEFINE_PROP_BLOCKSIZE(_n, _s, _f) \
+    DEFINE_PROP_UNSIGNED(_n, _s, _f, 0, qdev_prop_blocksize, uint32_t)
+#define DEFINE_PROP_PCI_HOST_DEVADDR(_n, _s, _f) \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_pci_host_devaddr, PCIHostDeviceAddress)
+#define DEFINE_PROP_OFF_AUTO_PCIBAR(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_off_auto_pcibar, \
+                        OffAutoPCIBAR)
+#define DEFINE_PROP_PCIE_LINK_SPEED(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_speed, \
+                        PCIExpLinkSpeed)
+#define DEFINE_PROP_PCIE_LINK_WIDTH(_n, _s, _f, _d) \
+    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_width, \
+                        PCIExpLinkWidth)
+
+#define DEFINE_PROP_UUID(_name, _state, _field) {                  \
+        .name      = (_name),                                      \
+        .info      = &qdev_prop_uuid,                              \
+        .offset    = offsetof(_state, _field)                      \
+            + type_check(QemuUUID, typeof_field(_state, _field)),  \
+        .set_default = true,                                       \
+        }
+#define DEFINE_PROP_AUDIODEV(_n, _s, _f) \
+    DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard)
+
+#define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) {        \
+        .name      = (_name),                                      \
+        .info      = &qdev_prop_uuid,                              \
+        .offset    = offsetof(_state, _field)                      \
+            + type_check(QemuUUID, typeof_field(_state, _field)),  \
+        }
+
+
+#endif

+ 0 - 75
include/hw/qdev-properties.h

@@ -55,30 +55,11 @@ extern const PropertyInfo qdev_prop_uint64;
 extern const PropertyInfo qdev_prop_int64;
 extern const PropertyInfo qdev_prop_int64;
 extern const PropertyInfo qdev_prop_size;
 extern const PropertyInfo qdev_prop_size;
 extern const PropertyInfo qdev_prop_string;
 extern const PropertyInfo qdev_prop_string;
-extern const PropertyInfo qdev_prop_chr;
 extern const PropertyInfo qdev_prop_tpm;
 extern const PropertyInfo qdev_prop_tpm;
-extern const PropertyInfo qdev_prop_macaddr;
-extern const PropertyInfo qdev_prop_reserved_region;
 extern const PropertyInfo qdev_prop_on_off_auto;
 extern const PropertyInfo qdev_prop_on_off_auto;
-extern const PropertyInfo qdev_prop_multifd_compression;
-extern const PropertyInfo qdev_prop_losttickpolicy;
-extern const PropertyInfo qdev_prop_blockdev_on_error;
-extern const PropertyInfo qdev_prop_bios_chs_trans;
-extern const PropertyInfo qdev_prop_fdc_drive_type;
-extern const PropertyInfo qdev_prop_drive;
-extern const PropertyInfo qdev_prop_drive_iothread;
-extern const PropertyInfo qdev_prop_netdev;
-extern const PropertyInfo qdev_prop_pci_devfn;
 extern const PropertyInfo qdev_prop_size32;
 extern const PropertyInfo qdev_prop_size32;
-extern const PropertyInfo qdev_prop_blocksize;
-extern const PropertyInfo qdev_prop_pci_host_devaddr;
-extern const PropertyInfo qdev_prop_uuid;
 extern const PropertyInfo qdev_prop_arraylen;
 extern const PropertyInfo qdev_prop_arraylen;
-extern const PropertyInfo qdev_prop_audiodev;
 extern const PropertyInfo qdev_prop_link;
 extern const PropertyInfo qdev_prop_link;
-extern const PropertyInfo qdev_prop_off_auto_pcibar;
-extern const PropertyInfo qdev_prop_pcie_link_speed;
-extern const PropertyInfo qdev_prop_pcie_link_width;
 
 
 #define DEFINE_PROP(_name, _state, _field, _prop, _type) { \
 #define DEFINE_PROP(_name, _state, _field, _prop, _type) { \
         .name      = (_name),                                    \
         .name      = (_name),                                    \
@@ -209,68 +190,12 @@ extern const PropertyInfo qdev_prop_pcie_link_width;
     DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_int64, int64_t)
     DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_int64, int64_t)
 #define DEFINE_PROP_SIZE(_n, _s, _f, _d)                       \
 #define DEFINE_PROP_SIZE(_n, _s, _f, _d)                       \
     DEFINE_PROP_UNSIGNED(_n, _s, _f, _d, qdev_prop_size, uint64_t)
     DEFINE_PROP_UNSIGNED(_n, _s, _f, _d, qdev_prop_size, uint64_t)
-#define DEFINE_PROP_PCI_DEVFN(_n, _s, _f, _d)                   \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pci_devfn, int32_t)
-
-#define DEFINE_PROP_CHR(_n, _s, _f)             \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharBackend)
 #define DEFINE_PROP_STRING(_n, _s, _f)             \
 #define DEFINE_PROP_STRING(_n, _s, _f)             \
     DEFINE_PROP(_n, _s, _f, qdev_prop_string, char*)
     DEFINE_PROP(_n, _s, _f, qdev_prop_string, char*)
-#define DEFINE_PROP_NETDEV(_n, _s, _f)             \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_netdev, NICPeers)
-#define DEFINE_PROP_DRIVE(_n, _s, _f) \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_drive, BlockBackend *)
-#define DEFINE_PROP_DRIVE_IOTHREAD(_n, _s, _f) \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_drive_iothread, BlockBackend *)
-#define DEFINE_PROP_MACADDR(_n, _s, _f)         \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, MACAddr)
-#define DEFINE_PROP_RESERVED_REGION(_n, _s, _f)         \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_reserved_region, ReservedRegion)
 #define DEFINE_PROP_ON_OFF_AUTO(_n, _s, _f, _d) \
 #define DEFINE_PROP_ON_OFF_AUTO(_n, _s, _f, _d) \
     DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_on_off_auto, OnOffAuto)
     DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_on_off_auto, OnOffAuto)
-#define DEFINE_PROP_MULTIFD_COMPRESSION(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_multifd_compression, \
-                       MultiFDCompression)
-#define DEFINE_PROP_LOSTTICKPOLICY(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_losttickpolicy, \
-                        LostTickPolicy)
-#define DEFINE_PROP_BLOCKDEV_ON_ERROR(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_blockdev_on_error, \
-                        BlockdevOnError)
-#define DEFINE_PROP_BIOS_CHS_TRANS(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_bios_chs_trans, int)
 #define DEFINE_PROP_SIZE32(_n, _s, _f, _d)                       \
 #define DEFINE_PROP_SIZE32(_n, _s, _f, _d)                       \
     DEFINE_PROP_UNSIGNED(_n, _s, _f, _d, qdev_prop_size32, uint32_t)
     DEFINE_PROP_UNSIGNED(_n, _s, _f, _d, qdev_prop_size32, uint32_t)
-#define DEFINE_PROP_BLOCKSIZE(_n, _s, _f) \
-    DEFINE_PROP_UNSIGNED(_n, _s, _f, 0, qdev_prop_blocksize, uint32_t)
-#define DEFINE_PROP_PCI_HOST_DEVADDR(_n, _s, _f) \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_pci_host_devaddr, PCIHostDeviceAddress)
-#define DEFINE_PROP_OFF_AUTO_PCIBAR(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_off_auto_pcibar, \
-                        OffAutoPCIBAR)
-#define DEFINE_PROP_PCIE_LINK_SPEED(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_speed, \
-                        PCIExpLinkSpeed)
-#define DEFINE_PROP_PCIE_LINK_WIDTH(_n, _s, _f, _d) \
-    DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_width, \
-                        PCIExpLinkWidth)
-
-#define DEFINE_PROP_UUID(_name, _state, _field) {                  \
-        .name      = (_name),                                      \
-        .info      = &qdev_prop_uuid,                              \
-        .offset    = offsetof(_state, _field)                      \
-            + type_check(QemuUUID, typeof_field(_state, _field)),  \
-        .set_default = true,                                       \
-        }
-#define DEFINE_PROP_AUDIODEV(_n, _s, _f) \
-    DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard)
-
-#define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) {        \
-        .name      = (_name),                                      \
-        .info      = &qdev_prop_uuid,                              \
-        .offset    = offsetof(_state, _field)                      \
-            + type_check(QemuUUID, typeof_field(_state, _field)),  \
-        }
 
 
 #define DEFINE_PROP_END_OF_LIST()               \
 #define DEFINE_PROP_END_OF_LIST()               \
     {}
     {}

+ 1 - 0
include/net/net.h

@@ -4,6 +4,7 @@
 #include "qemu/queue.h"
 #include "qemu/queue.h"
 #include "qapi/qapi-types-net.h"
 #include "qapi/qapi-types-net.h"
 #include "net/queue.h"
 #include "net/queue.h"
+#include "hw/qdev-properties-system.h"
 
 
 #define MAC_FMT "%02X:%02X:%02X:%02X:%02X:%02X"
 #define MAC_FMT "%02X:%02X:%02X:%02X:%02X:%02X"
 #define MAC_ARG(x) ((uint8_t *)(x))[0], ((uint8_t *)(x))[1], \
 #define MAC_ARG(x) ((uint8_t *)(x))[0], ((uint8_t *)(x))[1], \

+ 1 - 0
migration/migration.c

@@ -52,6 +52,7 @@
 #include "migration/colo.h"
 #include "migration/colo.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
 #include "hw/qdev-properties.h"
 #include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"
 #include "net/announce.h"
 #include "net/announce.h"
 #include "qemu/queue.h"
 #include "qemu/queue.h"