aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kernel.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-08-04 20:30:12 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-08-04 20:30:12 +0100
commit5eeca68ffd007f81ac202eafdc96d44e5bb69bfb (patch)
treee13e0b26a95bebdff317e2618039024145886428 /xen/common/kernel.c
parent092b64b838ed9b5dc0f7daea671d500501a419ae (diff)
downloadxen-5eeca68ffd007f81ac202eafdc96d44e5bb69bfb.tar.gz
xen-5eeca68ffd007f81ac202eafdc96d44e5bb69bfb.tar.bz2
xen-5eeca68ffd007f81ac202eafdc96d44e5bb69bfb.zip
[HVMLOADER] HVM loader initialises hypercall shim and uses
it to interrogate Xen version information. Also add support for HVM hypercall execution on 64-bit host. Signed-off-by: Steven Smith <ssmith@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r--xen/common/kernel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c
index 5c3069bb62..0f14494c20 100644
--- a/xen/common/kernel.c
+++ b/xen/common/kernel.c
@@ -217,6 +217,13 @@ long do_xen_version(int cmd, XEN_GUEST_HANDLE(void) arg)
return (!guest_handle_is_null(arg) ? -EINVAL : PAGE_SIZE);
}
+ case XENVER_guest_handle:
+ {
+ if ( copy_to_guest(arg, (char *)current->domain->handle,
+ sizeof(current->domain->handle)) )
+ return -EFAULT;
+ return 0;
+ }
}
return -ENOSYS;