]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86, powerpc: do not allow clearing largepages debugfs entry
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Sep 2019 16:48:44 +0000 (18:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Sep 2019 16:52:00 +0000 (18:52 +0200)
commit1d435949e855ba583b7de2267ed58509af8a4873
tree3587bb045750f3a8163657a5302dac6bc7324a7d
parentbbe84a2a751610d80ac346d7fa29dd1b6682ded2
kvm: x86, powerpc: do not allow clearing largepages debugfs entry

The largepages debugfs entry is incremented/decremented as shadow
pages are created or destroyed.  Clearing it will result in an
underflow, which is harmless to KVM but ugly (and could be
misinterpreted by tools that use debugfs information), so make
this particular statistic read-only.

Cc: kvm-ppc@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c