Skip to content

RISC-V: KVM: Allow zicbop/bfloat16 exts for guests

[email protected] kvm kvm-riscv linux-riscv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 10 repliesIn review
  2. v15 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- update zicbom/zicboz/zicbop block size registers to depend on the host isa.
- update the reg list filtering in copy_config_reg_indices() to use the host isa.
- add reg list filtering for zicbop.
v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6RISC-V: KVM: Change zicbom/zicboz block size to depend on the host isaarch/riscv/kvm/vcpu_onereg.c+6 -63 replies
2/6RISC-V: KVM: Provide UAPI for Zicbop block sizearch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+15 -02 replies
3/6RISC-V: KVM: Allow Zicbop extension for Guest/VMarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+3 -01 reply
4/6RISC-V: KVM: Allow bfloat16 extension for Guest/VMarch/riscv/include/uapi/asm/kvm.h arch/riscv/kvm/vcpu_onereg.c+9 -01 reply
5/6KVM: riscv: selftests: Add Zicbop extension to get-reg-list testtools/testing/selftests/kvm/riscv/get-reg-list.c+13 -01 reply
6/6KVM: riscv: selftests: Add bfloat16 extension to get-reg-list testtools/testing/selftests/kvm/riscv/get-reg-list.c+12 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchAndrew JonesTroy MitchellNutty Liu
1/6R-b Reviwed-by R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] RISC-V: KVM: Allow zicbop/bfloat16 exts for guests

From: Quan Zhou <[email protected]>

Advertise zicbop/bfloat16 extensions to KVM guest when underlying host supports it, and add them to get-reg-list test.

---
Change since v1:
- update zicbom/zicboz/zicbop block size registers to depend on the host isa.
- update the reg list filtering in copy_config_reg_indices() to use the host isa.
- add reg list filtering for zicbop.
v1: https://lore.kernel.org/all/[email protected]/

Quan Zhou (6):
RISC-V: KVM: Change zicbom/zicboz block size to depend on the host isa
RISC-V: KVM: Provide UAPI for Zicbop block size
RISC-V: KVM: Allow Zicbop extension for Guest/VM
RISC-V: KVM: Allow bfloat16 extension for Guest/VM
KVM: riscv: selftests: Add Zicbop extension to get-reg-list test
KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test

 arch/riscv/include/uapi/asm/kvm.h             |  5 +++
 arch/riscv/kvm/vcpu_onereg.c                  | 34 +++++++++++++++----
 .../selftests/kvm/riscv/get-reg-list.c        | 25 ++++++++++++++
 3 files changed, 58 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1