]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: Refactor handling of VM debugfs files
authorMilan Pandurov <milanpa@amazon.de>
Fri, 13 Dec 2019 13:07:21 +0000 (14:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jan 2020 13:45:33 +0000 (14:45 +0100)
commite33d8d113775795d1f8a1d93b46cbb311f20ccda
treef72b179f599614c167e1fddad5f532faad072376
parent82fe7aaef0b3a6cb4edf1515cc03e13598dac77f
kvm: Refactor handling of VM debugfs files

We can store reference to kvm_stats_debugfs_item instead of copying
its values to kvm_stat_data.
This allows us to remove duplicated code and usage of temporary
kvm_stat_data inside vm_stat_get et al.

Signed-off-by: Milan Pandurov <milanpa@amazon.de>
Reviewed-by: Alexander Graf <graf@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c