fw_cfg: add API to find FW cfg object
commit600c60b76d0682f6c39d19bfff79da9321e8cf86
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 30 May 2013 13:07:58 +0000 (30 16:07 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Jun 2013 15:14:14 +0000 (2 18:14 +0300)
treeda4eadd1f226e1a6fafaf0ac51f255d0c1f9cd2d
parent45936c8b79012da4c8986c20af4afcc9cd14bb8e
fw_cfg: add API to find FW cfg object

Remove some code duplication by adding a
function to look up the fw cfg file.
This way, we don't need to duplicate same strings everywhere.
Use by both fw cfg and pvpanic device.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/misc/pvpanic.c
hw/nvram/fw_cfg.c
include/hw/nvram/fw_cfg.h