diff options
author | Xiantao Zhang <xiantao.zhang@intel.com> | 2008-11-21 07:58:11 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:54:59 -0500 |
commit | 7d637978151511148912fe2ea2bac9f9c64f5c35 (patch) | |
tree | 22e335962c537535f3afae23f5f46b76b7d6e248 /arch/ia64/include/asm | |
parent | d176720d34c72f7a8474a12204add93e54fe3ef1 (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/include/asm')
-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 678e2646a500..0560f3fae538 100644 --- a/arch/ia64/include/asm/kvm_host.h +++ b/arch/ia64/include/asm/kvm_host.h | |||
@@ -39,6 +39,7 @@ | |||
39 | #define EXIT_REASON_EXTERNAL_INTERRUPT 6 | 39 | #define EXIT_REASON_EXTERNAL_INTERRUPT 6 |
40 | #define EXIT_REASON_IPI 7 | 40 | #define EXIT_REASON_IPI 7 |
41 | #define EXIT_REASON_PTC_G 8 | 41 | #define EXIT_REASON_PTC_G 8 |
42 | #define EXIT_REASON_DEBUG 20 | ||
42 | 43 | ||
43 | /*Define vmm address space and vm data space.*/ | 44 | /*Define vmm address space and vm data space.*/ |
44 | #define KVM_VMM_SIZE (__IA64_UL_CONST(16)<<20) | 45 | #define KVM_VMM_SIZE (__IA64_UL_CONST(16)<<20) |
@@ -126,6 +127,8 @@ | |||
126 | KVM_MEM_DIRTY_LOG_SIZE) / sizeof(struct kvm_vcpu_data) | 127 | KVM_MEM_DIRTY_LOG_SIZE) / sizeof(struct kvm_vcpu_data) |
127 | #define KVM_MAX_MEM_SIZE (KVM_P2M_SIZE >> 3 << PAGE_SHIFT) | 128 | #define KVM_MAX_MEM_SIZE (KVM_P2M_SIZE >> 3 << PAGE_SHIFT) |
128 | 129 | ||
130 | #define VMM_LOG_LEN 256 | ||
131 | |||
129 | #include <linux/types.h> | 132 | #include <linux/types.h> |
130 | #include <linux/mm.h> | 133 | #include <linux/mm.h> |
131 | #include <linux/kvm.h> | 134 | #include <linux/kvm.h> |
@@ -437,6 +440,7 @@ struct kvm_vcpu_arch { | |||
437 | 440 | ||
438 | unsigned long opcode; | 441 | unsigned long opcode; |
439 | unsigned long cause; | 442 | unsigned long cause; |
443 | char log_buf[VMM_LOG_LEN]; | ||
440 | union context host; | 444 | union context host; |
441 | union context guest; | 445 | union context guest; |
442 | }; | 446 | }; |