Changes since v13: * fix comment style to /*... */ in testcase * make BAR TARGET_PAGE_SIZE as required by spec * make BAR prefetchable, spec also says that it shouldn't be marked as non cached * ACPI part * merge separate VGID device with PCI device description * mark device as not shown in UI, it hides "VM Generation ID" device from device manager and leaves only "PCI Standard RAM Controller" device there
Note to maintainer: this patch set doesn't include the *.hex.generated files and updated test ACPI tables blobs. Hex files for [q35-]acpi-dsdt should be updated. Tested with WS2012R2DCx64, thanks Gal for providing test utilities. Based on top of mst's PCI tree. Git branch: https://github.com/imammedo/qemu.git vmgenid_v14 Gal Hammer (1): docs: vm generation id device's description Igor Mammedov (2): pc: add a Virtual Machine Generation ID device tests: add a unit test for the vmgenid device. default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + docs/specs/pci-ids.txt | 1 + docs/specs/vmgenid.txt | 36 ++++++++++ hw/i386/acpi-build.c | 69 +++++++++++++++++-- hw/i386/acpi-dsdt.dsl | 2 - hw/i386/q35-acpi-dsdt.dsl | 2 - hw/misc/Makefile.objs | 1 + hw/misc/vmgenid.c | 134 +++++++++++++++++++++++++++++++++++++ include/hw/acpi/acpi.h | 1 + include/hw/misc/vmgenid.h | 21 ++++++ include/hw/pci/pci.h | 1 + tests/Makefile | 2 + tests/vmgenid-test.c | 92 +++++++++++++++++++++++++ 14 files changed, 356 insertions(+), 8 deletions(-) create mode 100644 docs/specs/vmgenid.txt create mode 100644 hw/misc/vmgenid.c create mode 100644 include/hw/misc/vmgenid.h create mode 100644 tests/vmgenid-test.c -- 2.1.0