parse vmlinuz inside firmware

This will make it possible to load the vmlinuz from CBFS.  We need
some contortions because QEMU splits the real mode and protected
mode parts of vmlinuz in different fw_cfg files.

The parsing code is lifted from QEMU.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
4 files changed