]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f77fcb5ef5d96d0024def81b03929322619c2e9
tree30587b5b8ab16957a81fecc3e1063f800c9ed24e
parent223c488fcf1ac716062e2a6cea6398a613530fad
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