Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RISC-V: KVM: Allow Zicbop extension for Guest/VM

Extend the KVM ISA extension ONE_REG interface to allow KVM user space
to detect and enable Zicbop extension for Guest/VM.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Reviewed-by: Nutty Liu <liujingqi@lanxincomputing.com>
Link: https://lore.kernel.org/r/db4a9b679cc653bb6f5f5574e4196de7a980e458.1754646071.git.zhouquan@iscas.ac.cn
Signed-off-by: Anup Patel <anup@brainfault.org>

authored by

Quan Zhou and committed by
Anup Patel
0efd9a29 48e2febc

+3
+1
arch/riscv/include/uapi/asm/kvm.h
··· 186 186 KVM_RISCV_ISA_EXT_ZICCRSE, 187 187 KVM_RISCV_ISA_EXT_ZAAMO, 188 188 KVM_RISCV_ISA_EXT_ZALRSC, 189 + KVM_RISCV_ISA_EXT_ZICBOP, 189 190 KVM_RISCV_ISA_EXT_MAX, 190 191 }; 191 192
+2
arch/riscv/kvm/vcpu_onereg.c
··· 68 68 KVM_ISA_EXT_ARR(ZFH), 69 69 KVM_ISA_EXT_ARR(ZFHMIN), 70 70 KVM_ISA_EXT_ARR(ZICBOM), 71 + KVM_ISA_EXT_ARR(ZICBOP), 71 72 KVM_ISA_EXT_ARR(ZICBOZ), 72 73 KVM_ISA_EXT_ARR(ZICCRSE), 73 74 KVM_ISA_EXT_ARR(ZICNTR), ··· 201 200 case KVM_RISCV_ISA_EXT_ZFA: 202 201 case KVM_RISCV_ISA_EXT_ZFH: 203 202 case KVM_RISCV_ISA_EXT_ZFHMIN: 203 + case KVM_RISCV_ISA_EXT_ZICBOP: 204 204 case KVM_RISCV_ISA_EXT_ZICCRSE: 205 205 case KVM_RISCV_ISA_EXT_ZICNTR: 206 206 case KVM_RISCV_ISA_EXT_ZICOND: