diff options
-rw-r--r-- | drivers/kvm/kvm.h | 22 | ||||
-rw-r--r-- | drivers/kvm/x86.h | 21 |
2 files changed, 21 insertions, 22 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 039faa766c57..9ea7149e741d 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -47,28 +47,6 @@ struct kvm_guest_debug { | |||
47 | int singlestep; | 47 | int singlestep; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | struct kvm_vcpu_stat { | ||
51 | u32 pf_fixed; | ||
52 | u32 pf_guest; | ||
53 | u32 tlb_flush; | ||
54 | u32 invlpg; | ||
55 | |||
56 | u32 exits; | ||
57 | u32 io_exits; | ||
58 | u32 mmio_exits; | ||
59 | u32 signal_exits; | ||
60 | u32 irq_window_exits; | ||
61 | u32 halt_exits; | ||
62 | u32 halt_wakeup; | ||
63 | u32 request_irq_exits; | ||
64 | u32 irq_exits; | ||
65 | u32 host_state_reload; | ||
66 | u32 efer_reload; | ||
67 | u32 fpu_reload; | ||
68 | u32 insn_emulation; | ||
69 | u32 insn_emulation_fail; | ||
70 | }; | ||
71 | |||
72 | /* | 50 | /* |
73 | * It would be nice to use something smarter than a linear search, TBD... | 51 | * It would be nice to use something smarter than a linear search, TBD... |
74 | * Thankfully we dont expect many devices to register (famous last words :), | 52 | * Thankfully we dont expect many devices to register (famous last words :), |
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h index a0dd4473b8f8..4ca848536365 100644 --- a/drivers/kvm/x86.h +++ b/drivers/kvm/x86.h | |||
@@ -255,6 +255,27 @@ struct kvm_vcpu_arch { | |||
255 | struct x86_emulate_ctxt emulate_ctxt; | 255 | struct x86_emulate_ctxt emulate_ctxt; |
256 | }; | 256 | }; |
257 | 257 | ||
258 | struct kvm_vcpu_stat { | ||
259 | u32 pf_fixed; | ||
260 | u32 pf_guest; | ||
261 | u32 tlb_flush; | ||
262 | u32 invlpg; | ||
263 | |||
264 | u32 exits; | ||
265 | u32 io_exits; | ||
266 | u32 mmio_exits; | ||
267 | u32 signal_exits; | ||
268 | u32 irq_window_exits; | ||
269 | u32 halt_exits; | ||
270 | u32 halt_wakeup; | ||
271 | u32 request_irq_exits; | ||
272 | u32 irq_exits; | ||
273 | u32 host_state_reload; | ||
274 | u32 efer_reload; | ||
275 | u32 fpu_reload; | ||
276 | u32 insn_emulation; | ||
277 | u32 insn_emulation_fail; | ||
278 | }; | ||
258 | 279 | ||
259 | struct descriptor_table { | 280 | struct descriptor_table { |
260 | u16 limit; | 281 | u16 limit; |