From: guoren@kernel.org
To: guoren@kernel.org, troy.mitchell@linux.dev
Cc: alex@ghiti.fr, anup@brainfault.org, aou@eecs.berkeley.edu,
atish.patra@linux.dev, fangyu.yu@linux.alibaba.com,
guoren@linux.alibaba.com, kvm-riscv@lists.infradead.org,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, palmer@dabbelt.com,
paul.walmsley@sifive.com
Subject: [PATCH V4 0/3] Fixup & optimize hgatp mode & vmid detect functions
Date: Wed, 20 Aug 2025 23:17:15 -0400 [thread overview]
Message-ID: <20250821031719.2366017-1-guoren@kernel.org> (raw)
In-Reply-To: <CAJF2gTQFWJzHhRoQ-oASO9nn1kC0dv+NuK-DD=JgfeHE90RWqw@mail.gmail.com>
From: "Guo Ren (Alibaba DAMO Academy)" <guoren@kernel.org>
Here are serval fixup & optmizitions for hgatp detect according to the RISC-V Privileged Architecture Spec.
---
Changes in v4:
- Involve ("RISC-V: KVM: Prevent HGATP_MODE_BARE passed"), which
explain why gstage_mode_detect needs reset HGATP to zero.
Changes in v3:
- Add "Fixes" tag.
- Involve("RISC-V: KVM: Remove unnecessary HGATP csr_read"), which
depends on patch 1.
Changes in v2:
- Fixed build error since kvm_riscv_gstage_mode() has been modified.
---
Fangyu Yu (1):
RISC-V: KVM: Write hgatp register with valid mode bits
Guo Ren (Alibaba DAMO Academy) (2):
RISC-V: KVM: Remove unnecessary HGATP csr_read
RISC-V: KVM: Prevent HGATP_MODE_BARE passed
arch/riscv/kvm/gstage.c | 27 ++++++++++++++++++++++++---
arch/riscv/kvm/main.c | 35 +++++++++++++++++------------------
arch/riscv/kvm/vmid.c | 8 +++-----
3 files changed, 44 insertions(+), 26 deletions(-)
--
2.40.1
--
kvm-riscv mailing list
kvm-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv
WARNING: multiple messages have this Message-ID (diff)
From: guoren@kernel.org
To: guoren@kernel.org, troy.mitchell@linux.dev
Cc: alex@ghiti.fr, anup@brainfault.org, aou@eecs.berkeley.edu,
atish.patra@linux.dev, fangyu.yu@linux.alibaba.com,
guoren@linux.alibaba.com, kvm-riscv@lists.infradead.org,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, palmer@dabbelt.com,
paul.walmsley@sifive.com
Subject: [PATCH V4 0/3] Fixup & optimize hgatp mode & vmid detect functions
Date: Wed, 20 Aug 2025 23:17:15 -0400 [thread overview]
Message-ID: <20250821031719.2366017-1-guoren@kernel.org> (raw)
In-Reply-To: <CAJF2gTQFWJzHhRoQ-oASO9nn1kC0dv+NuK-DD=JgfeHE90RWqw@mail.gmail.com>
From: "Guo Ren (Alibaba DAMO Academy)" <guoren@kernel.org>
Here are serval fixup & optmizitions for hgatp detect according to the RISC-V Privileged Architecture Spec.
---
Changes in v4:
- Involve ("RISC-V: KVM: Prevent HGATP_MODE_BARE passed"), which
explain why gstage_mode_detect needs reset HGATP to zero.
Changes in v3:
- Add "Fixes" tag.
- Involve("RISC-V: KVM: Remove unnecessary HGATP csr_read"), which
depends on patch 1.
Changes in v2:
- Fixed build error since kvm_riscv_gstage_mode() has been modified.
---
Fangyu Yu (1):
RISC-V: KVM: Write hgatp register with valid mode bits
Guo Ren (Alibaba DAMO Academy) (2):
RISC-V: KVM: Remove unnecessary HGATP csr_read
RISC-V: KVM: Prevent HGATP_MODE_BARE passed
arch/riscv/kvm/gstage.c | 27 ++++++++++++++++++++++++---
arch/riscv/kvm/main.c | 35 +++++++++++++++++------------------
arch/riscv/kvm/vmid.c | 8 +++-----
3 files changed, 44 insertions(+), 26 deletions(-)
--
2.40.1
WARNING: multiple messages have this Message-ID (diff)
From: guoren@kernel.org
To: guoren@kernel.org, troy.mitchell@linux.dev
Cc: alex@ghiti.fr, anup@brainfault.org, aou@eecs.berkeley.edu,
atish.patra@linux.dev, fangyu.yu@linux.alibaba.com,
guoren@linux.alibaba.com, kvm-riscv@lists.infradead.org,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, palmer@dabbelt.com,
paul.walmsley@sifive.com
Subject: [PATCH V4 0/3] Fixup & optimize hgatp mode & vmid detect functions
Date: Wed, 20 Aug 2025 23:17:15 -0400 [thread overview]
Message-ID: <20250821031719.2366017-1-guoren@kernel.org> (raw)
In-Reply-To: <CAJF2gTQFWJzHhRoQ-oASO9nn1kC0dv+NuK-DD=JgfeHE90RWqw@mail.gmail.com>
From: "Guo Ren (Alibaba DAMO Academy)" <guoren@kernel.org>
Here are serval fixup & optmizitions for hgatp detect according to the RISC-V Privileged Architecture Spec.
---
Changes in v4:
- Involve ("RISC-V: KVM: Prevent HGATP_MODE_BARE passed"), which
explain why gstage_mode_detect needs reset HGATP to zero.
Changes in v3:
- Add "Fixes" tag.
- Involve("RISC-V: KVM: Remove unnecessary HGATP csr_read"), which
depends on patch 1.
Changes in v2:
- Fixed build error since kvm_riscv_gstage_mode() has been modified.
---
Fangyu Yu (1):
RISC-V: KVM: Write hgatp register with valid mode bits
Guo Ren (Alibaba DAMO Academy) (2):
RISC-V: KVM: Remove unnecessary HGATP csr_read
RISC-V: KVM: Prevent HGATP_MODE_BARE passed
arch/riscv/kvm/gstage.c | 27 ++++++++++++++++++++++++---
arch/riscv/kvm/main.c | 35 +++++++++++++++++------------------
arch/riscv/kvm/vmid.c | 8 +++-----
3 files changed, 44 insertions(+), 26 deletions(-)
--
2.40.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-08-21 4:49 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 5:42 [PATCH V2] RISC-V: KVM: Write hgatp register with valid mode bits fangyu.yu
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` guoren
2025-08-18 5:42 ` fangyu.yu
2025-08-18 5:42 ` fangyu.yu
2025-08-18 6:17 ` Guo Ren
2025-08-18 6:17 ` Guo Ren
2025-08-18 6:17 ` Guo Ren
2025-08-18 7:45 ` Guo Ren
2025-08-18 7:45 ` Guo Ren
2025-08-18 7:45 ` Guo Ren
2025-08-19 6:44 ` [PATCH] RISC-V KVM: Remove unnecessary HGATP csr_read guoren
2025-08-19 6:44 ` guoren
2025-08-19 6:44 ` guoren
2025-08-21 3:17 ` guoren [this message]
2025-08-21 3:17 ` [PATCH V4 0/3] Fixup & optimize hgatp mode & vmid detect functions guoren
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` [PATCH V4 1/3] RISC-V: KVM: Write hgatp register with valid mode bits guoren
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` [PATCH V4 2/3] RISC-V: KVM: Remove unnecessary HGATP csr_read guoren
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` [PATCH V4 3/3] RISC-V: KVM: Prevent HGATP_MODE_BARE passed guoren
2025-08-21 3:17 ` guoren
2025-08-21 3:17 ` guoren
2025-08-18 7:10 ` [PATCH V2] RISC-V: KVM: Write hgatp register with valid mode bits Troy Mitchell
2025-08-18 7:10 ` Troy Mitchell
2025-08-18 7:10 ` Troy Mitchell
2025-08-19 3:47 ` Nutty.Liu
2025-08-19 3:47 ` Nutty.Liu
2025-08-19 3:47 ` Nutty.Liu
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=20250821031719.2366017-1-guoren@kernel.org \
--to=guoren@kernel.org \
--cc=alex@ghiti.fr \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=atish.patra@linux.dev \
--cc=fangyu.yu@linux.alibaba.com \
--cc=guoren@linux.alibaba.com \
--cc=kvm-riscv@lists.infradead.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=troy.mitchell@linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.