[RFC PATCH 1/1] arm64: Add boot time configuration of Intermediate Physical Address size

Radha Mohan mohun106 at gmail.com
Thu Mar 6 05:44:45 EST 2014


On Thu, Mar 6, 2014 at 4:07 PM, Will Deacon <will.deacon at arm.com> wrote:
> On Thu, Mar 06, 2014 at 06:06:07AM +0000, Radha Mohan wrote:
>> Hi all,
>>
>> Any comments?
>
> [...]
>
>> > diff --git a/arch/arm64/kvm/hyp-init.S b/arch/arm64/kvm/hyp-init.S
>> > index 2b0244d..642fec9 100644
>> > --- a/arch/arm64/kvm/hyp-init.S
>> > +++ b/arch/arm64/kvm/hyp-init.S
>> > @@ -68,6 +68,13 @@ __do_hyp_init:
>> >         msr     tcr_el2, x4
>> >
>> >         ldr     x4, =VTCR_EL2_FLAGS
>> > +       /*
>> > +        * Read the PARange bits from ID_AA64MMFR0_EL1 and set the PS bits in
>> > +        * VTCR_EL2.
>> > +        */
>> > +       mrs     x5, ID_AA64MMFR0_EL1
>> > +       ubfiz   x5, x5, #16, #3
>> > +       orr     x4, x4, x5
>
> Can you use BFI instead of UBFIZ + ORR?

OK.

>
> Will



More information about the linux-arm-kernel mailing list