[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM
From: |
Hulin, Patrick - 0559 - MITLL |
Subject: |
Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM) |
Date: |
Mon, 18 Aug 2014 20:50:24 +0000 |
User-agent: |
Microsoft-MacOutlook/14.4.3.140616 |
On 8/18/14, 1:47 PM, "Hulin, Patrick - 0559 - MITLL"
<address@hidden> wrote:
>On Aug 18, 2014, at 1:37 PM, Richard Henderson <address@hidden> wrote:
>
>>On 08/16/2014 10:21 PM, Paolo Bonzini wrote:
>>>>>Would it work to just call tb_invalidate_phys_page_range before the
>>>>>helper_ret_stb loop?
>>I doubt it.
>
>Correct. Doesn¹t work. Haven¹t fully diagnosed why, but it doesn¹t seem
>to ever hit the current_tb_modified passage if you invalidate beforehand.
Yeah - mem_io_pc doesn¹t get updated until we¹re inside io_write, so
tb_invalidate_phys_page_range thinks we¹re inside a different TB. As a
result, it¹s ³is this TB modified² check still returns false.
I¹ve attached the correct source patch for the test case as well.
selfmodify.patch
Description: selfmodify.patch
selfmodify.flat
Description: selfmodify.flat
- [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/14
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/14
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Paolo Bonzini, 2014/08/15
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/15
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Paolo Bonzini, 2014/08/17
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Richard Henderson, 2014/08/18
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/18
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM),
Hulin, Patrick - 0559 - MITLL <=
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Paolo Bonzini, 2014/08/19
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/20
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Richard Henderson, 2014/08/20
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Paolo Bonzini, 2014/08/18
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/18
- Re: [Qemu-devel] QEMU, self-modifying code, and Windows 7 64-bit (no KVM), Hulin, Patrick - 0559 - MITLL, 2014/08/18