aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-12-02 16:51:58 -0500
committerAvi Kivity <avi@redhat.com>2008-12-31 09:55:41 -0500
commit7b7015914b30ad8d9136d41412c5129b9bc9af70 (patch)
treec0764fff834b784d933126f30ef5562aef0dc55c /arch/powerpc/include
parent73e75b416ffcfa3a84952d8e389a0eca080f00e1 (diff)
KVM: ppc: mostly cosmetic updates to the exit timing accounting code
The only significant changes were to kvmppc_exit_timing_write() and kvmppc_exit_timing_show(), both of which were dramatically simplified. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_host.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index 2f5b49f2a98e..c1e436fe7738 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -102,9 +102,8 @@ enum kvm_exit_types {
102 __NUMBER_OF_KVM_EXIT_TYPES 102 __NUMBER_OF_KVM_EXIT_TYPES
103}; 103};
104 104
105#ifdef CONFIG_KVM_EXIT_TIMING
106/* allow access to big endian 32bit upper/lower parts and 64bit var */ 105/* allow access to big endian 32bit upper/lower parts and 64bit var */
107struct exit_timing { 106struct kvmppc_exit_timing {
108 union { 107 union {
109 u64 tv64; 108 u64 tv64;
110 struct { 109 struct {
@@ -112,7 +111,6 @@ struct exit_timing {
112 } tv32; 111 } tv32;
113 }; 112 };
114}; 113};
115#endif
116 114
117struct kvm_arch { 115struct kvm_arch {
118}; 116};
@@ -174,8 +172,8 @@ struct kvm_vcpu_arch {
174 u32 dbcr1; 172 u32 dbcr1;
175 173
176#ifdef CONFIG_KVM_EXIT_TIMING 174#ifdef CONFIG_KVM_EXIT_TIMING
177 struct exit_timing timing_exit; 175 struct kvmppc_exit_timing timing_exit;
178 struct exit_timing timing_last_enter; 176 struct kvmppc_exit_timing timing_last_enter;
179 u32 last_exit_type; 177 u32 last_exit_type;
180 u32 timing_count_type[__NUMBER_OF_KVM_EXIT_TYPES]; 178 u32 timing_count_type[__NUMBER_OF_KVM_EXIT_TYPES];
181 u64 timing_sum_duration[__NUMBER_OF_KVM_EXIT_TYPES]; 179 u64 timing_sum_duration[__NUMBER_OF_KVM_EXIT_TYPES];