[Qemu-devel] [Bug 1497479] Re: memory corruption with migrate/savevm in TCG mode

2015-09-21 Thread Pavel Boldin
Hi, This one is for QEMU master, 1493049 is for Ubuntu packages. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1497479 Title: memory corruption with migrate/savevm in TCG mode Status in QEMU: N

[Qemu-devel] [Bug 1497479] Re: memory corruption with migrate/savevm in TCG mode

2015-09-18 Thread Pavel Boldin
** Description changed: [ISSUE] QEMU releases 2.3.1 and lower are forgetting to flush TLBs before enabling the global dirty pages log and entering the final stage of saving the VM. [DESCRIPTION] The situation is the following: 1. TLB misses is the only way for page dirtying

[Qemu-devel] [Bug 1497479] [NEW] memory corruption with migrate/savevm in TCG mode

2015-09-18 Thread Pavel Boldin
Public bug reported: [ISSUE] QEMU releases 2.3.1 and lower are forgetting to flush TLBs before enabling the global dirty pages log and entering the final stage of saving the VM. [DESCRIPTION] The situation is the following: 1. TLB misses is the only way for page dirtying in the TCG mode. 2. If

Re: [Qemu-devel] [Migration][TCG] Page dirtying and migration in pure-QEMU VM mode

2015-09-06 Thread Pavel Boldin
A little self-update here. 1. It is seems to be enough to just flush TLB entries with the iothread lock held since the CPUs are stopped here. 2. The upstream version is not vulnerable to the bug due to the following code call path: ram_save_setup -> memory_global_dirty_log_start -> memory_region_

[Qemu-devel] [Migration][TCG] Page dirtying and migration in pure-QEMU VM mode

2015-09-03 Thread Pavel Boldin
Dear All, As a result of fixing the bug [1] I discovered that QEMU in pure emulation (TCG) sometimes misses page dirtying on the migration. This is happens at least in the version 2.0.0 and should, according to the code, be the same in the master as well. The reason for that is that only pages mi