diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-12-03 13:57:07 +0800 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-12-04 12:05:13 +0200 |
commit | 78788ac9cfdbb6df64c5a232974b116cc0f437cb (patch) | |
tree | 5d5bd0427c0501a06cada8e99d14d8b76b216b1c /libkvm/kvm-ia64.h | |
parent | 34a42b8b4c73b561ab7e6d7fad28e5fb29406b3e (diff) |
kvm: libkvm: Add kvm-ia64.h.
This patch adds kvm-ia64.h, and use getpagesize to get host page size,
since ia64 can use multiple type of page size in kernel.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'libkvm/kvm-ia64.h')
-rw-r--r-- | libkvm/kvm-ia64.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libkvm/kvm-ia64.h b/libkvm/kvm-ia64.h new file mode 100644 index 00000000..304496d5 --- /dev/null +++ b/libkvm/kvm-ia64.h @@ -0,0 +1,28 @@ +/* + * This header is for functions & variables that will ONLY be + * used inside libkvm for x86. + * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE + * WITHIN LIBKVM. + * + * derived from libkvm.c + * + * Copyright (C) 2006 Qumranet, Inc. + * + * Authors: + * Avi Kivity <avi@qumranet.com> + * Yaniv Kamay <yaniv@qumranet.com> + * + * This work is licensed under the GNU LGPL license, version 2. + */ + +#ifndef KVM_IA64_H +#define KVM_IA64_H + +#include "kvm-common.h" + +extern int kvm_page_size; + +#define PAGE_SIZE kvm_page_size +#define PAGE_MASK (~(kvm_page_size - 1)) + +#endif |