On 19 July 2016 at 10:22, Maxim Ostapenko <[email protected]> wrote:
> On 18/07/16 18:51, Peter Maydell wrote:
>> Well, we do need to do some things:
>>   * we're populating the PageDesc data structure which we later use
>>     to cache generated code
>>   * if we're marking the range as writeable and it wasn't previously
>>     writeable, we need to check whether there's already generated code
>>     anywhere in this memory range and invalidate those translations
>>
>> This could probably be done in a way that doesn't iterate naively
>> through every page, though.
>
>
> Oh, I see. Perhaps we can restrict QEMU to use some well defined pages for
> generated code?

I mean *guest* pages. We need to detect self-modifying guest code,
and the guest could do that for any page in its virtual address
space.

thanks
-- PMM

Reply via email to