migration: API to clear bits of guest free pages from the dirty bitmap
commit6bcb05fc4211d2bd88fe73c65e93602428c51e5b
authorWei Wang <wei.w.wang@intel.com>
Tue, 11 Dec 2018 08:24:50 +0000 (11 16:24 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 6 Mar 2019 10:49:18 +0000 (6 10:49 +0000)
treeb9a33f17163c3b61a52b3bbdd73e8f259d6c0a9f
parent386a907b37a9321bc5d699bc37104d6ffba1b34d
migration: API to clear bits of guest free pages from the dirty bitmap

This patch adds an API to clear bits corresponding to guest free pages
from the dirty bitmap. Spilt the free page block if it crosses the QEMU
RAMBlock boundary.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
CC: Dr. David Alan Gilbert <dgilbert@redhat.com>
CC: Juan Quintela <quintela@redhat.com>
CC: Michael S. Tsirkin <mst@redhat.com>
CC: Peter Xu <peterx@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <1544516693-5395-5-git-send-email-wei.w.wang@intel.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/misc.h
migration/ram.c