Displaying 5 results from an estimated 5 matches for "xc_physinfo".
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
...), 22 deletions(-)
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
---
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;...
2006 Aug 14
0
[PATCH] remove another xc_dom0_op() user
...c238664cb -r dc12f0942649 tools/xenmon/xenbaked.c
--- a/tools/xenmon/xenbaked.c Mon Aug 14 15:40:36 2006 +0100
+++ b/tools/xenmon/xenbaked.c Mon Aug 14 23:57:43 2006 +0100
@@ -444,14 +444,11 @@ struct t_rec **init_rec_ptrs(struct t_bu
*/
unsigned int get_num_cpus(void)
{
- dom0_op_t op;
+ xc_physinfo_t physinfo;
int xc_handle = xc_interface_open();
int ret;
- op.cmd = DOM0_PHYSINFO;
- op.interface_version = DOM0_INTERFACE_VERSION;
-
- ret = xc_dom0_op(xc_handle, &op);
+ ret = xc_physinfo(xc_handle, &physinfo);
if ( ret != 0 )
{
@@ -460,12 +457,12 @@ u...
2013 Jul 04
2
Re: [libvirt] [PATCH 1/4] libxl: implement NUMA capabilities reporting
...else), is that something 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 i...
2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...urbo mode (%d - %s)\n",
+ errno, strerror(errno));
}
struct {
@@ -1191,15 +1164,17 @@ int main(int argc, char *argv[])
if ( !xc_handle )
{
fprintf(stderr, "failed to get the handler\n");
- return 0;
+ return EIO;
}
ret = xc_physinfo(xc_handle, &physinfo);
if ( ret )
{
- fprintf(stderr, "failed to get the processor information\n");
+ ret = errno;
+ fprintf(stderr, "failed to get processor information (%d - %s)\n",
+ ret, strerror(ret));
xc_interface_...
2012 Jul 04
53
[PATCH 00 of 10 v3] Automatic NUMA placement for xl
Hello,
Third version of the NUMA placement series Xen 4.2.
All the comments received during v2''s review have been addressed (more details
in single changelogs).
The most notable changes are the following:
- the libxl_cpumap --> libxl_bitmap renaming has been rebased on top of the
recent patches that allows us to allocate bitmaps of different sizes;
- the heuristics for deciding