x86: rework paging_log_dirty_op to work with hvm guests
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 15 May 2015 08:08:33 +0000 (10:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 May 2015 08:08:33 +0000 (10:08 +0200)
commita809eeea06d20b115d78f12e473502bcb6209844
treebdc64e00f74c41c0c83228f1e5e3a4f55b27d6c0
parentacc0899ef41e763c665c542beca6809049fac11c
x86: rework paging_log_dirty_op to work with hvm guests

When the caller of paging_log_dirty_op is a hvm guest Xen would choke when
trying to copy the dirty bitmap to the guest because the paging lock is
already held.

Fix this by independently mapping each page of the guest bitmap as needed
without the paging lock held.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/paging.c
xen/include/asm-x86/domain.h