Skip to content
Commit 09cbcef6 authored by Milan Pandurov's avatar Milan Pandurov Committed by Paolo Bonzini
Browse files

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: default avatarMilan Pandurov <milanpa@amazon.de>
Reviewed-by: default avatarAlexander Graf <graf@amazon.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent e30a7d62
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment