[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] ea9ce8: hw: apply accel compat properties wit
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] ea9ce8: hw: apply accel compat properties without touching... |
Date: |
Mon, 07 Jan 2019 08:55:50 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f
https://github.com/qemu/qemu/commit/ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M accel/accel.c
M hw/core/qdev.c
M hw/xen/xen-common.c
M include/hw/qdev-core.h
M include/qom/object.h
M include/sysemu/accel.h
M qom/object.c
M vl.c
Log Message:
-----------
hw: apply accel compat properties without touching globals
Instead of registering compat properties as globals, let's keep them
in their own array, to avoid mixing with user globals.
Introduce object_apply_global_props() function, to apply compatibility
properties from a GPtrArray.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: fa386d989d0bec0abdcd1a883853071928adcced
https://github.com/qemu/qemu/commit/fa386d989d0bec0abdcd1a883853071928adcced
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
Log Message:
-----------
machines: replace COMPAT define with a static array
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: b66bbee39f6deb28f0645760c536cbf2189a0687
https://github.com/qemu/qemu/commit/b66bbee39f6deb28f0645760c536cbf2189a0687
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/core/qdev.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M vl.c
Log Message:
-----------
hw: apply machine compat properties without touching globals
Similarly to accel properties, move compat properties out of globals
registration, and apply the machine compat properties during
device_post_init().
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 88cbe0737401843c550f79f611193455c6380bcc
https://github.com/qemu/qemu/commit/88cbe0737401843c550f79f611193455c6380bcc
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M hw/xen/xen-common.c
Log Message:
-----------
machine: move compat properties out of globals
Move the compat arrays inside functions that use them.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 638b47412b855867cffd291d16673f01f414882c
https://github.com/qemu/qemu/commit/638b47412b855867cffd291d16673f01f414882c
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M include/hw/boards.h
Log Message:
-----------
hw: remove SET_MACHINE_COMPAT
No longer needed.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: abd93cc7df8521d463c24b2106fdde4f40a3fdd5
https://github.com/qemu/qemu/commit/abd93cc7df8521d463c24b2106fdde4f40a3fdd5
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_3_1 & HW_COMPAT_3_1 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: ddb3235de10a9a480b7a83a2ecee2ca9040ba845
https://github.com/qemu/qemu/commit/ddb3235de10a9a480b7a83a2ecee2ca9040ba845
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_3_0 & HW_COMPAT_3_0 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 0d47310b031e62883faf38a6fda6e262a2f00d7a
https://github.com/qemu/qemu/commit/0d47310b031e62883faf38a6fda6e262a2f00d7a
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_12 & HW_COMPAT_2_12 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 43df70a9ddfc40961188bf1c6f67fed3b899b8da
https://github.com/qemu/qemu/commit/43df70a9ddfc40961188bf1c6f67fed3b899b8da
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_11 & HW_COMPAT_2_11 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 503224f4c8d1469ea9c00a2017334a455044d822
https://github.com/qemu/qemu/commit/503224f4c8d1469ea9c00a2017334a455044d822
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_10 & HW_COMPAT_2_10 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 3e8031525a7431bef796692cc626b2a69a697018
https://github.com/qemu/qemu/commit/3e8031525a7431bef796692cc626b2a69a697018
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_9 & HW_COMPAT_2_9 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: edc24ccda4bb4357304bad7910a5039d2dac8daf
https://github.com/qemu/qemu/commit/edc24ccda4bb4357304bad7910a5039d2dac8daf
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_8 & HW_COMPAT_2_8 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 5a995064dbaf64c0bbc45ce8745ab4e49c434b37
https://github.com/qemu/qemu/commit/5a995064dbaf64c0bbc45ce8745ab4e49c434b37
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_7 & HW_COMPAT_2_7 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: ff8f261f113b55d3eb83ea9163d70a0f1ea36daa
https://github.com/qemu/qemu/commit/ff8f261f113b55d3eb83ea9163d70a0f1ea36daa
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_6 & HW_COMPAT_2_6 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: fe759610d5aa2d1e5311398ea3a4b45833a2b619
https://github.com/qemu/qemu/commit/fe759610d5aa2d1e5311398ea3a4b45833a2b619
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_5 & HW_COMPAT_2_5 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 2f99b9c273ded76211ddb445b273ce854d469033
https://github.com/qemu/qemu/commit/2f99b9c273ded76211ddb445b273ce854d469033
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_4 & HW_COMPAT_2_4 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 8995dd9009a4f0845393c102098dc94e14806c37
https://github.com/qemu/qemu/commit/8995dd9009a4f0845393c102098dc94e14806c37
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/ppc/spapr.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_3 & HW_COMPAT_2_3 macros
Use static arrays instead. I decided to rename the conflicting
pc_compat_2_3() function with pc_compat_2_3_fn().
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 1c30044e1aba56066eb6a51a788ce6a15a8faa8f
https://github.com/qemu/qemu/commit/1c30044e1aba56066eb6a51a788ce6a15a8faa8f
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/ppc/spapr.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_2 & HW_COMPAT_2_2 macros
Use static arrays instead. I decided to rename the conflicting
pc_compat_2_2() function with pc_compat_2_2_fn().
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: c4fc5695b770b597dfbed9271c7d7080311e0097
https://github.com/qemu/qemu/commit/c4fc5695b770b597dfbed9271c7d7080311e0097
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/machine.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/ppc/spapr.c
M include/hw/boards.h
M include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
compat: replace PC_COMPAT_2_1 & HW_COMPAT_2_1 macros
Use static arrays instead. I decided to rename the conflicting
pc_compat_2_1() function with pc_compat_2_1_fn().
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: a1c3c562e284bf4deb433e9904660564e0900953
https://github.com/qemu/qemu/commit/a1c3c562e284bf4deb433e9904660564e0900953
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/arm/virt.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
R include/hw/compat.h
M include/hw/i386/pc.h
Log Message:
-----------
include: remove compat.h
The header is now empty.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: a310e653ce0e3effc9a27c3b10018d2d29bf566c
https://github.com/qemu/qemu/commit/a310e653ce0e3effc9a27c3b10018d2d29bf566c
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/i386/pc.c
M hw/i386/pc_piix.c
M include/hw/i386/pc.h
Log Message:
-----------
compat: remove remaining PC_COMPAT macros
Use static arrays instead. I decided to rename the conflicting
pc_compat_2_1() function with pc_compat_2_1_fn().
Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 1c3994f6d2afa1ced3058aa707d43e44ca96cfc8
https://github.com/qemu/qemu/commit/1c3994f6d2afa1ced3058aa707d43e44ca96cfc8
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/qdev.c
M include/hw/qdev-core.h
Log Message:
-----------
qdev: make a separate helper function to apply compat properties
This will allow to apply compat properties on other objects than QDev easily.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 55df8e1a2ffe876c1884353a97e7054b4b53d1ac
https://github.com/qemu/qemu/commit/55df8e1a2ffe876c1884353a97e7054b4b53d1ac
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/qdev-properties.c
M include/hw/qdev-core.h
M tests/test-qdev-global-props.c
M vl.c
Log Message:
-----------
qdev: all globals are now user-provided
All globals are now either provided via -global or through -cpu
features (CPU features are implemented by registering globals).
If the global isn't being used, it should warn in either case.
We can thus consider that all global_props are "user-provided"
globals. No need to track this per-globals anymore.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: e12ca3ce1cdb33120777c30eb50f414cdd228704
https://github.com/qemu/qemu/commit/e12ca3ce1cdb33120777c30eb50f414cdd228704
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/qdev-properties.c
Log Message:
-----------
qdev-props: convert global_props to GPtrArray
A step towards being able to call a common function,
object_apply_global_props().
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: cff8b715c0c881fb0f5e79e079f4cfb529e0b0af
https://github.com/qemu/qemu/commit/cff8b715c0c881fb0f5e79e079f4cfb529e0b0af
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/qdev-properties.c
M include/hw/qdev-core.h
M qom/cpu.c
M target/i386/cpu.c
M target/sparc/cpu.c
M vl.c
Log Message:
-----------
qdev-props: remove errp from GlobalProperty
All qdev_prop_register_global() set &error_fatal for errp, except
'-rtc driftfix=slew', which arguably should also use &error_fatal, as
otherwise failing to apply the property would only report a warning.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 50545b2cc02942c1019edf5ecc79fa192c655295
https://github.com/qemu/qemu/commit/50545b2cc02942c1019edf5ecc79fa192c655295
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M hw/core/qdev-properties.c
M qom/object.c
Log Message:
-----------
qdev-props: call object_apply_global_props()
It's now possible to use the common function.
Teach object_apply_global_props() to warn if Error argument is NULL.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 51e5ef459eca045d7e8afe880ee60190f0b75b26
https://github.com/qemu/qemu/commit/51e5ef459eca045d7e8afe880ee60190f0b75b26
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M target/arm/cpu-qom.h
M target/arm/cpu.c
M target/arm/cpu.h
M target/arm/cpu64.c
Log Message:
-----------
arm: replace instance_post_init()
Replace arm_cpu_post_init() instance callback by calling it from leaf
classes, to avoid potential ordering issue with other post_init callbacks.
Signed-off-by: Marc-André Lureau <address@hidden>
Suggested-by: Igor Mammedov <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: fa0cb34d2210cc749b9a70db99bb41c56ad20831
https://github.com/qemu/qemu/commit/fa0cb34d2210cc749b9a70db99bb41c56ad20831
Author: Marc-André Lureau <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M backends/hostmem-file.c
M backends/hostmem-memfd.c
M backends/hostmem-ram.c
M backends/hostmem.c
M hw/core/machine.c
M include/sysemu/hostmem.h
Log Message:
-----------
hostmem: use object id for memory region name with >= 4.0
hostmem-file and hostmem-memfd use the whole object path for the
memory region name, and hostname-ram uses only the path component (the
object id, or canonical path basename):
qemu -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/tmp/foo -numa
node,memdev=mem -monitor stdio
(qemu) info ramblock
Block Name PSize Offset Used
Total
/objects/mem 4 KiB 0x0000000000000000 0x0000000040000000
0x0000000040000000
qemu -m 1024 -object memory-backend-memfd,id=mem,size=1G -numa node,memdev=mem
-monitor stdio
(qemu) info ramblock
Block Name PSize Offset Used
Total
/objects/mem 4 KiB 0x0000000000000000 0x0000000040000000
0x0000000040000000
qemu -m 1024 -object memory-backend-ram,id=mem,size=1G -numa node,memdev=mem
-monitor stdio
(qemu) info ramblock
Block Name PSize Offset Used
Total
mem 4 KiB 0x0000000000000000 0x0000000040000000
0x0000000040000000
For consistency, change to use object id for -file and -memfd as well
with >= 4.0.
Having a consistent naming allows to migrate to different hostmem
backends.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Acked-by: Eduardo Habkost <address@hidden>
Commit: 31ed41889e6e13699871040fe089a2884dca46cb
https://github.com/qemu/qemu/commit/31ed41889e6e13699871040fe089a2884dca46cb
Author: Peter Maydell <address@hidden>
Date: 2019-01-07 (Mon, 07 Jan 2019)
Changed paths:
M accel/accel.c
M backends/hostmem-file.c
M backends/hostmem-memfd.c
M backends/hostmem-ram.c
M backends/hostmem.c
M hw/arm/virt.c
M hw/core/machine.c
M hw/core/qdev-properties.c
M hw/core/qdev.c
M hw/i386/pc.c
M hw/i386/pc_piix.c
M hw/i386/pc_q35.c
M hw/ppc/spapr.c
M hw/s390x/s390-virtio-ccw.c
M hw/xen/xen-common.c
M include/hw/boards.h
R include/hw/compat.h
M include/hw/i386/pc.h
M include/hw/qdev-core.h
M include/qom/object.h
M include/sysemu/accel.h
M include/sysemu/hostmem.h
M qom/cpu.c
M qom/object.c
M target/arm/cpu-qom.h
M target/arm/cpu.c
M target/arm/cpu.h
M target/arm/cpu64.c
M target/i386/cpu.c
M target/sparc/cpu.c
M tests/test-qdev-global-props.c
M vl.c
Log Message:
-----------
Merge remote-tracking branch
'remotes/elmarco/tags/machine-props-pull-request' into staging
Generalize machine compatibility properties
During "[PATCH v2 05/10] qom/globals: generalize
object_property_set_globals()" review, Eduardo suggested to rework the
GlobalProperty handling, so that -global is limited to QDev only and
we avoid mixing the machine compats and the user-provided -global
properties (instead of generalizing -global to various object kinds,
like I proposed in v2).
"qdev: do not mix compat props with global props" patch decouples a
bit user-provided -global from machine compat properties. This allows
to get rid of "user_provided" and "errp" fields in following patches.
A new compat property "x-use-canonical-path-for-ramblock-id" is added
to hostmem for legacy canonical path names, set to true for -file and
-memfd with qemu < 4.0.
(this series was initially titled "[PATCH v2 00/10] hostmem: use
object "id" for memory region name with >= 3.1", but its focus is more
in refactoring the global and compatilibity properties handling now)
# gpg: Signature made Mon 07 Jan 2019 12:22:43 GMT
# gpg: using RSA key DAE8E10975969CE5
# gpg: Good signature from "Marc-André Lureau <address@hidden>"
# gpg: aka "Marc-André Lureau <address@hidden>"
# Primary key fingerprint: 87A9 BD93 3F87 C606 D276 F62D DAE8 E109 7596 9CE5
* remotes/elmarco/tags/machine-props-pull-request: (28 commits)
hostmem: use object id for memory region name with >= 4.0
arm: replace instance_post_init()
qdev-props: call object_apply_global_props()
qdev-props: remove errp from GlobalProperty
qdev-props: convert global_props to GPtrArray
qdev: all globals are now user-provided
qdev: make a separate helper function to apply compat properties
compat: remove remaining PC_COMPAT macros
include: remove compat.h
compat: replace PC_COMPAT_2_1 & HW_COMPAT_2_1 macros
compat: replace PC_COMPAT_2_2 & HW_COMPAT_2_2 macros
compat: replace PC_COMPAT_2_3 & HW_COMPAT_2_3 macros
compat: replace PC_COMPAT_2_4 & HW_COMPAT_2_4 macros
compat: replace PC_COMPAT_2_5 & HW_COMPAT_2_5 macros
compat: replace PC_COMPAT_2_6 & HW_COMPAT_2_6 macros
compat: replace PC_COMPAT_2_7 & HW_COMPAT_2_7 macros
compat: replace PC_COMPAT_2_8 & HW_COMPAT_2_8 macros
compat: replace PC_COMPAT_2_9 & HW_COMPAT_2_9 macros
compat: replace PC_COMPAT_2_10 & HW_COMPAT_2_10 macros
compat: replace PC_COMPAT_2_11 & HW_COMPAT_2_11 macros
...
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/a29644590f95...31ed41889e6e
**NOTE:** This service has been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] ea9ce8: hw: apply accel compat properties without touching...,
GitHub <=