aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64/kvm/kvm_lib.c
diff options
context:
space:
mode:
authorXiantao Zhang2008-11-21 20:58:11 +0800
committerAvi Kivity2008-12-31 16:54:59 +0200
commit7d637978151511148912fe2ea2bac9f9c64f5c35 (patch)
tree22e335962c537535f3afae23f5f46b76b7d6e248 /arch/ia64/kvm/kvm_lib.c
parentd176720d34c72f7a8474a12204add93e54fe3ef1 (diff)
KVM: ia64: Define printk function for kvm-intel module
kvm-intel module is relocated to an isolated address space with kernel, so it can't call host kernel's printk for debug purpose. In the module, we implement the printk to output debug info of vmm. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64/kvm/kvm_lib.c')
-rw-r--r--arch/ia64/kvm/kvm_lib.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/ia64/kvm/kvm_lib.c b/arch/ia64/kvm/kvm_lib.c
new file mode 100644
index 000000000000..a85cb611ecd7
--- /dev/null
+++ b/arch/ia64/kvm/kvm_lib.c
@@ -0,0 +1,15 @@
+/*
+ * kvm_lib.c: Compile some libraries for kvm-intel module.
+ *
+ * Just include kernel's library, and disable symbols export.
+ * Copyright (C) 2008, Intel Corporation.
+ * Xiantao Zhang (xiantao.zhang@intel.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+#undef CONFIG_MODULES
+#include "../../../lib/vsprintf.c"
+#include "../../../lib/ctype.c"