aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/x86.c')
-rw-r--r--drivers/kvm/x86.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/kvm/x86.c b/drivers/kvm/x86.c
index f75e7d7d9ead..c1f10e58f4d2 100644
--- a/drivers/kvm/x86.c
+++ b/drivers/kvm/x86.c
@@ -40,6 +40,28 @@
40#define CR8_RESERVED_BITS (~(unsigned long)X86_CR8_TPR) 40#define CR8_RESERVED_BITS (~(unsigned long)X86_CR8_TPR)
41#define EFER_RESERVED_BITS 0xfffffffffffff2fe 41#define EFER_RESERVED_BITS 0xfffffffffffff2fe
42 42
43#define STAT_OFFSET(x) offsetof(struct kvm_vcpu, stat.x)
44
45struct kvm_stats_debugfs_item debugfs_entries[] = {
46 { "pf_fixed", STAT_OFFSET(pf_fixed) },
47 { "pf_guest", STAT_OFFSET(pf_guest) },
48 { "tlb_flush", STAT_OFFSET(tlb_flush) },
49 { "invlpg", STAT_OFFSET(invlpg) },
50 { "exits", STAT_OFFSET(exits) },
51 { "io_exits", STAT_OFFSET(io_exits) },
52 { "mmio_exits", STAT_OFFSET(mmio_exits) },
53 { "signal_exits", STAT_OFFSET(signal_exits) },
54 { "irq_window", STAT_OFFSET(irq_window_exits) },
55 { "halt_exits", STAT_OFFSET(halt_exits) },
56 { "halt_wakeup", STAT_OFFSET(halt_wakeup) },
57 { "request_irq", STAT_OFFSET(request_irq_exits) },
58 { "irq_exits", STAT_OFFSET(irq_exits) },
59 { "light_exits", STAT_OFFSET(light_exits) },
60 { "efer_reload", STAT_OFFSET(efer_reload) },
61 { NULL }
62};
63
64
43unsigned long segment_base(u16 selector) 65unsigned long segment_base(u16 selector)
44{ 66{
45 struct descriptor_table gdt; 67 struct descriptor_table gdt;