Displaying 4 results from an estimated 4 matches for "xen_sysctl_physinfo".
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
...gt;
---
Export NUMA topology in physinfo hcall
diff -r 6f3c6fb05af3 tools/libxc/xc_misc.c
--- a/tools/libxc/xc_misc.c Mon Sep 11 13:45:23 2006 -0500
+++ b/tools/libxc/xc_misc.c Mon Sep 11 13:45:23 2006 -0500
@@ -39,6 +39,10 @@ int xc_physinfo(int xc_handle,
DECLARE_SYSCTL;
sysctl.cmd = XEN_SYSCTL_physinfo;
+
+ /* set pointers to caller''s so memcpy doesn''t clobber them */
+ sysctl.u.physinfo.memory_chunks = put_info->memory_chunks;
+ sysctl.u.physinfo.node_to_cpu = put_info->node_to_cpu;
if ( (ret = do_sysctl(xc_handle, &sysctl)) != 0 )
return ret;...
2013 Jul 04
2
Re: [libvirt] [PATCH 1/4] libxl: implement NUMA capabilities reporting
...g known and/or expected?
I went checking this down in Xen, and here''s what I found.
total_memory is: info.total_pages/((1 << 20) / vinfo->pagesize)
where ''info'' is what libxl_get_physinfo() provides. On its turn,
libxl_get_physinfo() is xc_physinfo(), which is XEN_SYSCTL_physinfo,
which uses total_pages, which is assigned the number of pages, down in
__start_xen(), as it results from parsing the E820 map (looking for RAM
blocks).
OTOH, memsize comes from libxl_get_numainfo(), which is xc_numainfo(),
which is XEN_SYSCTL_numainfo, which puts in memsize what
node_spanned_page...
2007 Oct 19
4
[PATCH] nr_cpus calculation problem due to incorrect sockets_per_node
Testing on an 8-node 128-way NUMA machine has exposed a problem with
Xen''s nr_cpus calculation. In this case, since Xen cuts off recognized
CPUs at 32, the machine appears to have 16 CPUs on the first and second
nodes and none on the remaining nodes. Given this asymmetry, the
calculation of sockets_per_node (which is later used to calculate
nr_cpus) is incorrect:
2012 Sep 04
2
[PATCH] valgrind: Support for ioctls used by Xen toolstack processes.
...SYSCTL_CPUPOOL_OP_MOVEDOMAIN)
+ PRE_XEN_SYSCTL_READ(cpupool_op, domid);
+
+ if (sysctl->u.cpupool_op.op == XEN_SYSCTL_CPUPOOL_OP_ADDCPU ||
+ sysctl->u.cpupool_op.op == XEN_SYSCTL_CPUPOOL_OP_RMCPU)
+ PRE_XEN_SYSCTL_READ(cpupool_op, cpu);
+
+ break;
+
+ case XEN_SYSCTL_physinfo:
+ /* No input params */
+ break;
+
+ case XEN_SYSCTL_topologyinfo:
+ PRE_XEN_SYSCTL_READ(topologyinfo, max_cpu_index);
+ PRE_XEN_SYSCTL_READ(topologyinfo, cpu_to_core);
+ PRE_XEN_SYSCTL_READ(topologyinfo, cpu_to_socket);
+ PRE_XEN_SYSCTL_READ(topologyinfo, cpu_to_no...