https://bugs.winehq.org/show_bug.cgi?id=48665
Andrew Wesie awesie@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #66571|0 |1 is obsolete| |
--- Comment #9 from Andrew Wesie awesie@gmail.com --- Created attachment 67095 --> https://bugs.winehq.org/attachment.cgi?id=67095 Alternative fix using soft dirty PTEs
After adding the previous patch to wine-staging, it became clear that it is unlikely to be a path forward due to the limitations of using mmap+sigsegv to implement WRITECOPY. In the future, it may be possible to use userfaultfd but not currently.
This alternative patches tries to achieve the same effects that this bug requires. It is not perfect, e.g. there are some unfixable race conditions and performance overhead, but it shouldn't break anything unlike the previous attempt.