On Wed, Jan 28, 2026 at 10:11:39AM -0800, Nuno Das Neves wrote: > Expose hypervisor, logical processor, partition, and virtual processor > statistics via debugfs. These are provided by mapping 'stats' pages via > hypercall. > > Patch #1: Update hv_call_map_stats_page() to return success when > HV_STATS_AREA_PARENT is unavailable, which is the case on some > hypervisor versions, where it can fall back to HV_STATS_AREA_SELF > Patch #2: Use struct hv_stats_page pointers instead of void * > Patch #3: Make mshv_vp_stats_map/unmap() more flexible to use with debugfs > code > Patch #4: Always map vp stats page regardless of scheduler, to reuse in > debugfs > Patch #5: Change to hv_stats_page definition and > VpRootDispatchThreadBlocked > Patch #6: Introduce the definitions needed for the various stats pages > Patch #7: Add mshv_debugfs.c, and integrate it with the mshv_root driver to > expose the partition and VP stats. > [...] > > drivers/hv/Makefile | 1 + > drivers/hv/mshv_debugfs.c | 726 +++++++++++++++++++++++++++++ > drivers/hv/mshv_debugfs_counters.c | 490 +++++++++++++++++++ > drivers/hv/mshv_root.h | 49 +- > drivers/hv/mshv_root_hv_call.c | 64 ++- > drivers/hv/mshv_root_main.c | 140 +++--- > include/hyperv/hvhdk.h | 7 + > 7 files changed, 1412 insertions(+), 65 deletions(-) > create mode 100644 drivers/hv/mshv_debugfs.c > create mode 100644 drivers/hv/mshv_debugfs_counters.c >
Applied to hyperv-next. Thank you!
