x86/mm: introduce p2m_{init,free}_logdirty()
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Fri, 23 Nov 2018 11:06:52 +0000 (12:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Nov 2018 11:06:52 +0000 (12:06 +0100)
commit1698309f3e5eafedff66b88857c6dc9ad2c9f61b
treecbf497c42e2761322fa13393e0d65ec5d987d6f9
parentcb36aafa76a49bb45a08d00e4f8682e79637c6bb
x86/mm: introduce p2m_{init,free}_logdirty()

Add logdirty_ranges allocator / deallocator helpers.
p2m_init_logdirty() will not re-allocate if
p2m->logdirty ranges has already been allocated.

Move the rangeset deallocation call from p2m_teardown_hostp2m()
to p2m_free_one() - we will want this to apply to altp2ms
as well.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m.c