Hi, Peter Maydell,

I see. So qemu seems to mimic rom->ram loading.
When I examined the memory at 0x80200000 (host virtual 0x7fff63000000) near the 
end of qemu_init(), 
I could see the kernel Image loaded as I expected.
Thank you!

Chan Kim

> -----Original Message-----
> From: Peter Maydell <[email protected]>
> Sent: Monday, March 14, 2022 6:55 PM
> To: Chan Kim <[email protected]>
> Cc: qemu-discuss <[email protected]>
> Subject: Re: With "-kernel Image" method in arm64 virtual machine, where
> is the kernel loaded, Ram or Rom?
> 
> On Mon, 14 Mar 2022 at 09:06, Chan Kim <[email protected]> wrote:
> > After this, I tried to read the memory at 0x80200000 to see if this
> kernel Image is there but could not find it.
> >
> > I used this method to see memory at 0x80200000 :
> >
> > during the machab21q_init function,
> >
> > Ram_ptr = memory_region_get_ram_ptr(machine->ram);  // to the virtual
> > address of the memory in the host machine
> 
> This will not work, because ROM blobs are not loaded into guest memory at
> this point in QEMU's initialization. They are loaded into RAM later on, as
> part of the system reset.
> rom_add_blob() and friends simply set things up on a list to be loaded
> into RAM on every system reset.
> 
> -- PMM





Reply via email to