sw64: add support for vmtop
Sunway inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I56WV8 -------------------------------- vmtop is a user-mode tool that runs on the host. It dynamically displays VM resource usage, including CPU and memory usage, and vCPU KVM exit events. To implement these functions, the kernel need to provide interfaces. Therefore, the kernel need to make the following changes. Add the contents of the kvm_vcpu_stat structure, which vmtop monitors. Add debugfs_entries structure and dfx_sw64_debugfs_entries structure, which generate corresponding files in the /sys/kernel/debug/kvm path for vmtop to read when VM is created. Add dfx_sw64_stat_fops, which is used for reading and writing vcpu_stat file in the /sys/kernel/debug/kvm path. Signed-off-by:Deng Xiaoyun <dengxiaoyun@wxiat.com> Reviewed-by:
He Sheng <hesheng@wxiat.com> Signed-off-by:
Gu Zitao <guzitao@wxiat.com>
Loading
Please sign in to comment