|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 04/21] xenpaging: populate paged-out pages unconditio
Populate a page unconditionally to avoid missing a page-in request.
If the page is already in the process of being paged-in, the this vcpu
will be stopped and later resumed once the page content is usable again.
This matches other p2m_mem_paging_populate usage in the source tree.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
xen/common/grant_table.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- xen-unstable.hg-4.1.22433.orig/xen/common/grant_table.c
+++ xen-unstable.hg-4.1.22433/xen/common/grant_table.c
@@ -156,10 +156,11 @@ static int __get_paged_frame(unsigned lo
if ( p2m_is_valid(p2mt) ) {
*frame = mfn_x(mfn);
- if ( p2m_is_paged(p2mt) )
- p2m_mem_paging_populate(p2m, gfn);
if ( p2m_is_paging(p2mt) )
+ {
+ p2m_mem_paging_populate(p2m, gfn);
rc = GNTST_eagain;
+ }
} else {
*frame = INVALID_MFN;
rc = GNTST_bad_page;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/21] xenpaging changes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 02/21] xenpaging: Open paging file only if xenpaging_init() succeeds, Olaf Hering
- [Xen-devel] [PATCH 04/21] xenpaging: populate paged-out pages unconditionally,
Olaf Hering <=
- [Xen-devel] [PATCH 03/21] xenpaging: allow only one xenpaging binary per guest, Olaf Hering
- [Xen-devel] [PATCH 01/21] xenpaging: break endless loop during inital page-out with large pagefiles, Olaf Hering
- [Xen-devel] [PATCH 07/21] xenpaging: print p2mt for already paged-in pages, Olaf Hering
- [Xen-devel] [PATCH 11/21] xenpaging: optimize p2m_mem_paging_populate, Olaf Hering
- [Xen-devel] [PATCH 13/21] xenpaging: handle temporary out-of-memory conditions during page-in, Olaf Hering
- [Xen-devel] [PATCH 09/21] xenpaging: allow negative num_pages and limit num_pages, Olaf Hering
- [Xen-devel] [PATCH 06/21] xenpaging: print info when free request slots drop below 2, Olaf Hering
- [Xen-devel] [PATCH 12/21] xenpaging: print xenpaging cmdline options, Olaf Hering
- [Xen-devel] [PATCH 08/21] xenpaging: notify policy only on resume, Olaf Hering
- [Xen-devel] [PATCH 14/21] xenpaging: increase recently used pages from 4MB to 64MB, Olaf Hering
|
|
|
|
|