On 8/29/19 5:45 AM, liuzhiwei wrote: > Even in qemu, it may be some situations that VSTART != 0. For example, a load > instruction leads to a page fault exception in a middle position. If VSTART == > 0, some elements that had been loaded before the exception will be loaded > once > again.
Alternately, you can validate all of the pages before performing any memory operations. At which point there will never be an exception in the middle. As it turns out, you *must* do this in order to allow watchpoints to work correctly. David Hildebrand and I are at this moment fixing this aspect of watchpoints for s390x. See https://lists.gnu.org/archive/html/qemu-devel/2019-08/msg05979.html r~