diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-07 10:48:48 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-07 10:48:48 +0000 |
commit | a30605d6ee86350b58ca43de86b599e09d3e4813 (patch) | |
tree | 67bfd27e36c3312aadb4fad9c116805dbaf69185 /xen/include/asm-x86 | |
parent | 93f56e1536af73be22a4bf8c2764850e6f525687 (diff) | |
download | xen-a30605d6ee86350b58ca43de86b599e09d3e4813.tar.gz xen-a30605d6ee86350b58ca43de86b599e09d3e4813.tar.bz2 xen-a30605d6ee86350b58ca43de86b599e09d3e4813.zip |
Enhance HVM xentrace:
1) VMX xentrace data are store in current vcpu instead physical CPU.
2) Log PIO data in xentrace.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Diffstat (limited to 'xen/include/asm-x86')
-rw-r--r-- | xen/include/asm-x86/hvm/support.h | 3 | ||||
-rw-r--r-- | xen/include/asm-x86/hvm/vcpu.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h index 440cbfee69..f9ab090dfe 100644 --- a/xen/include/asm-x86/hvm/support.h +++ b/xen/include/asm-x86/hvm/support.h @@ -125,6 +125,9 @@ extern unsigned int opt_hvm_debug_level; domain_crash_synchronous(); \ } while (0) +#define TRACE_VMEXIT(index, value) \ + current->arch.hvm_vcpu.hvm_trace_values[index] = (value) + extern int hvm_enabled; int hvm_copy_to_guest_phys(paddr_t paddr, void *buf, int size); diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index f613ae6a09..8945916d32 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -47,6 +47,8 @@ struct hvm_vcpu { /* hlt ins emulation wakeup timer */ struct timer hlt_timer; + unsigned long hvm_trace_values[5]; + union { struct arch_vmx_struct vmx; struct arch_svm_struct svm; |