|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] HMVOP_get_param return parameter v
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 37b25baa3a757db532d24eef71e4abfa1f31cedf
# Parent d42e9a6f537883c707ee5f7dd2a2c980881934c8
[IA64] HMVOP_get_param return parameter value
HMVOP_get_param return parameter value within the provided
parameter struct for IPF
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@xxxxxxxxxxxxxx>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@xxxxxxxxxxxxxx>
---
xen/arch/ia64/vmx/vmx_hypercall.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff -r d42e9a6f5378 -r 37b25baa3a75 xen/arch/ia64/vmx/vmx_hypercall.c
--- a/xen/arch/ia64/vmx/vmx_hypercall.c Fri Aug 18 15:01:04 2006 -0600
+++ b/xen/arch/ia64/vmx/vmx_hypercall.c Tue Aug 22 14:40:48 2006 -0600
@@ -59,21 +59,23 @@ do_hvm_op(unsigned long op, XEN_GUEST_HA
}
else if (IS_PRIV(current->domain)) {
d = find_domain_by_id(a.domid);
- if (!d)
+ if (d == NULL)
return -ESRCH;
}
else
return -EPERM;
if (op == HVMOP_set_param) {
+ d->arch.hvm_domain.params[a.index] = a.value;
rc = 0;
- d->arch.hvm_domain.params[a.index] = a.value;
}
- else
- rc = d->arch.hvm_domain.params[a.index];
+ else {
+ a.value = d->arch.hvm_domain.params[a.index];
+ rc = copy_to_guest(arg, &a, 1) ? -EFAULT : 0;
+ }
put_domain(d);
- return rc;
+ break;
}
default:
_______________________________________________
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] HMVOP_get_param return parameter value,
Xen patchbot-unstable <=
|
|
|
|
|