2010-11-12 18:55:23 +01:00
|
|
|
Subject: xenpaging: populate paged-out pages unconditionally
|
2010-10-20 23:00:35 +02:00
|
|
|
|
2010-11-12 18:55:23 +01:00
|
|
|
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.
|
2010-10-20 23:00:35 +02:00
|
|
|
|
2011-01-14 19:24:51 +01:00
|
|
|
(xen-unstable changeset: 22437:9a9bcf399856)
|
|
|
|
|
2010-10-20 23:00:35 +02:00
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
|
|
|
|
---
|
2010-11-12 18:55:23 +01:00
|
|
|
xen/common/grant_table.c | 3 +--
|
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
2010-10-20 23:00:35 +02:00
|
|
|
|
2011-02-04 22:19:54 +01:00
|
|
|
Index: xen-4.0.2-testing/xen/common/grant_table.c
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.0.2-testing.orig/xen/common/grant_table.c
|
|
|
|
+++ xen-4.0.2-testing/xen/common/grant_table.c
|
2010-11-12 18:55:23 +01:00
|
|
|
@@ -156,8 +156,7 @@ static int __get_paged_frame(unsigned lo
|
|
|
|
*frame = mfn_x(mfn);
|
2010-10-20 23:00:35 +02:00
|
|
|
if ( p2m_is_paging(p2mt) )
|
|
|
|
{
|
2010-11-12 18:55:23 +01:00
|
|
|
- if ( p2m_is_paged(p2mt) )
|
|
|
|
- p2m_mem_paging_populate(rd, gfn);
|
|
|
|
+ p2m_mem_paging_populate(rd, gfn);
|
|
|
|
rc = GNTST_eagain;
|
2010-10-20 23:00:35 +02:00
|
|
|
}
|
2010-11-12 18:55:23 +01:00
|
|
|
}
|