diff options
author | Xiantao Zhang <xiantao.zhang@intel.com> | 2008-11-21 20:58:11 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 16:54:59 +0200 |
commit | 7d637978151511148912fe2ea2bac9f9c64f5c35 (patch) | |
tree | 22e335962c537535f3afae23f5f46b76b7d6e248 /arch/ia64/include | |
parent | d176720d34c72f7a8474a12204add93e54fe3ef1 (diff) | |
download | kernel_goldelico_gta04-7d637978151511148912fe2ea2bac9f9c64f5c35.zip kernel_goldelico_gta04-7d637978151511148912fe2ea2bac9f9c64f5c35.tar.gz kernel_goldelico_gta04-7d637978151511148912fe2ea2bac9f9c64f5c35.tar.bz2 |
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/include')
-rw-r--r-- | arch/ia64/include/asm/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/kvm_host.h b/arch/ia64/include/asm/kvm_host.h index 678e264..0560f3f 100644 --- a/arch/ia64/include/asm/kvm_host.h +++ b/arch/ia64/include/asm/kvm_host.h @@ -39,6 +39,7 @@ #define EXIT_REASON_EXTERNAL_INTERRUPT 6 #define EXIT_REASON_IPI 7 #define EXIT_REASON_PTC_G 8 +#define EXIT_REASON_DEBUG 20 /*Define vmm address space and vm data space.*/ #define KVM_VMM_SIZE (__IA64_UL_CONST(16)<<20) @@ -126,6 +127,8 @@ KVM_MEM_DIRTY_LOG_SIZE) / sizeof(struct kvm_vcpu_data) #define KVM_MAX_MEM_SIZE (KVM_P2M_SIZE >> 3 << PAGE_SHIFT) +#define VMM_LOG_LEN 256 + #include <linux/types.h> #include <linux/mm.h> #include <linux/kvm.h> @@ -437,6 +440,7 @@ struct kvm_vcpu_arch { unsigned long opcode; unsigned long cause; + char log_buf[VMM_LOG_LEN]; union context host; union context guest; }; |