Re: SMMU Stage 2 translation in QEMU

2021-09-15 Thread Eric Auger
Hi Shashi, On 9/14/21 5:57 PM, shashi.mall...@linaro.org wrote: > Hi Eric, > On Mon, 2021-09-13 at 10:19 +0200, Eric Auger wrote: >> Hi Shashi, >> >> On 9/10/21 3:32 PM, shashi.mall...@linaro.org wrote: >>> So that would be the driver code running in guest OS because i see >>> tables being setup b

Re: SMMU Stage 2 translation in QEMU

2021-09-14 Thread shashi . mallela
Hi Eric, On Mon, 2021-09-13 at 10:19 +0200, Eric Auger wrote: > Hi Shashi, > > On 9/10/21 3:32 PM, shashi.mall...@linaro.org wrote: > > So that would be the driver code running in guest OS because i see > > tables being setup by arm-smmu driver code in linux,which is > > similar to > > what happen

Re: SMMU Stage 2 translation in QEMU

2021-09-13 Thread Eric Auger
Hi Shashi, On 9/10/21 3:32 PM, shashi.mall...@linaro.org wrote: > So that would be the driver code running in guest OS because i see > tables being setup by arm-smmu driver code in linux,which is similar to > what happens with ITS(table base addresses programmed in registers by > linux driver). St

Re: SMMU Stage 2 translation in QEMU

2021-09-10 Thread shashi . mallela
So that would be the driver code running in guest OS because i see tables being setup by arm-smmu driver code in linux,which is similar to what happens with ITS(table base addresses programmed in registers by linux driver). On Fri, 2021-09-10 at 13:54 +0100, Peter Maydell wrote: > On Fri, 10 Sept

Re: SMMU Stage 2 translation in QEMU

2021-09-10 Thread Peter Maydell
On Fri, 10 Sept 2021 at 13:39, wrote: > > I am referring to the latter,"purely emulated QEMU with an emulated > SMMU that handles accesses to emulated devices" In that case, the stage 2 tables are set up by the guest code (running at emulated EL2), just as they would be if it were running on real

Re: SMMU Stage 2 translation in QEMU

2021-09-10 Thread shashi . mallela
I am referring to the latter,"purely emulated QEMU with an emulated SMMU that handles accesses to emulated devices" Thanks Shashi On Fri, 2021-09-10 at 10:25 +0100, Peter Maydell wrote: > On Thu, 9 Sept 2021 at 21:18, wrote: > > I am trying to understand the approach required for an emulated > >

Re: SMMU Stage 2 translation in QEMU

2021-09-10 Thread Peter Maydell
On Thu, 9 Sept 2021 at 21:18, wrote: > I am trying to understand the approach required for an emulated SMMU to > convert IPAs(from each qemu guest) to PAs(respective host addresses) > using stage 2 tables. > > The questions i have are:- > > 1) Since SMMU stage 2 tables are expected to be created a

SMMU Stage 2 translation in QEMU

2021-09-09 Thread shashi . mallela
Hi All, I am trying to understand the approach required for an emulated SMMU to convert IPAs(from each qemu guest) to PAs(respective host addresses) using stage 2 tables. The questions i have are:- 1) Since SMMU stage 2 tables are expected to be created and managed by a hypervisor,if there is no