Re: [Qemu-devel] [PATCH/RFC] exec: add cpu_synchronize_state to cpu_memory_rw_debug

2017-03-09 Thread Paolo Bonzini
On 07/03/2017 15:19, Christian Borntraeger wrote: > I sometimes got "Cannot access memory" when using the x command > on the monitor. Turns out that the cpu env did contain stale data > (e.g. wrong control register content for page table origin). > We must synchronize the state of the CPU before

Re: [Qemu-devel] [PATCH/RFC] exec: add cpu_synchronize_state to cpu_memory_rw_debug

2017-03-07 Thread Christian Borntraeger
On 03/07/2017 04:35 PM, Alex Bennée wrote: > > Christian Borntraeger writes: > >> I sometimes got "Cannot access memory" when using the x command >> on the monitor. Turns out that the cpu env did contain stale data >> (e.g. wrong control register content for page table origin). >> We must synchr

Re: [Qemu-devel] [PATCH/RFC] exec: add cpu_synchronize_state to cpu_memory_rw_debug

2017-03-07 Thread Alex Bennée
Christian Borntraeger writes: > I sometimes got "Cannot access memory" when using the x command > on the monitor. Turns out that the cpu env did contain stale data > (e.g. wrong control register content for page table origin). > We must synchronize the state of the CPU before walking the page >

[Qemu-devel] [PATCH/RFC] exec: add cpu_synchronize_state to cpu_memory_rw_debug

2017-03-07 Thread Christian Borntraeger
I sometimes got "Cannot access memory" when using the x command on the monitor. Turns out that the cpu env did contain stale data (e.g. wrong control register content for page table origin). We must synchronize the state of the CPU before walking the page tables. A similar issues happens for a remo