search for: swap_fail

Displaying 11 results from an estimated 11 matches for "swap_fail".

2002 Jul 11
1
help with porting patch from 1.62 to 1.75
...mov si,swap_loading + call cwritestr + + push bx + mov ax,0201h ; read disk, 1 sector + mov bx,trackbuf + mov cx,1 ; track 0, sector 1 + xor dh,dh ; head 0 + mov dl,81h ; second hard drive + int 13h + pop bx + jnc swap_read_ok + call crlf + mov si,swap_failed + jmp abort_load +swap_read_ok: + + mov bx,[bsBytesPerSec] + mov ax,[bx+trackbuf-2] + cmp ax,0AA55h ; Boot sector signature + je swap_bootsec_ok + jmp bad_bootsec +swap_bootsec_ok: + + call crlf + mov si,swap_booting + call cwritestr + + push es + + mov ax,...
2007 Apr 18
1
[patch 5/9] Guest page hinting: mlocked pages.
...2006-09-01 12:50:24.000000000 +0200 +++ linux-2.6-patched/mm/rmap.c 2006-09-01 12:50:24.000000000 +0200 @@ -627,8 +627,17 @@ static int try_to_unmap_one(struct page */ if (!migration && ((vma->vm_flags & VM_LOCKED) || (ptep_clear_flush_young(vma, address, pte)))) { - ret = SWAP_FAIL; - goto out_unmap; + /* + * Check for discarded pages. This can happen if there have + * been discarded pages before a vma gets mlocked. The code + * in make_pages_present will force all discarded pages out + * and reload them. That happens after the VM_LOCKED bit + * has been set. +...
2007 Apr 18
1
[patch 5/9] Guest page hinting: mlocked pages.
...2006-09-01 12:50:24.000000000 +0200 +++ linux-2.6-patched/mm/rmap.c 2006-09-01 12:50:24.000000000 +0200 @@ -627,8 +627,17 @@ static int try_to_unmap_one(struct page */ if (!migration && ((vma->vm_flags & VM_LOCKED) || (ptep_clear_flush_young(vma, address, pte)))) { - ret = SWAP_FAIL; - goto out_unmap; + /* + * Check for discarded pages. This can happen if there have + * been discarded pages before a vma gets mlocked. The code + * in make_pages_present will force all discarded pages out + * and reload them. That happens after the VM_LOCKED bit + * has been set. +...
2007 Apr 18
4
[patch 3/9] Guest page hinting: volatile page cache.
...non(struct page return ret; list_for_each_entry(vma, &anon_vma->head, anon_vma_node) { - ret = try_to_unmap_one(page, vma, migration); + address = vma_address(page, vma); + if (address == -EFAULT) + continue; + ret = try_to_unmap_one(page, vma, address, migration); if (ret == SWAP_FAIL || !page_mapped(page)) break; } @@ -819,6 +819,7 @@ static int try_to_unmap_file(struct page struct vm_area_struct *vma; struct prio_tree_iter iter; int ret = SWAP_AGAIN; + unsigned long address; unsigned long cursor; unsigned long max_nl_cursor = 0; unsigned long max_nl_size = 0;...
2007 Apr 18
4
[patch 3/9] Guest page hinting: volatile page cache.
...non(struct page return ret; list_for_each_entry(vma, &anon_vma->head, anon_vma_node) { - ret = try_to_unmap_one(page, vma, migration); + address = vma_address(page, vma); + if (address == -EFAULT) + continue; + ret = try_to_unmap_one(page, vma, address, migration); if (ret == SWAP_FAIL || !page_mapped(page)) break; } @@ -819,6 +819,7 @@ static int try_to_unmap_file(struct page struct vm_area_struct *vma; struct prio_tree_iter iter; int ret = SWAP_AGAIN; + unsigned long address; unsigned long cursor; unsigned long max_nl_cursor = 0; unsigned long max_nl_size = 0;...
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.
...*vma; + unsigned long address; + + anon_vma = page_lock_anon_vma(page); + if (!anon_vma) + return; + list_for_each_entry(vma, &anon_vma->head, anon_vma_node) { + address = vma_address(page, vma); + if (address == -EFAULT) + continue; + BUG_ON(try_to_unmap_one(page, vma, address, 0) == SWAP_FAIL); + } + spin_unlock(&anon_vma->lock); +} + +/** + * page_unmap_all - removes all mappings of a page + * + * @page: the page which mapping in the vma should be struck down + * + * the caller needs to hold page lock + */ +void page_unmap_all(struct page *page) +{ + BUG_ON(!PageLocked(page) ||...
2007 Apr 18
2
[patch 4/9] Guest page hinting: volatile swap cache.
...*vma; + unsigned long address; + + anon_vma = page_lock_anon_vma(page); + if (!anon_vma) + return; + list_for_each_entry(vma, &anon_vma->head, anon_vma_node) { + address = vma_address(page, vma); + if (address == -EFAULT) + continue; + BUG_ON(try_to_unmap_one(page, vma, address, 0) == SWAP_FAIL); + } + spin_unlock(&anon_vma->lock); +} + +/** + * page_unmap_all - removes all mappings of a page + * + * @page: the page which mapping in the vma should be struck down + * + * the caller needs to hold page lock + */ +void page_unmap_all(struct page *page) +{ + BUG_ON(!PageLocked(page) ||...