Hi,
I am facing issues with EL1 Guest OS. I have enabled EL2 stage 2 page tables and set up all the virtualization registers {HCR_EL2, VTCR_EL2 and VTTBR_EL2 etc.}
I am mapping my Guest OS memory to stage 2 tables but as I try to do "eret" from EL2 mode and jump to Guest OS I am getting "Bus error on memory operation"
My questions is if the MMU is off for EL1 mode then is it right that translation will be done using stage 2 tables as Guest OS job is to setup its own page tables and tun on MMU ?
Thanks
armdev wrote: My questions is if the MMU is off for EL1 mode then is it right that translation will be done using stage 2 tables as Guest OS job is to setup its own page tables and tun on MMU ?
armdev wrote:
Yes. (Strictly, with the stage 1 MMU disabled VA=IPA) With the IPA to PA mapping handled by the stage 2 table) Attributes are a little different, in that the result of the stage 1 and 2 are combined following rules in the ARM ARM. Although, I doubt that's the problem here.
In terms of debugging, I have a couple of suggestions...