qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v6 30/41] target/arm: Flush tlb for ASID changes in EL2&0 tra


From: Richard Henderson
Subject: Re: [PATCH v6 30/41] target/arm: Flush tlb for ASID changes in EL2&0 translation regime
Date: Tue, 4 Feb 2020 13:58:10 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 2/3/20 11:49 AM, Peter Maydell wrote:
> On Mon, 3 Feb 2020 at 11:36, Peter Maydell <address@hidden> wrote:
>> Since we don't flush TLBs when HCR_EL2.E2H changes, I'm wondering
>> about this sequence:
>>
>>  * initially HCR_EL2.E2H == 1 and the E2&0 TLBs are populated
>>  * HCR_EL2.E2H is set to 0
>>  * TTBR1_EL2 is written with a different ASID from step 1,
>>    but we don't flush the TLBs because HCR_EL2.E2H is 0
>>  * HCR_EL2.E2H is set to 1
>>  * guest will pick up wrong-ASID TLB entries from step 1
>>
>> Does the architecture require that the guest did some TLB
>> maintenance ops somewhere along the line to avoid this?
>> I haven't tried to look for them, but given the different
>> ASIDs I'm not sure it does...
> 
> ...HCR_EL2.E2H documents that it "is permitted to be cached
> in a TLB", which means that the guest has to do *some*
> TLB maintenance ops if it changes it; unclear exactly which,
> though...

TLBI ALLE2 would seem to fit the bill after E2H change.


r~



reply via email to

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