[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 09 of 14] Allow log dirty mode to be used in conjunction with paging
xen/arch/x86/mm/p2m.c | 4 +++- xen/include/asm-x86/p2m.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) Allow pages typed log dirty to be paged out, and the proper type to restored when paging pages back in. Signed-off-by: Andres lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> Signed-off-by: Adin Scannell <adin@xxxxxxxxxxx> diff -r 7e8211d0f41d -r 76802e649c2c xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -1061,7 +1061,9 @@ void p2m_mem_paging_resume(struct domain if ( mfn_valid(mfn) && (p2mt == p2m_ram_paging_in || p2mt == p2m_ram_paging_in_start) ) { - set_p2m_entry(p2m, rsp.gfn, mfn, PAGE_ORDER_4K, p2m_ram_rw, a); + set_p2m_entry(p2m, rsp.gfn, mfn, PAGE_ORDER_4K, + paging_mode_log_dirty(d) ? p2m_ram_logdirty : p2m_ram_rw, + a); set_gpfn_from_mfn(mfn_x(mfn), rsp.gfn); audit_p2m(p2m, 1); } diff -r 7e8211d0f41d -r 76802e649c2c xen/include/asm-x86/p2m.h --- a/xen/include/asm-x86/p2m.h +++ b/xen/include/asm-x86/p2m.h @@ -150,7 +150,8 @@ typedef enum { #define P2M_MAGIC_TYPES (p2m_to_mask(p2m_populate_on_demand)) /* Pageable types */ -#define P2M_PAGEABLE_TYPES (p2m_to_mask(p2m_ram_rw)) +#define P2M_PAGEABLE_TYPES (p2m_to_mask(p2m_ram_rw) \ + | p2m_to_mask(p2m_ram_logdirty) ) #define P2M_PAGING_TYPES (p2m_to_mask(p2m_ram_paging_out) \ | p2m_to_mask(p2m_ram_paged) \ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |