On Tue, Jun 15, 2021 at 10:37:36AM +0200, Enrico Weigelt, metux IT consult wrote:
Why not putting this into sysfs ?
Because sysfs is "one value per file".
I see two options:
a) if it's really kvm-specific (and no chance of using the same interface for other hypervisors), we could put it under the kvm device (/sys/class/misc/kvm).
Again, that is NOT what sysfs is for.
b) have a generic VMM stats interface that theroretically could work with any hypervisor.
What other hypervisor matters?
greg k-h