[RFC PATCH 0/2] lib: sbi_pmu: Add PMU snapshot extension
Inochi Amaoto
inochiama at outlook.com
Tue Jan 9 03:23:55 PST 2024
Although PMU snapshot extension is not very useful for normal use,
it can provide a recoverable snapshot for PMU system. It is useful
for KVM VMs, especially for VM snapshot.
Add the PMU snapshot function.
Inochi Amaoto (2):
lib: sbi: Add shared memory region support
lib: sbi_pmu: Add PMU snapshot implementation
include/sbi/sbi_bitops.h | 3 +
include/sbi/sbi_pmu.h | 4 ++
include/sbi/sbi_shm.h | 129 +++++++++++++++++++++++++++++++++++
lib/sbi/objects.mk | 1 +
lib/sbi/sbi_ecall_pmu.c | 3 +-
lib/sbi/sbi_pmu.c | 143 +++++++++++++++++++++++++++++++++++++--
lib/sbi/sbi_shm.c | 114 +++++++++++++++++++++++++++++++
7 files changed, 390 insertions(+), 7 deletions(-)
create mode 100644 include/sbi/sbi_shm.h
create mode 100644 lib/sbi/sbi_shm.c
--
2.43.0
More information about the opensbi
mailing list