search for: page_make_stable

Displaying 15 results from an estimated 15 matches for "page_make_stable".

2007 Apr 18
4
[patch 3/9] Guest page hinting: volatile page cache.
...unter is decreased (put_page_testzero), and when the page map counter is increased (page_add_file_rmap). All page references acquired with find_get_page and friends can be used to access the page frame content. A page reference grabbed from a page table cannot be used to access the page content. A page_make_stable needs to be done first and if that fails the page needs to get discarded. That removes the page table entry as well. Two new page flags are added. To guard against concurrent page state updates the PG_state_change flag is used. It prevents that a transition to the stable state can "overtake&q...
2007 Apr 18
4
[patch 3/9] Guest page hinting: volatile page cache.
...unter is decreased (put_page_testzero), and when the page map counter is increased (page_add_file_rmap). All page references acquired with find_get_page and friends can be used to access the page frame content. A page reference grabbed from a page table cannot be used to access the page content. A page_make_stable needs to be done first and if that fails the page needs to get discarded. That removes the page table entry as well. Two new page flags are added. To guard against concurrent page state updates the PG_state_change flag is used. It prevents that a transition to the stable state can "overtake&q...
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic
2007 Apr 18
2
[patch 4/9] Guest page hinting: volatile swap cache.
..._exclusive_swap_page(struct pa /* Recheck the page count with the swapcache lock held.. */ write_lock_irq(&swapper_space.tree_lock); if ((page_count(page) == 2) && !PageWriteback(page)) { - __delete_from_swap_cache(page); - SetPageDirty(page); - retval = 1; + if (likely(page_make_stable(page))) { + __delete_from_swap_cache(page); + SetPageDirty(page); + retval = 1; + } } write_unlock_irq(&swapper_space.tree_lock); } @@ -400,7 +402,13 @@ void free_swap_and_cache(swp_entry_t ent p = swap_info_get(entry); if (p) { if (swap_entry_free(p, swp_offset(entry)...
2007 Apr 18
2
[patch 4/9] Guest page hinting: volatile swap cache.
..._exclusive_swap_page(struct pa /* Recheck the page count with the swapcache lock held.. */ write_lock_irq(&swapper_space.tree_lock); if ((page_count(page) == 2) && !PageWriteback(page)) { - __delete_from_swap_cache(page); - SetPageDirty(page); - retval = 1; + if (likely(page_make_stable(page))) { + __delete_from_swap_cache(page); + SetPageDirty(page); + retval = 1; + } } write_unlock_irq(&swapper_space.tree_lock); } @@ -400,7 +402,13 @@ void free_swap_and_cache(swp_entry_t ent p = swap_info_get(entry); if (p) { if (swap_entry_free(p, swp_offset(entry)...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
...s one more pitfall. The transfer of the hardware dirty bit to the software dirty bit needs to make sure that the page gets into the stable state before the hardware dirty bit is cleared. The primitive page_test_and_clear_dirty is split into page_test_dirty and page_clear_dirty to be able to place a page_make_stable call between them. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> --- arch/s390/Kconfig | 5 ++ arch/s390/kernel/traps.c | 4 ++ arch/s390/mm/fault.c | 73 +++++++++++++++++++++++++++++++++++++++++ include/asm-generic/pgtable.h | 11 +++++...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
...s one more pitfall. The transfer of the hardware dirty bit to the software dirty bit needs to make sure that the page gets into the stable state before the hardware dirty bit is cleared. The primitive page_test_and_clear_dirty is split into page_test_dirty and page_clear_dirty to be able to place a page_make_stable call between them. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> --- arch/s390/Kconfig | 5 ++ arch/s390/kernel/traps.c | 4 ++ arch/s390/mm/fault.c | 73 +++++++++++++++++++++++++++++++++++++++++ include/asm-generic/pgtable.h | 11 +++++...
2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
...oved. + * - page_shrink_discards: + * Frees all pages that free_hot_cold_page has put on the list of + * discarded pages. */ extern void page_unmap_all(struct page *page); extern void page_discard(struct page *page); +extern unsigned long page_shrink_discards(void); static inline int page_make_stable(struct page *page) { diff -urpN linux-2.6/mm/page_alloc.c linux-2.6-patched/mm/page_alloc.c --- linux-2.6/mm/page_alloc.c 2006-09-01 12:50:25.000000000 +0200 +++ linux-2.6-patched/mm/page_alloc.c 2006-09-01 12:50:25.000000000 +0200 @@ -786,6 +786,42 @@ void drain_local_pages(void) } #endif /* CO...
2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
...oved. + * - page_shrink_discards: + * Frees all pages that free_hot_cold_page has put on the list of + * discarded pages. */ extern void page_unmap_all(struct page *page); extern void page_discard(struct page *page); +extern unsigned long page_shrink_discards(void); static inline int page_make_stable(struct page *page) { diff -urpN linux-2.6/mm/page_alloc.c linux-2.6-patched/mm/page_alloc.c --- linux-2.6/mm/page_alloc.c 2006-09-01 12:50:25.000000000 +0200 +++ linux-2.6-patched/mm/page_alloc.c 2006-09-01 12:50:25.000000000 +0200 @@ -786,6 +786,42 @@ void drain_local_pages(void) } #endif /* CO...
2009 Mar 27
16
[patch 0/6] Guest page hinting version 7.
Greetings, the circus is back in town -- another version of the guest page hinting patches. The patches differ from version 6 only in the kernel version, they apply against 2.6.29. My short sniff test showed that the code is still working as expected. To recap (you can skip this if you read the boiler plate of the last version of the patches): The main benefit for guest page hinting vs. the
2009 Mar 27
16
[patch 0/6] Guest page hinting version 7.
Greetings, the circus is back in town -- another version of the guest page hinting patches. The patches differ from version 6 only in the kernel version, they apply against 2.6.29. My short sniff test showed that the code is still working as expected. To recap (you can skip this if you read the boiler plate of the last version of the patches): The main benefit for guest page hinting vs. the
2009 Mar 27
16
[patch 0/6] Guest page hinting version 7.
Greetings, the circus is back in town -- another version of the guest page hinting patches. The patches differ from version 6 only in the kernel version, they apply against 2.6.29. My short sniff test showed that the code is still working as expected. To recap (you can skip this if you read the boiler plate of the last version of the patches): The main benefit for guest page hinting vs. the