WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64]: update ia64 px info transfer corr

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64]: update ia64 px info transfer corresponding to x86 px info update.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Oct 2008 07:51:17 -0700
Delivery-date: Wed, 22 Oct 2008 07:55:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64]: update ia64 px info transfer corresponding to x86 px info update., Xen patchbot-unstable <=