ACPI: Avoid infinite recursion when dump-vmstate
authorPeng Liang <liangpeng10@huawei.com>
Thu, 12 Nov 2020 02:06:38 +0000 (10:06 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Nov 2020 14:13:59 +0000 (14:13 +0000)
commit136fc6aa2cf38205fa3b47e155ebac11baccc789
tree2fe33ce183195ef1a2522446e391a84137cabfcd
parentaf3bbbe98405fe2d274696abe5def679a3b0c673
ACPI: Avoid infinite recursion when dump-vmstate

There is a field with vmstate_ghes_state as vmsd in vmstate_ghes_state,
which will lead to infinite recursion in dump_vmstate_vmsd.

Fixes: a08a64627b ("ACPI: Record the Generic Error Status Block address")
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201112020638.874515-1-liangpeng10@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hw/acpi/generic_event_device.c