diff mbox series

tools/kvm_stat: update exit reasons for userspace

Message ID 20240624075820.71583-2-yskelg@gmail.com (mailing list archive)
State New, archived
Headers show
Series tools/kvm_stat: update exit reasons for userspace | expand

Commit Message

Yunseong Kim June 24, 2024, 7:58 a.m. UTC
From: Yunseong Kim <yskelg@gmail.com>

Update EXIT_REASONS from source, including 2 USERSPACE_EXIT_REASONS:
'KVM_EXIT_LOONGARCH_IOCSR' and 'KVM_EXIT_MEMORY_FAULT'.

Link: https://lore.kernel.org/all/20231121225650.390246-3-namhyung@kernel.org/
Link: https://lore.kernel.org/lkml/ZbVLbkngp4oq13qN@kernel.org/
Signed-off-by: Yunseong Kim <yskelg@gmail.com>
---
 tools/kvm/kvm_stat/kvm_stat | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index 15bf00e79e3f..eec6c00e3ff9 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -288,6 +288,8 @@  USERSPACE_EXIT_REASONS = {
     'RISCV_SBI':        35,
     'RISCV_CSR':        36,
     'NOTIFY':           37,
+    'LOONGARCH_IOCSR':  38,
+    'MEMORY_FAULT':     39
 }
 
 IOCTL_NUMBERS = {