[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets
From: |
Richard Henderson |
Subject: |
Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets |
Date: |
Tue, 19 May 2020 11:51:43 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/19/20 11:38 AM, Alex Bennée wrote:
>
> Richard Henderson <address@hidden> writes:
>
>> On 5/19/20 9:21 AM, Ahmed Karaman wrote:
>>> The issue arose because the page crossings check in use_goto_tb()
>>> function is required only in the system mode. Checking it in both modes
>>> causes an unnecessary overhead in the user mode.
>>
>> It is not only required in system mode.
>>
>> You can see failures in user-mode if you modify executable pages, or change
>> their permissions with mmap. Such as if the guest program contains a
>> JIT.
>
> If we kept better track couldn't we just tb_flush() if a new +x region
> gets mmaped? I guess that would be sub-optimal compared to having a
> translation cache per mmap region.
>
Yes, this could definitely be improved. Noticing changes to PROT_EXEC via
mprotect, for one.
r~
- [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Ahmed Karaman, 2020/05/19
- [PATCH 2/2] target/rx: Check for page crossings in use_goto_tb(), Ahmed Karaman, 2020/05/19
- [PATCH 1/2] target/hppa: Check page crossings in use_goto_tb() only in system mode, Ahmed Karaman, 2020/05/19
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Richard Henderson, 2020/05/19
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Alex Bennée, 2020/05/19
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets,
Richard Henderson <=
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Ahmed Karaman, 2020/05/21
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Richard Henderson, 2020/05/21
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Aleksandar Markovic, 2020/05/25
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Aleksandar Markovic, 2020/05/26
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Ahmed Karaman, 2020/05/26
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Aleksandar Markovic, 2020/05/26
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Aleksandar Markovic, 2020/05/26
- Re: [PATCH 0/2] Update use_goto_tb() in hppa and rx targets, Aleksandar Markovic, 2020/05/26