]> asedeno.scripts.mit.edu Git - linux.git/commit
kvm/stats: Update kvm stats to clear on write to their debugfs entry
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Wed, 19 Oct 2016 02:49:47 +0000 (13:49 +1100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 20:32:17 +0000 (21:32 +0100)
commitce35ef27d4b751706f76c48d32a7b0d27f2d2d19
tree9c1e63ba478cb2de6d7cacd1c28e7f013651d1d1
parent868a32f327e34b82f2b087228fbb7df176c246e9
kvm/stats: Update kvm stats to clear on write to their debugfs entry

Various kvm vm and vcpu stats are provided via debugfs entries.
Currently there is no way to reset these stats back to zero.

Add the ability to clear (reset back to zero) these stats on a per stat
basis by writing to the debugfs files. Only a write value of 0 is accepted.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
virt/kvm/kvm_main.c