diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-04 20:30:12 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-04 20:30:12 +0100 |
commit | 5eeca68ffd007f81ac202eafdc96d44e5bb69bfb (patch) | |
tree | e13e0b26a95bebdff317e2618039024145886428 /xen/common/kernel.c | |
parent | 092b64b838ed9b5dc0f7daea671d500501a419ae (diff) | |
download | xen-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.c | 7 |
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; |