public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: yskelg@gmail.com
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: MichelleJin <shjy180909@gmail.com>,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Yunseong Kim <yskelg@gmail.com>
Subject: [PATCH] tools/kvm_stat: update exit reasons for userspace
Date: Mon, 24 Jun 2024 16:58:21 +0900	[thread overview]
Message-ID: <20240624075820.71583-2-yskelg@gmail.com> (raw)

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 --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 = {
-- 
2.45.2


                 reply	other threads:[~2024-06-24  7:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240624075820.71583-2-yskelg@gmail.com \
    --to=yskelg@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=shjy180909@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox