Re: [PATCH v5 11/18] kvm: arm64: Dynamic configuration of VTTBR mask

2018-09-25 Thread Auger Eric
Hi Suzuki, On 9/20/18 5:22 PM, Suzuki K Poulose wrote: > > > On 20/09/18 15:07, Auger Eric wrote: >> Hi Suzuki, >> On 9/17/18 12:41 PM, Suzuki K Poulose wrote: >>> On arm64 VTTBR_EL2:BADDR holds the base address for the stage2 >>> translation table. The Arm ARM mandates that the bits

Re: [PATCH v5 11/18] kvm: arm64: Dynamic configuration of VTTBR mask

2018-09-20 Thread Suzuki K Poulose
On 20/09/18 15:07, Auger Eric wrote: Hi Suzuki, On 9/17/18 12:41 PM, Suzuki K Poulose wrote: On arm64 VTTBR_EL2:BADDR holds the base address for the stage2 translation table. The Arm ARM mandates that the bits BADDR[x-1:0] should be 0, where 'x' is defined for a given IPA Size and the number

Re: [PATCH v5 11/18] kvm: arm64: Dynamic configuration of VTTBR mask

2018-09-20 Thread Auger Eric
Hi Suzuki, On 9/17/18 12:41 PM, Suzuki K Poulose wrote: > On arm64 VTTBR_EL2:BADDR holds the base address for the stage2 > translation table. The Arm ARM mandates that the bits BADDR[x-1:0] > should be 0, where 'x' is defined for a given IPA Size and the > number of levels for a translation

[PATCH v5 11/18] kvm: arm64: Dynamic configuration of VTTBR mask

2018-09-17 Thread Suzuki K Poulose
On arm64 VTTBR_EL2:BADDR holds the base address for the stage2 translation table. The Arm ARM mandates that the bits BADDR[x-1:0] should be 0, where 'x' is defined for a given IPA Size and the number of levels for a translation granule size. It is defined using some magical constants. This patch