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
44 lines
1.9 KiB
Diff
44 lines
1.9 KiB
Diff
# HG changeset patch
|
|
# User Juergen Gross <juergen.gross@ts.fujitsu.com>
|
|
# Date 1288264929 -3600
|
|
# Node ID dc66c13a29f9af67e0258f688bcd6330cf515383
|
|
# Parent 4ac03710fc320e8f76014ca27849da03b85dff9d
|
|
avoid numa placement of cpus with active cpupools
|
|
|
|
When using cpupools don't pin vcpus to numa nodes as this might
|
|
conflict with the cpupool definition.
|
|
numa placement should be handled by cpupool configuration instead.
|
|
|
|
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
|
|
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
|
|
|
|
Index: xen-4.0.1-testing/tools/python/xen/xend/XendCPUPool.py
|
|
===================================================================
|
|
--- xen-4.0.1-testing.orig/tools/python/xen/xend/XendCPUPool.py
|
|
+++ xen-4.0.1-testing/tools/python/xen/xend/XendCPUPool.py
|
|
@@ -881,6 +881,11 @@ class XendCPUPool(XendBase):
|
|
lookup_pool = classmethod(lookup_pool)
|
|
|
|
|
|
+ def number_of_pools(cls):
|
|
+ return len(xc.cpupool_getinfo())
|
|
+
|
|
+ number_of_pools = classmethod(number_of_pools)
|
|
+
|
|
def _cpu_number_to_ref(cls, number):
|
|
node = XendNode.instance()
|
|
for cpu_ref in node.get_host_cpu_refs():
|
|
Index: xen-4.0.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
===================================================================
|
|
--- xen-4.0.1-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
|
+++ xen-4.0.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
@@ -2790,7 +2790,7 @@ class XendDomainInfo:
|
|
return map(lambda x: x[0], sorted(enumerate(nodeload), key=lambda x:x[1]))
|
|
|
|
info = xc.physinfo()
|
|
- if info['nr_nodes'] > 1:
|
|
+ if info['nr_nodes'] > 1 and XendCPUPool.number_of_pools() < 2:
|
|
node_memory_list = info['node_to_memory']
|
|
needmem = self.image.getRequiredAvailableMemory(self.info['memory_dynamic_max']) / 1024
|
|
candidate_node_list = []
|