OSDN Git Service

fw_cfg: write vmcoreinfo details
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 28 Feb 2018 15:06:14 +0000 (16:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 01:17:41 +0000 (03:17 +0200)
commit2d6d60a3d3eca50bbb20052278cb11dabcf4dff3
tree30587b5b8ab16957a81fecc3e1063f800c9ed24e
parent43d4cb47f6e854ea9fe868eedf8281f81b5a1252
fw_cfg: write vmcoreinfo details

If the "etc/vmcoreinfo" fw_cfg file is present and we are not running
the kdump kernel, write the addr/size of the vmcoreinfo ELF note.

The DMA operation is expected to run synchronously with today qemu,
but the specification states that it may become async, so we run
"control" field check in a loop for eventual changes.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/firmware/qemu_fw_cfg.c
include/uapi/linux/qemu_fw_cfg.h