# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 4664b4c68212133c84a1a8c6f8e8705e9c530130
# Parent 5a47baf9b70103b9f2a48ff24bddb30dbc5c5041
Fix VMEXIT tracing.
Signed-off-by: Bruce Rogers <brogers@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset: 10163:218daa547e8afdd3a327df6402cef1af8ae54f2c
xen-unstable date: Thu May 25 21:18:55 2006 +0100
---
xen/arch/x86/hvm/svm/svm.c | 11 -----------
xen/arch/x86/hvm/vmx/vmx.c | 2 +-
2 files changed, 1 insertion(+), 12 deletions(-)
diff -r 5a47baf9b701 -r 4664b4c68212 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c Thu May 25 12:04:50 2006 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c Thu May 25 21:20:02 2006 +0100
@@ -51,13 +51,6 @@
#define SVM_EXTRA_DEBUG
-#ifdef TRACE_BUFFER
-static unsigned long trace_values[NR_CPUS][4];
-#define TRACE_VMEXIT(index,value) trace_values[current->processor][index]=value
-#else
-#define TRACE_VMEXIT(index,value) ((void)0)
-#endif
-
/* Useful define */
#define MAX_INST_SIZE 15
@@ -815,7 +808,6 @@ static int svm_do_page_fault(unsigned lo
return 1;
handle_mmio(va, va);
- TRACE_VMEXIT(2,2);
return 1;
}
@@ -841,7 +833,6 @@ static int svm_do_page_fault(unsigned lo
return 1;
}
- TRACE_VMEXIT (2,2);
handle_mmio(va, gpa);
return 1;
@@ -853,8 +844,6 @@ static int svm_do_page_fault(unsigned lo
/* Let's make sure that the Guest TLB is flushed */
set_bit(ARCH_SVM_VMCB_ASSIGN_ASID, &v->arch.hvm_svm.flags);
}
-
- TRACE_VMEXIT (2,result);
return result;
}
diff -r 5a47baf9b701 -r 4664b4c68212 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c Thu May 25 12:04:50 2006 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c Thu May 25 21:20:02 2006 +0100
@@ -47,7 +47,7 @@
#include <asm/hvm/vpic.h>
#include <asm/hvm/vlapic.h>
-static unsigned long trace_values[NR_CPUS][4];
+static unsigned long trace_values[NR_CPUS][5];
#define TRACE_VMEXIT(index,value) trace_values[smp_processor_id()][index]=value
static void vmx_ctxt_switch_from(struct vcpu *v);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|