acpi/generic_event_device: Update GHES migration to cover hest addr
The GHES migration logic should now support HEST table location too. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <ede7ddf4b10f34094a4327dc458d630ad319bd1c.1758610789.git.mchehab+huawei@kernel.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
7a857a8933
commit
d238dedae6
1 changed files with 29 additions and 0 deletions
|
|
@ -436,6 +436,34 @@ static const VMStateDescription vmstate_pcihp_state = {
|
|||
}
|
||||
};
|
||||
|
||||
static const VMStateDescription vmstate_hest = {
|
||||
.name = "acpi-hest",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT64(hest_addr_le, AcpiGhesState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
};
|
||||
|
||||
static bool hest_needed(void *opaque)
|
||||
{
|
||||
AcpiGedState *s = opaque;
|
||||
return s->ghes_state.hest_addr_le;
|
||||
}
|
||||
|
||||
static const VMStateDescription vmstate_hest_state = {
|
||||
.name = "acpi-ged/hest",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = hest_needed,
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_STRUCT(ghes_state, AcpiGedState, 1,
|
||||
vmstate_hest, AcpiGhesState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
};
|
||||
|
||||
static const VMStateDescription vmstate_acpi_ged = {
|
||||
.name = "acpi-ged",
|
||||
.version_id = 1,
|
||||
|
|
@ -449,6 +477,7 @@ static const VMStateDescription vmstate_acpi_ged = {
|
|||
&vmstate_cpuhp_state,
|
||||
&vmstate_ghes_state,
|
||||
&vmstate_pcihp_state,
|
||||
&vmstate_hest_state,
|
||||
NULL
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue