5a49a4e63b
22045-python27-compat.patch Thu Nov 11 18:44:48 CST 2010 - cyliu@novell.com - bnc#641144 - FV Xen VM running windows or linux cannot write to virtual floppy drive bdrv_default_rwflag.patch - fate#310510 - fix xenpaging xenpaging.optimize_p2m_mem_paging_populate.patch xenpaging.HVMCOPY_gfn_paged_out.patch - bnc#649864 - automatic numa cpu placement of xen conflicts with cpupools 22326-cpu-pools-numa-placement.patch - fate#310510 - fix xenpaging xenpaging.populate_only_if_paged.patch - revert logic, populate needs to happen unconditionally xenpaging.p2m_mem_paging_populate_if_p2m_ram_paged.patch - invalidate current mfn only if gfn is not in flight or done xenpaging.mem_event_check_ring-free_requests.patch - print info only if 1 instead of 2 slots are free xenpaging.guest_remove_page.patch - check mfn before usage in resume function xenpaging.machine_to_phys_mapping.patch - check mfn before usage in resume function - bnc#552115 - Remove target discovery in block-iscsi OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=82
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
Subject: xenpaging: optimize p2m_mem_paging_populate
|
|
|
|
p2m_mem_paging_populate will always put another request in the ring. To
|
|
reduce pressure on the ring, place only required requests in the ring.
|
|
If the gfn was already processed by another thread, and the current vcpu
|
|
does not need to be paused, p2m_mem_paging_resume will do nothing with
|
|
the request. And also xenpaging will drop the request if the vcpu does
|
|
not need a wakeup.
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
---
|
|
xen/arch/x86/mm/p2m.c | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
--- xen-4.0.1-testing.orig/xen/arch/x86/mm/p2m.c
|
|
+++ xen-4.0.1-testing/xen/arch/x86/mm/p2m.c
|
|
@@ -2571,12 +2571,12 @@ void p2m_mem_paging_populate(struct doma
|
|
mem_event_request_t req;
|
|
p2m_type_t p2mt;
|
|
|
|
- memset(&req, 0, sizeof(req));
|
|
-
|
|
/* Check that there's space on the ring for this request */
|
|
if ( mem_event_check_ring(d) )
|
|
return;
|
|
|
|
+ memset(&req, 0, sizeof(req));
|
|
+
|
|
/* Fix p2m mapping */
|
|
/* XXX: It seems inefficient to have this here, as it's only needed
|
|
* in one case (ept guest accessing paging out page) */
|
|
@@ -2594,6 +2594,11 @@ void p2m_mem_paging_populate(struct doma
|
|
vcpu_pause_nosync(v);
|
|
req.flags |= MEM_EVENT_FLAG_VCPU_PAUSED;
|
|
}
|
|
+ else if ( p2mt != p2m_ram_paging_out && p2mt != p2m_ram_paged )
|
|
+ {
|
|
+ /* gfn is already on its way back and vcpu is not paused */
|
|
+ return;
|
|
+ }
|
|
|
|
/* Send request to pager */
|
|
req.gfn = gfn;
|