Skip to content

target-i386: X86CPU compatibility properties

Andreas Färber qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qdev: Let qdev_prop_parse() pass through Errorhw/core/qdev-properties.c hw/core/qdev.c include/hw/qdev-properties.h +1 more+25 -181 reply
2/4qdev: Introduce qdev_prop_set_custom_globals()hw/core/qdev-properties.c include/hw/qdev-properties.h+26 -112 replies
3/4target-i386: Emulate X86CPU subclasses for global propertiestarget-i386/cpu.c+9 -01 reply
4/4target-i386: Change CPUID model of 486 to 8include/hw/i386/pc.h target-i386/cpu.c+5 -11 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchEduardo Habkost
1/4R-b
2/4R-b
3/4R-b
4/4T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH qom-cpu for-1.5 0/4] target-i386: X86CPU compatibility properties

Hello,

It's easier adapting the infrastructure to our needs than working around it:
X86CPU already has QOM properties today. What's lacking is model subclasses, and with the one X86CPU type its global properties are overwritten by models. But we already know the designated naming scheme for the models!

So let's simply prepare compat_props for CPU models and make sure they are already picked up today.

This works just fine for changing the 486 CPUID model value and avoids to redo the PC part once we have X86CPU subclasses.
Tested using: ./QMP/qom-get /machine/icc-bridge/icc/child[0].model

For changing n270 CPUID flags we'll still need to resort to Eduardo's proposed helper functions for now.

Regards,
Andreas

Cc Eduardo Habkost <[email protected]>
Cc Igor Mammedov <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Anthony Liguori <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Michael S. Tsirkin <[email protected]>

Andreas Färber (4):
qdev: Let qdev_prop_parse() pass through Error
qdev: Introduce qdev_prop_set_custom_globals()
target-i386: Emulate X86CPU subclasses for global properties
target-i386: Change CPUID model of 486 to 8

 hw/core/qdev-properties.c    | 50 ++++++++++++++++++++++++++------------------
 hw/core/qdev.c               |  7 ++++++-
 include/hw/i386/pc.h         |  4 ++++
 include/hw/qdev-properties.h |  7 +++++--
 qdev-monitor.c               |  6 +++++-
 target-i386/cpu.c            | 11 +++++++++-
 6 files changed, 60 insertions(+), 25 deletions(-)
Signature · 1 line
1.8.1.4