hw/loader: split out load_image_gzipped_buffer()
commit7d48a0f7217474899c5f5920b21f4cfdf4efa8d1
authorLaszlo Ersek <lersek@redhat.com>
Mon, 22 Dec 2014 12:11:43 +0000 (22 13:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 22 Dec 2014 23:39:19 +0000 (22 23:39 +0000)
tree129fbc15bc17d5295c0288f997fab09ef535fc60
parent578f3c7b083514b4fec0bf8fa0617934cdbdf826
hw/loader: split out load_image_gzipped_buffer()

In the next patch we'd like to reuse the image decompression facility
without installing the output as a ROM at a specific guest-phys address.

In addition, expose LOAD_IMAGE_MAX_GUNZIP_BYTES, because that's a
straightforward "max_sz" argument for the new load_image_gzipped_buffer().

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1419250305-31062-10-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/loader.c
include/hw/loader.h