[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] translate-all: Bugfix for user-mode self-mod
From: |
Sergey Fedorov |
Subject: |
Re: [Qemu-devel] [PATCH v2] translate-all: Bugfix for user-mode self-modifying code in 2 page long TB |
Date: |
Wed, 6 Jul 2016 16:22:38 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
On 06/07/16 16:22, Stanislav Shmarov wrote:
>
> Yes, exactly.
>
> There is no point for returning to main loop immediately when current
> TB is found on host page and is retranslated. We can continue
> invalidation of TBs, and finally remove host page write protection. So
> there will be no second SEGFAULT.
>
> And when generating TB for next instructions, host page will be locked
> again, if TB includes instructions from that page.
>
I think that could work.
Regards,
Sergey