[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/4] loader: Add load_image_mr() to load ROM ima

From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH 2/4] loader: Add load_image_mr() to load ROM image to a MemoryRegion
Date: Fri, 4 Mar 2016 09:42:18 +0200

On Thu, Mar 03, 2016 at 05:46:28PM +0100, Paolo Bonzini wrote:
> On 12/02/2016 15:45, Peter Maydell wrote:
> > Add a new function load_image_mr(), which behaves like
> > load_image_targphys() except that it loads the ROM image to
> > a specified MemoryRegion rather than to a specified physical
> > address. This is useful when a ROM blob needs to be loaded
> > to a particular flash or ROM device but the address of that
> > device in the machine's address space is not known. (For
> > instance, ROMs in devices, or ROMs which might exist in
> > a different address space to the system address space.)
> > 
> > Signed-off-by: Peter Maydell <address@hidden>
> The patch looks good, in particular it should be fine for the non-fw_cfg
> uses of rom->mr.
> The fw_cfg interface to loader.c indeed should be turned upside-down so
> that the knowledge moves outside rom_add_file (to a rom_add_fwcfg
> function for example) and rom_add_file doesn't need to call rom_set_mr.
>  Your patch is at least a step in the right direction, because it adds
> memory region support in the !fw_cfg case.
> So,
> Reviewed-by: Paolo Bonzini <address@hidden>
> Thanks,
> Paolo

I agree here.

Reviewed-by: Michael S. Tsirkin <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]