[Qemu-devel] [PATCH V2 3/3] spapr: Fix stale HTAB during live migration (TCG)

2014-11-16 Thread Samuel Mendoza-Jonas
If a TCG guest reboots during a running migration HTAB entries are not marked dirty, and the destination boots with an invalid HTAB. When a reboot occurs, explicitly mark the current HTAB dirty after clearing it. Signed-off-by: Samuel Mendoza-Jonas --- hw/ppc/spapr.c | 16 +++- 1

[Qemu-devel] [PATCH V2 1/3] spapr: Fix stale HTAB during live migration (KVM)

2014-11-16 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- hw/ppc/spapr.c | 38

[Qemu-devel] [PATCH V2 2/3] spapr: Fix integer overflow during migration (TCG)

2014-11-16 Thread Samuel Mendoza-Jonas
The n_valid and n_invalid fields are unsigned short integers but it is possible to have more than 65535 entries in a contiguous hunk, overflowing the field. This results in an incorrect HTAB being sent to the destination during migration. Signed-off-by: Samuel Mendoza-Jonas --- hw/ppc/spapr.c

[Qemu-devel] [PATCH V2 0/3] spapr: Fix stale HTAB during live migration

2014-11-16 Thread Samuel Mendoza-Jonas
separate patch - Removed unnecessary locks (relevant operations occur under BQL) - TCG: Set HTAB dirty instead of resetting migration state - Minor style fixes Samuel Mendoza-Jonas (3): spapr: Fix stale HTAB during live migration (KVM) spapr: Fix integer overflow during migration (TCG) spapr: Fix

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] spapr: Fix stale HTAB during live migration (TCG)

2014-11-05 Thread Samuel Mendoza-Jonas
On 05/11/14 19:05, Alexander Graf wrote: > > > On 05.11.14 07:17, Samuel Mendoza-Jonas wrote: >> If a TCG guest reboots during a running migration HTAB entries are not >> marked dirty, and the destination boots with an invalid HTAB. >> >> When a reboot occurs

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/2] spapr: Fix stale HTAB during live migration (KVM)

2014-11-05 Thread Samuel Mendoza-Jonas
On 05/11/14 18:57, Alexander Graf wrote: > > > On 05.11.14 07:17, Samuel Mendoza-Jonas wrote: >> If a guest reboots during a running migration, changes to the >> hash page table are not necessarily updated on the destination. >> Opening a new file descriptor to th

[Qemu-devel] [PATCH 2/2] spapr: Fix stale HTAB during live migration (TCG)

2014-11-04 Thread Samuel Mendoza-Jonas
If a TCG guest reboots during a running migration HTAB entries are not marked dirty, and the destination boots with an invalid HTAB. When a reboot occurs reset the state of HTAB migration, and explicitly inform the destination of invalid entries. Signed-off-by: Samuel Mendoza-Jonas --- hw/ppc

[Qemu-devel] [PATCH 1/2] spapr: Fix stale HTAB during live migration (KVM)

2014-11-04 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- hw/ppc/spapr.c | 47

[Qemu-devel] [PATCH 0/2] spapr: Fix stale HTAB during live migration

2014-11-04 Thread Samuel Mendoza-Jonas
If a spapr guest reboots during a live migration, the guest HTAB on the destination is not updated properly, usually resulting in a kernel panic. This is a (delayed!) follow up to my previous patch including a fix for TCG guests as well as KVM. Samuel Mendoza-Jonas (2): spapr: Fix stale HTAB

[Qemu-devel] [PATCH V5] spapr: Fix stale HTAB during live migration

2014-08-21 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- Changes in v5: Use mutex on

[Qemu-devel] [PATCH V4] spapr: Fix stale HTAB during live migration

2014-08-19 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- Changes in v4: Readability

[Qemu-devel] [PATCH V3] spapr: Fix stale HTAB during live migration

2014-08-18 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- Changes in v3: Pointed out by

[Qemu-devel] [PATCH V2] spapr: Fix stale HTAB during live migration

2014-08-17 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- Changes in v2: Forgot check on

[Qemu-devel] [PATCH] spapr: Fix stale HTAB during live migration

2014-08-17 Thread Samuel Mendoza-Jonas
If a guest reboots during a running migration, changes to the hash page table are not necessarily updated on the destination. Opening a new file descriptor to the HTAB forces the migration handler to resend the entire table. Signed-off-by: Samuel Mendoza-Jonas --- hw/ppc/spapr.c | 6 ++ 1