[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [LINUX] Update the hvm_op wrapper now that the return value of get_param is in
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |