|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] [ppc] implement DOM0_PHYSINFO
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 4b042ad0755362c22d7a6f54773e59481a990628
# Parent ae59d00d1acd8d6c47f852018d2dd3907fd417ee
[ppc] implement DOM0_PHYSINFO
Unfortunately most info is hard-coded.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/arch/ppc/dom0_ops.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+)
diff -r ae59d00d1acd -r 4b042ad07553 xen/arch/ppc/dom0_ops.c
--- a/xen/arch/ppc/dom0_ops.c Wed Jun 14 18:30:41 2006 -0400
+++ b/xen/arch/ppc/dom0_ops.c Wed Jun 14 18:32:40 2006 -0400
@@ -59,6 +59,24 @@ long arch_do_dom0_op(struct dom0_op *op,
}
break;
+ case DOM0_PHYSINFO:
+ {
+ dom0_physinfo_t *pi = &op->u.physinfo;
+
+ pi->threads_per_core = 1;
+ pi->cores_per_socket = 1;
+ pi->sockets_per_node = 1;
+ pi->nr_nodes = 1;
+ pi->total_pages = total_pages;
+ pi->free_pages = avail_domheap_pages();
+ pi->cpu_khz = cpu_khz;
+ memset(pi->hw_cap, 0, sizeof(pi->hw_cap));
+ ret = 0;
+ if ( copy_to_guest(u_dom0_op, op, 1) )
+ ret = -EFAULT;
+ }
+ break;
+
default:
ret = -ENOSYS;
break;
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [xenppc-unstable] [ppc] implement DOM0_PHYSINFO,
Xen patchbot-xenppc-unstable <=
|
|
|
|
|