You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/acpi
David Woodhouse 3634039b93 hw/acpi: Add vmclock device
The vmclock device addresses the problem of live migration with
precision clocks. The tolerances of a hardware counter (e.g. TSC) are
typically around ±50PPM. A guest will use NTP/PTP/PPS to discipline that
counter against an external source of 'real' time, and track the precise
frequency of the counter as it changes with environmental conditions.

When a guest is live migrated, anything it knows about the frequency of
the underlying counter becomes invalid. It may move from a host where
the counter running at -50PPM of its nominal frequency, to a host where
it runs at +50PPM. There will also be a step change in the value of the
counter, as the correctness of its absolute value at migration is
limited by the accuracy of the source and destination host's time
synchronization.

The device exposes a shared memory region to guests, which can be mapped
all the way to userspace. In the first phase, this merely advertises a
'disruption_marker', which indicates that the guest should throw away any
NTP synchronization it thinks it has, and start again.

Because the region can be exposed all the way to userspace, applications
can still use time from a fast vDSO 'system call', and check the
disruption marker to be sure that their timestamp is indeed truthful.

The structure also allows for the precise time, as known by the host, to
be exposed directly to guests so that they don't have to wait for NTP to
resync from scratch.

The values and fields are based on the nascent virtio-rtc specification,
and the intent is that a version (hopefully precisely this version) of
this structure will be included as an optional part of that spec. In the
meantime, a simple ACPI device along the lines of VMGENID is perfectly
sufficient and is compatible with what's being shipped in certain
commercial hypervisors.

Linux guest support was merged into the 6.13-rc1 kernel:
https://git.kernel.org/torvalds/c/205032724226

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <07fd5e2f529098ad4d7cab1423fe9f4a03a9cc14.camel@infradead.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
6 days ago
..
Kconfig hw/acpi: Add vmclock device 6 days ago
acpi-cpu-hotplug-stub.c hw/acpi: Update ACPI GED framework to support vCPU Hotplug 6 months ago
acpi-mem-hotplug-stub.c hw/acpi: refactor acpi hp modules so that targets can just use what they need 3 years ago
acpi-nvdimm-stub.c hw/acpi: refactor acpi hp modules so that targets can just use what they need 3 years ago
acpi-pci-hotplug-stub.c pcihp: add ACPI PCI hotplug specific is_hotpluggable_bus() callback 2 years ago
acpi-qmp-cmds.c acpi: Move the QMP command from monitor/ to hw/acpi/ 2 years ago
acpi-stub.c hw/acpi: Dumb down acpi_table_add() stub 2 years ago
acpi-x86-stub.c hw/acpi/acpi_dev_interface: Remove now unused madt_cpu virtual method 1 year ago
acpi_interface.c hw/isa/isa-bus: Turn isa_build_aml() into qbus_build_aml() 2 years ago
aml-build-stub.c acpi: pc: vga: use AcpiDevAmlIf interface to build VGA device descriptors 2 years ago
aml-build.c Accel & Exec patch queue 1 month ago
bios-linker-loader.c Include qemu-common.h exactly where needed 6 years ago
core.c include: Rename sysemu/ -> system/ 1 month ago
cpu.c cpuhp: make sure that remove events are handled within the same SCI 6 days ago
cpu_hotplug.c hw/acpi/cpu_hotplug: Include 'x86.h' instead of 'pc.h' 11 months ago
cxl-stub.c acpi/cxl: Add _OSC implementation (9.14.2) 3 years ago
cxl.c hw/cxl: Add QTG _DSM support for ACPI0017 device 1 year ago
erst.c Accel & Exec patch queue 1 month ago
generic_event_device.c acpi/ghes: better name the offset of the hardware error firmware 6 days ago
ghes-stub.c acpi/ghes: better name GHES memory error function 6 days ago
ghes.c acpi/ghes: Change ghes fill logic to work with only one source 6 days ago
hmat.c include: Rename sysemu/ -> system/ 1 month ago
hmat.h include: Rename sysemu/ -> system/ 1 month ago
ich9.c include: Rename sysemu/ -> system/ 1 month ago
ich9_tco.c include: Rename sysemu/ -> system/ 1 month ago
ich9_timer.c hw/acpi/ich9: Add periodic and swsmi timer 4 months ago
ipmi-stub.c acpi: ipmi: use AcpiDevAmlIf interface to build IPMI device descriptors 3 years ago
ipmi.c acpi: ipmi: use AcpiDevAmlIf interface to build IPMI device descriptors 3 years ago
memory_hotplug.c hw/acpi: Remove the deprecated QAPI MEM_UNPLUG_ERROR event 8 months ago
meson.build hw/acpi: Add vmclock device 6 days ago
nvdimm.c hw/other: spelling fixes 1 year ago
pci-bridge-stub.c pcihp: make bridge describe itself using AcpiDevAmlIfClass:build_dev_aml 2 years ago
pci-bridge.c acpi: pci: move out ACPI PCI hotplug generator from generic slot generator build_append_pci_bus_devices() 2 years ago
pci.c hw/acpi: Generic Initiator - add missing object class property descriptions. 3 months ago
pcihp.c hw/acpi: Constify VMState 1 year ago
piix4.c Accel & Exec patch queue 1 month ago
tpm.c docs: fix references to docs/specs/tpm.rst 4 years ago
trace-events hw/acpi/core: Trace enable and status registers of GPE separately 1 year ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
utils.c acpi: Set proper maximum size for "etc/acpi/rsdp" blob 4 years ago
viot.c hw/acpi/viot: sort VIOT ACPI table entries by PCI host bridge min_bus 3 years ago
viot.h hw/acpi: Add VIOT table 3 years ago
vmclock.c hw/acpi: Add vmclock device 6 days ago
vmgenid.c Accel & Exec patch queue 1 month ago