qemu-patch-raspberry4/hw/acpi
Xiao Guangrong 75b0713e18 nvdimm acpi: introduce fit buffer
The buffer is used to save the FIT info for all the presented nvdimm
devices which is updated after the nvdimm device is plugged or
unplugged. In the later patch, it will be used to construct NVDIMM
ACPI _FIT method which reflects the presented nvdimm devices after
nvdimm hotplug

As FIT buffer can not completely mapped into guest address space,
OSPM will exit to QEMU multiple times, however, there is the race
condition - FIT may be changed during these multiple exits, so that
some rules are introduced:
1) the user should hold the @lock to access the buffer and
2) mark @dirty whenever the buffer is updated.

@dirty is cleared for the first time OSPM gets fit buffer, if
dirty is detected in the later access, OSPM will restart the
access

As fit should be updated after nvdimm device is successfully realized
so that a new hotplug callback, post_hotplug, is introduced

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-11-01 19:21:09 +02:00
..
acpi_interface.c acpi: extend ACPI interface to provide send_event hook 2016-06-07 15:36:54 +03:00
aml-build.c hw/i386: AMD IOMMU IVRS table 2016-09-24 01:02:01 +03:00
bios-linker-loader.c acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
core.c opts-visitor: Favor new visit_free() function 2016-07-06 10:52:04 +02:00
cpu.c pc: acpi: x2APIC support for MADT table and _MAT method 2016-10-24 17:29:14 -02:00
cpu_hotplug.c pc: Leave max apic_id_limit only in legacy cpu hotplug code 2016-10-24 17:29:15 -02:00
ich9.c pc: use new CPU hotplug interface since 2.7 machine type 2016-06-24 05:21:38 +03:00
ipmi.c acpi: Add IPMI table entries 2016-06-24 05:13:57 +03:00
Makefile.objs nvdimm acpi: compile nvdimm acpi code arch-independently 2016-11-01 19:21:08 +02:00
memory_hotplug.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
memory_hotplug_acpi_table.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
nvdimm.c nvdimm acpi: introduce fit buffer 2016-11-01 19:21:09 +02:00
pcihp.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
piix4.c pc: use new CPU hotplug interface since 2.7 machine type 2016-06-24 05:21:38 +03:00
tco.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00