[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/mm: Remove p2m_ram_paging_in
# HG changeset patch # User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> # Date 1328185354 0 # Node ID 1f8dd56dacdc7004bbe712c984e2c759fcd38696 # Parent a91aa7a582fb0e13b0782f7d17c249d4b89dddc7 x86/mm: Remove p2m_ram_paging_in This state in the paging state machine became unnecessary after the last few updates. Once eliminated, rename p2m_ram_paging_in_start to p2m_ram_paging_in. Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Tim Deegan <tim@xxxxxxx> --- diff -r a91aa7a582fb -r 1f8dd56dacdc xen/arch/x86/mm.c --- a/xen/arch/x86/mm.c Tue Jan 31 16:34:39 2012 +0000 +++ b/xen/arch/x86/mm.c Thu Feb 02 12:22:34 2012 +0000 @@ -3573,7 +3573,7 @@ rc = -ENOENT; break; } - else if ( p2m_ram_paging_in_start == l1e_p2mt && + else if ( p2m_ram_paging_in == l1e_p2mt && !mfn_valid(l1emfn) ) { put_gfn(pg_owner, l1egfn); @@ -3622,7 +3622,7 @@ rc = -ENOENT; break; } - else if ( p2m_ram_paging_in_start == l2e_p2mt && + else if ( p2m_ram_paging_in == l2e_p2mt && !mfn_valid(l2emfn) ) { put_gfn(pg_owner, l2egfn); @@ -3657,7 +3657,7 @@ rc = -ENOENT; break; } - else if ( p2m_ram_paging_in_start == l3e_p2mt && + else if ( p2m_ram_paging_in == l3e_p2mt && !mfn_valid(l3emfn) ) { put_gfn(pg_owner, l3egfn); @@ -3692,7 +3692,7 @@ rc = -ENOENT; break; } - else if ( p2m_ram_paging_in_start == l4e_p2mt && + else if ( p2m_ram_paging_in == l4e_p2mt && !mfn_valid(l4emfn) ) { put_gfn(pg_owner, l4egfn); diff -r a91aa7a582fb -r 1f8dd56dacdc xen/arch/x86/mm/p2m-ept.c --- a/xen/arch/x86/mm/p2m-ept.c Tue Jan 31 16:34:39 2012 +0000 +++ b/xen/arch/x86/mm/p2m-ept.c Thu Feb 02 12:22:34 2012 +0000 @@ -82,7 +82,6 @@ case p2m_ram_paging_out: case p2m_ram_paged: case p2m_ram_paging_in: - case p2m_ram_paging_in_start: default: entry->r = entry->w = entry->x = 0; break; @@ -381,7 +380,7 @@ old_entry = *ept_entry; if ( mfn_valid(mfn_x(mfn)) || direct_mmio || p2m_is_paged(p2mt) || - (p2mt == p2m_ram_paging_in_start) ) + (p2mt == p2m_ram_paging_in) ) { /* Construct the new entry, and then write it once */ new_entry.emt = epte_get_entry_emt(p2m->domain, gfn, mfn, &ipat, diff -r a91aa7a582fb -r 1f8dd56dacdc xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c Tue Jan 31 16:34:39 2012 +0000 +++ b/xen/arch/x86/mm/p2m.c Thu Feb 02 12:22:34 2012 +0000 @@ -932,7 +932,7 @@ if ( p2mt == p2m_ram_paging_out ) req.flags |= MEM_EVENT_FLAG_EVICT_FAIL; - set_p2m_entry(p2m, gfn, mfn, PAGE_ORDER_4K, p2m_ram_paging_in_start, a); + set_p2m_entry(p2m, gfn, mfn, PAGE_ORDER_4K, p2m_ram_paging_in, a); } p2m_unlock(p2m); @@ -991,7 +991,7 @@ ret = -ENOENT; /* Allow missing pages */ - if ( (p2mt != p2m_ram_paging_in_start) && (p2mt != p2m_ram_paged) ) + if ( (p2mt != p2m_ram_paging_in) && (p2mt != p2m_ram_paged) ) goto out; /* Allocate a page if the gfn does not have one yet */ @@ -1083,8 +1083,7 @@ mfn = p2m->get_entry(p2m, rsp.gfn, &p2mt, &a, p2m_query, NULL); /* Allow only pages which were prepared properly, or pages which * were nominated but not evicted */ - if ( mfn_valid(mfn) && - (p2mt == p2m_ram_paging_in || p2mt == p2m_ram_paging_in_start) ) + if ( mfn_valid(mfn) && (p2mt == p2m_ram_paging_in) ) { set_p2m_entry(p2m, rsp.gfn, mfn, PAGE_ORDER_4K, paging_mode_log_dirty(d) ? p2m_ram_logdirty : diff -r a91aa7a582fb -r 1f8dd56dacdc xen/include/asm-x86/p2m.h --- a/xen/include/asm-x86/p2m.h Tue Jan 31 16:34:39 2012 +0000 +++ b/xen/include/asm-x86/p2m.h Thu Feb 02 12:22:34 2012 +0000 @@ -82,9 +82,8 @@ p2m_ram_paging_out = 9, /* Memory that is being paged out */ p2m_ram_paged = 10, /* Memory that has been paged out */ p2m_ram_paging_in = 11, /* Memory that is being paged in */ - p2m_ram_paging_in_start = 12, /* Memory that is being paged in */ - p2m_ram_shared = 13, /* Shared or sharable memory */ - p2m_ram_broken = 14, /* Broken page, access cause domain crash */ + p2m_ram_shared = 12, /* Shared or sharable memory */ + p2m_ram_broken = 13, /* Broken page, access cause domain crash */ } p2m_type_t; /* @@ -131,7 +130,6 @@ | p2m_to_mask(p2m_ram_ro) \ | p2m_to_mask(p2m_ram_paging_out) \ | p2m_to_mask(p2m_ram_paged) \ - | p2m_to_mask(p2m_ram_paging_in_start) \ | p2m_to_mask(p2m_ram_paging_in) \ | p2m_to_mask(p2m_ram_shared)) @@ -158,7 +156,6 @@ #define P2M_PAGING_TYPES (p2m_to_mask(p2m_ram_paging_out) \ | p2m_to_mask(p2m_ram_paged) \ - | p2m_to_mask(p2m_ram_paging_in_start) \ | p2m_to_mask(p2m_ram_paging_in)) #define P2M_PAGED_TYPES (p2m_to_mask(p2m_ram_paged)) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |