qemu-discuss
[Top][All Lists]
Advanced

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

RE: With "-kernel Image" method in arm64 virtual machine, where is the k


From: Chan Kim
Subject: RE: With "-kernel Image" method in arm64 virtual machine, where is the kernel loaded, Ram or Rom?
Date: Mon, 14 Mar 2022 21:27:05 +0900

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 <peter.maydell@linaro.org>
> Sent: Monday, March 14, 2022 6:55 PM
> To: Chan Kim <ckim@etri.re.kr>
> Cc: qemu-discuss <qemu-discuss@nongnu.org>
> 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 <ckim@etri.re.kr> 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

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