[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64]: update ia64 px info transfer corresponding to x86 px info update.



# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1224646912 -32400
# Node ID d9b70fc0ee0f7be6a36f4b80ab871ee4bd09fee6
# Parent  6db3c096c244c941533c10d29b7262e1b3ce7cec
[IA64]: update ia64 px info transfer corresponding to x86 px info update.

update ia64 px info transfer corresponding to x86 px info update.

Signed-off-by: Liu Jinsong <jinsong.liu@xxxxxxxxx>
---
 xen/arch/ia64/xen/platform_hypercall.c |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff -r 6db3c096c244 -r d9b70fc0ee0f xen/arch/ia64/xen/platform_hypercall.c
--- a/xen/arch/ia64/xen/platform_hypercall.c    Wed Oct 22 12:40:06 2008 +0900
+++ b/xen/arch/ia64/xen/platform_hypercall.c    Wed Oct 22 12:41:52 2008 +0900
@@ -10,6 +10,7 @@
 #include <xen/types.h>
 #include <xen/lib.h>
 #include <xen/sched.h>
+#include <xen/domain.h>
 #include <xen/guest_access.h>
 #include <xen/acpi.h>
 #include <public/platform.h>
@@ -19,15 +20,6 @@ DEFINE_SPINLOCK(xenpf_lock);
 
 extern int set_px_pminfo(uint32_t cpu, struct xen_processor_performance *perf);
 extern long set_cx_pminfo(uint32_t cpu, struct xen_processor_power *power);
-
-int xenpf_copy_px_states(struct processor_performance *pxpt,
-        struct xen_processor_performance *dom0_px_info)
-{
-    if (!pxpt || !dom0_px_info)
-        return -EINVAL;
-    return  copy_from_guest(pxpt->states, dom0_px_info->states,
-                    dom0_px_info->state_count);
-}
 
 long do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op)
 {
@@ -50,6 +42,11 @@ long do_platform_op(XEN_GUEST_HANDLE(xen
         switch ( op->u.set_pminfo.type )
         {
         case XEN_PM_PX:
+            if ( !(xen_processor_pmbits & XEN_PROCESSOR_PM_PX) )
+            {
+                ret = -ENOSYS;
+                break;
+            }
             ret = set_px_pminfo(op->u.set_pminfo.id,
                     &op->u.set_pminfo.perf);
             break;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.