Skip to content

pc: Set hw_version on all machine classes

Eduardo Habkost qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pc: Set hw_version on all machine classeshw/i386/pc_piix.c hw/i386/pc_q35.c+23 -02 replies
2/3osdep: Rename qemu_{get, set}_version() to qemu_{, set_}hw_version()hw/arm/nseries.c hw/ide/core.c hw/scsi/scsi-bus.c +5 more+13 -130 replies
3/3megasas: Use qemu_hw_version() instead of QEMU_VERSIONhw/scsi/megasas.c+1 -10 replies

Reviews trailers per patch

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

PatchLaszlo ErsekJohn SnowHannes Reinecke
1/3R-b
2/3R-b
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH RESEND v2 0/3] pc: Set hw_version on all machine classes

In 2012, QEMU had a bug where it exposed QEMU version information to the guest, meaning a QEMU upgrade would expose different hardware to the guest OS even if the same machine-type is being used.

The bug was fixed by commit 93bfef4c6e4b23caea9d51e1099d06433d8835a4, on all machines up to pc-1.0. But we kept introducing the same bug on all newer machines since then. That means we are breaking guest ABI every time QEMU was upgraded.

Fix this by setting the hw_version on all PC machines, making sure the hardware won't change when upgrading QEMU.

Eduardo Habkost (3):
pc: Set hw_version on all machine classes
osdep: Rename qemu_{get,set}_version() to qemu_{,set_}hw_version()
megasas: Use qemu_hw_version() instead of QEMU_VERSION

 hw/arm/nseries.c     |  2 +-
 hw/i386/pc_piix.c    | 13 +++++++++++++
 hw/i386/pc_q35.c     | 10 ++++++++++
 hw/ide/core.c        |  2 +-
 hw/scsi/megasas.c    |  2 +-
 hw/scsi/scsi-bus.c   |  2 +-
 hw/scsi/scsi-disk.c  |  2 +-
 include/qemu/osdep.h |  4 ++--
 target-i386/cpu.c    |  2 +-
 util/osdep.c         | 10 +++++-----
 vl.c                 |  2 +-
 11 files changed, 37 insertions(+), 14 deletions(-)
Signature · 1 line
2.1.0