提交 77b4c255 编写于 作者: Z Zhang Xiantao 提交者: Avi Kivity

KVM: Portability: Move kvm_vcpu_stat to x86.h

This patches moves kvm_vcpu_stat to x86.h, so every
arch can define its own kvm_vcpu_stat structure.
Signed-off-by: NZhang Xiantao <xiantao.zhang@intel.com>
Acked-by: NCarsten Otte <cotte@de.ibm.com>
Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 d17fbbf7
...@@ -47,28 +47,6 @@ struct kvm_guest_debug { ...@@ -47,28 +47,6 @@ struct kvm_guest_debug {
int singlestep; int singlestep;
}; };
struct kvm_vcpu_stat {
u32 pf_fixed;
u32 pf_guest;
u32 tlb_flush;
u32 invlpg;
u32 exits;
u32 io_exits;
u32 mmio_exits;
u32 signal_exits;
u32 irq_window_exits;
u32 halt_exits;
u32 halt_wakeup;
u32 request_irq_exits;
u32 irq_exits;
u32 host_state_reload;
u32 efer_reload;
u32 fpu_reload;
u32 insn_emulation;
u32 insn_emulation_fail;
};
/* /*
* It would be nice to use something smarter than a linear search, TBD... * It would be nice to use something smarter than a linear search, TBD...
* Thankfully we dont expect many devices to register (famous last words :), * Thankfully we dont expect many devices to register (famous last words :),
......
...@@ -255,6 +255,27 @@ struct kvm_vcpu_arch { ...@@ -255,6 +255,27 @@ struct kvm_vcpu_arch {
struct x86_emulate_ctxt emulate_ctxt; struct x86_emulate_ctxt emulate_ctxt;
}; };
struct kvm_vcpu_stat {
u32 pf_fixed;
u32 pf_guest;
u32 tlb_flush;
u32 invlpg;
u32 exits;
u32 io_exits;
u32 mmio_exits;
u32 signal_exits;
u32 irq_window_exits;
u32 halt_exits;
u32 halt_wakeup;
u32 request_irq_exits;
u32 irq_exits;
u32 host_state_reload;
u32 efer_reload;
u32 fpu_reload;
u32 insn_emulation;
u32 insn_emulation_fail;
};
struct descriptor_table { struct descriptor_table {
u16 limit; u16 limit;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册