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] [LINUX] Update the hvm_op wrapper now tha

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [LINUX] Update the hvm_op wrapper now that the return value of get_param is in
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 19 Aug 2006 02:40:28 +0000
Delivery-date: Fri, 18 Aug 2006 19:42:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 00a70786e550d0ea9bb02e1cc27b2ab841d7a75b
# Parent  4b145f81fce466a0b789fe14f0912a8babcebfbd
[LINUX] Update the hvm_op wrapper now that the return value of get_param is in
the parameter structure rather than the hypercall return value.
Signed-off-by: Steven Smith <ssmith@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/include/xen/hvm.h |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -r 4b145f81fce4 -r 00a70786e550 linux-2.6-xen-sparse/include/xen/hvm.h
--- a/linux-2.6-xen-sparse/include/xen/hvm.h    Wed Aug 16 16:14:03 2006 +0100
+++ b/linux-2.6-xen-sparse/include/xen/hvm.h    Wed Aug 16 16:15:46 2006 +0100
@@ -8,10 +8,17 @@ static inline unsigned long hvm_get_para
 static inline unsigned long hvm_get_parameter(int idx)
 {
        struct xen_hvm_param xhv;
+       int r;
 
        xhv.domid = DOMID_SELF;
        xhv.index = idx;
-       return HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
+       r = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
+       if (r < 0) {
+               printk(KERN_ERR "cannot get hvm parameter %d: %d.\n",
+                      idx, r);
+               return 0;
+       }
+       return xhv.value;
 }
 
 #endif /* XEN_HVM_H__ */

_______________________________________________
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] [LINUX] Update the hvm_op wrapper now that the return value of get_param is in, Xen patchbot-unstable <=