mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
LoongArch: KVM: Add stat information with kernel irqchip
Move stat information about kernel irqchip from VM to vCPU, since all vm exiting events should be vCPU relative. And also add entry with structure kvm_vcpu_stats_desc[], so that it can display with directory /sys/kernel/debug/kvm. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
@@ -20,7 +20,13 @@ const struct _kvm_stats_desc kvm_vcpu_stats_desc[] = {
|
||||
STATS_DESC_COUNTER(VCPU, idle_exits),
|
||||
STATS_DESC_COUNTER(VCPU, cpucfg_exits),
|
||||
STATS_DESC_COUNTER(VCPU, signal_exits),
|
||||
STATS_DESC_COUNTER(VCPU, hypercall_exits)
|
||||
STATS_DESC_COUNTER(VCPU, hypercall_exits),
|
||||
STATS_DESC_COUNTER(VCPU, ipi_read_exits),
|
||||
STATS_DESC_COUNTER(VCPU, ipi_write_exits),
|
||||
STATS_DESC_COUNTER(VCPU, eiointc_read_exits),
|
||||
STATS_DESC_COUNTER(VCPU, eiointc_write_exits),
|
||||
STATS_DESC_COUNTER(VCPU, pch_pic_read_exits),
|
||||
STATS_DESC_COUNTER(VCPU, pch_pic_write_exits)
|
||||
};
|
||||
|
||||
const struct kvm_stats_header kvm_vcpu_stats_header = {
|
||||
|
||||
Reference in New Issue
Block a user