loader: support for unmapped ROM blobs
commit48354cc5a3744c9a56462e5053e1f267a0ce69de
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 18 Aug 2013 14:02:33 +0000 (18 17:02 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Oct 2013 14:48:51 +0000 (14 17:48 +0300)
treebbc743fdc7ee49a4caa45e506f41233b9cfad6ae
parentd87072ceeccf4f84a64d4bc59124bcd64286c070
loader: support for unmapped ROM blobs

Support ROM blobs not mapped into guest memory:
same as ROM files really but use caller's buffer.

Support invoking callback on access and
return memory pointer making it easier
for caller to update memory if necessary.

Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/loader.c
hw/lm32/lm32_hwsetup.h
include/hw/loader.h