target/riscv/kvm: Update kvm exts to Linux v6.11
cover target/riscv/kvm: Update kvm exts to Linux v6.11
From: Quan Zhou <[email protected]>
Update QEMU's KVM extension support to version 6.11.
Quan Zhou (2):
linux-headers: Update to Linux v6.11 target/riscv/kvm: Update kvm exts to Linux v6.11
include/standard-headers/drm/drm_fourcc.h | 18 ++ include/standard-headers/linux/ethtool.h | 210 ++++++++++++++++++ .../linux/input-event-codes.h | 2 + linux-headers/asm-arm64/unistd.h | 25 +-- linux-headers/asm-generic/unistd.h | 6 +- linux-headers/asm-loongarch/kvm.h | 4 + linux-headers/asm-loongarch/unistd.h | 4 +- linux-headers/asm-riscv/kvm.h | 7 + linux-headers/asm-riscv/unistd.h | 41 +--- linux-headers/asm-x86/kvm.h | 1 + linux-headers/asm-x86/unistd_64.h | 1 + linux-headers/asm-x86/unistd_x32.h | 1 + linux-headers/linux/iommufd.h | 141 ++++++++++-- linux-headers/linux/kvm.h | 23 +- linux-headers/linux/mman.h | 1 + linux-headers/linux/psp-sev.h | 28 +++ target/riscv/kvm/kvm-cpu.c | 7 + 17 files changed, 433 insertions(+), 87 deletions(-)
base-commit: 01dc65a3bc262ab1bec8fe89775e9bbfa627becb
Signature · 1 line
2.34.1
PATCH 1/2 linux-headers: Update to Linux v6.11
From: Quan Zhou <[email protected]>
Sync Linux 6.11 headers to get the latest RISC-V KVM caps.
--- include/standard-headers/drm/drm_fourcc.h | 18 ++ include/standard-headers/linux/ethtool.h | 210 ++++++++++++++++++ .../linux/input-event-codes.h | 2 + linux-headers/asm-arm64/unistd.h | 25 +-- linux-headers/asm-generic/unistd.h | 6 +- linux-headers/asm-loongarch/kvm.h | 4 + linux-headers/asm-loongarch/unistd.h | 4 +- linux-headers/asm-riscv/kvm.h | 7 + linux-headers/asm-riscv/unistd.h | 41 +--- linux-headers/asm-x86/kvm.h | 1 + linux-headers/asm-x86/unistd_64.h | 1 + linux-headers/asm-x86/unistd_x32.h | 1 + linux-headers/linux/iommufd.h | 141 ++++++++++-- linux-headers/linux/kvm.h | 23 +- linux-headers/linux/mman.h | 1 + linux-headers/linux/psp-sev.h | 28 +++ 16 files changed, 426 insertions(+), 87 deletions(-)
include/standard-headers/drm/drm_fourcc.h +18 -0
@@ -1475,6 +1475,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(uint64_t modifier)#define AMD_FMT_MOD_TILE_VER_GFX10 2#define AMD_FMT_MOD_TILE_VER_GFX10_RBPLUS 3#define AMD_FMT_MOD_TILE_VER_GFX11 4 +#define AMD_FMT_MOD_TILE_VER_GFX12 5/* * 64K_S is the same for GFX9/GFX10/GFX10_RBPLUS and hence has GFX9 as canonical
@@ -1485,6 +1486,8 @@ drm_fourcc_canonicalize_nvidia_format_mod(uint64_t modifier)/* * 64K_D for non-32 bpp is the same for GFX9/GFX10/GFX10_RBPLUS and hence has * GFX9 as canonical version. +* +* 64K_D_2D on GFX12 is identical to 64K_D on GFX11. */ #define AMD_FMT_MOD_TILE_GFX9_64K_D 10#define AMD_FMT_MOD_TILE_GFX9_64K_S_X 25
@@ -1492,6 +1495,21 @@ drm_fourcc_canonicalize_nvidia_format_mod(uint64_t modifier)#define AMD_FMT_MOD_TILE_GFX9_64K_R_X 27#define AMD_FMT_MOD_TILE_GFX11_256K_R_X 31 +/* Gfx12 swizzle modes: +* 0 - LINEAR +* 1 - 256B_2D - 2D block dimensions +* 2 - 4KB_2D +* 3 - 64KB_2D +* 4 - 256KB_2D +* 5 - 4KB_3D - 3D block dimensions +* 6 - 64KB_3D +* 7 - 256KB_3D +*/ +#define AMD_FMT_MOD_TILE_GFX12_256B_2D 1 +#define AMD_FMT_MOD_TILE_GFX12_4K_2D 2 +#define AMD_FMT_MOD_TILE_GFX12_64K_2D 3 +#define AMD_FMT_MOD_TILE_GFX12_256K_2D 4 +#define AMD_FMT_MOD_DCC_BLOCK_64B 0#define AMD_FMT_MOD_DCC_BLOCK_128B 1#define AMD_FMT_MOD_DCC_BLOCK_256B 2
include/standard-headers/linux/ethtool.h +210 -0
228 lines not on this page · raw message
include/standard-headers/linux/input-event-codes.h +2 -0
@@ -618,6 +618,8 @@#define KEY_CAMERA_ACCESS_ENABLE 0x24b/* Enables programmatic access to camera devices. (HUTRR72) */ #define KEY_CAMERA_ACCESS_DISABLE 0x24c/* Disables programmatic access to camera devices. (HUTRR72) */ #define KEY_CAMERA_ACCESS_TOGGLE 0x24d/* Toggles the current state of the camera access control. (HUTRR72) */ +#define KEY_ACCESSIBILITY 0x24e/* Toggles the system bound accessibility UI/command (HUTRR116) */ +#define KEY_DO_NOT_DISTURB 0x24f/* Toggles the system-wide "Do Not Disturb" control (HUTRR94)*/ #define KEY_BRIGHTNESS_MIN 0x250/* Set Brightness to Minimum */ #define KEY_BRIGHTNESS_MAX 0x251/* Set Brightness to Maximum */
linux-headers/asm-arm64/unistd.h +1 -24
@@ -1,25 +1,2 @@/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* -* Copyright (C) 2012 ARM Ltd. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#define __ARCH_WANT_RENAMEAT -#define __ARCH_WANT_NEW_STAT -#define __ARCH_WANT_SET_GET_RLIMIT -#define __ARCH_WANT_TIME32_SYSCALLS -#define __ARCH_WANT_SYS_CLONE3 -#define __ARCH_WANT_MEMFD_SECRET - -#include <asm-generic/unistd.h> +#include <asm/unistd_64.h>
linux-headers/asm-generic/unistd.h +1 -5
@@ -737,7 +737,7 @@ __SC_COMP(__NR_pselect6_time64, sys_pselect6, compat_sys_pselect6_time64)#define __NR_ppoll_time64 414 __SC_COMP(__NR_ppoll_time64, sys_ppoll, compat_sys_ppoll_time64)#define __NR_io_pgetevents_time64 416 -__SYSCALL(__NR_io_pgetevents_time64, sys_io_pgetevents) +__SC_COMP(__NR_io_pgetevents_time64, sys_io_pgetevents, compat_sys_io_pgetevents_time64)#define __NR_recvmmsg_time64 417 __SC_COMP(__NR_recvmmsg_time64, sys_recvmmsg, compat_sys_recvmmsg_time64)#define __NR_mq_timedsend_time64 418
@@ -776,12 +776,8 @@ __SYSCALL(__NR_fsmount, sys_fsmount) __SYSCALL(__NR_fspick, sys_fspick)#define __NR_pidfd_open 434 __SYSCALL(__NR_pidfd_open, sys_pidfd_open) - -#ifdef __ARCH_WANT_SYS_CLONE3#define __NR_clone3 435 __SYSCALL(__NR_clone3, sys_clone3) -#endif -#define __NR_close_range 436 __SYSCALL(__NR_close_range, sys_close_range)#define __NR_openat2 437
linux-headers/asm-loongarch/kvm.h +4 -0
@@ -81,7 +81,11 @@ struct kvm_fpu {#define LOONGARCH_REG_64 (TYPE ,REG ) (TYPE | KVM_REG_SIZE_U64 | (REG << LOONGARCH_REG_SHIFT))#define KVM_IOC_CSRID (REG ) LOONGARCH_REG_64(KVM_REG_LOONGARCH_CSR, REG)#define KVM_IOC_CPUCFG (REG ) LOONGARCH_REG_64(KVM_REG_LOONGARCH_CPUCFG, REG) + +/* Device Control API on vcpu fd */ #define KVM_LOONGARCH_VCPU_CPUCFG 0 +#define KVM_LOONGARCH_VCPU_PVTIME_CTRL 1 +#define KVM_LOONGARCH_VCPU_PVTIME_GPA 0struct kvm_debug_exit_arch { };
linux-headers/asm-loongarch/unistd.h +1 -3
@@ -1,5 +1,3 @@/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#define __ARCH_WANT_SYS_CLONE -#define __ARCH_WANT_SYS_CLONE3 -#include <asm-generic/unistd.h> +#include <asm/unistd_64.h>
linux-headers/asm-riscv/kvm.h +7 -0
@@ -168,6 +168,13 @@ enum KVM_RISCV_ISA_EXT_ID {KVM_RISCV_ISA_EXT_ZTSO ,KVM_RISCV_ISA_EXT_ZACAS ,KVM_RISCV_ISA_EXT_SSCOFPMF , +KVM_RISCV_ISA_EXT_ZIMOP , +KVM_RISCV_ISA_EXT_ZCA , +KVM_RISCV_ISA_EXT_ZCB , +KVM_RISCV_ISA_EXT_ZCD , +KVM_RISCV_ISA_EXT_ZCF , +KVM_RISCV_ISA_EXT_ZCMOP , +KVM_RISCV_ISA_EXT_ZAWRS , KVM_RISCV_ISA_EXT_MAX, };
linux-headers/asm-riscv/unistd.h +5 -36
46 lines not on this page · raw message
linux-headers/asm-x86/kvm.h +1 -0
@@ -106,6 +106,7 @@ struct kvm_ioapic_state {#define KVM_RUN_X86_SMM (1 << 0)#define KVM_RUN_X86_BUS_LOCK (1 << 1) +#define KVM_RUN_X86_GUEST_MODE (1 << 2)/* for KVM_GET_REGS and KVM_SET_REGS */ struct kvm_regs {
linux-headers/asm-x86/unistd_64.h +1 -0
@@ -336,6 +336,7 @@#define __NR_statx 332#define __NR_io_pgetevents 333#define __NR_rseq 334 +#define __NR_uretprobe 335#define __NR_pidfd_send_signal 424#define __NR_io_uring_setup 425#define __NR_io_uring_enter 426
linux-headers/asm-x86/unistd_x32.h +1 -0
@@ -289,6 +289,7 @@#define __NR_statx (__X32_SYSCALL_BIT + 332)#define __NR_io_pgetevents (__X32_SYSCALL_BIT + 333)#define __NR_rseq (__X32_SYSCALL_BIT + 334) +#define __NR_uretprobe (__X32_SYSCALL_BIT + 335)#define __NR_pidfd_send_signal (__X32_SYSCALL_BIT + 424)#define __NR_io_uring_setup (__X32_SYSCALL_BIT + 425)#define __NR_io_uring_enter (__X32_SYSCALL_BIT + 426)
linux-headers/linux/iommufd.h +123 -18
191 lines not on this page · raw message
linux-headers/linux/kvm.h +22 -1
@@ -192,11 +192,20 @@ struct kvm_xen_exit {/* Flags that describe what fields in emulation_failure hold valid data. */ #define KVM_INTERNAL_ERROR_EMULATION_FLAG_INSTRUCTION_BYTES (1ULL << 0) +/* +* struct kvm_run can be modified by userspace at any time, so KVM must be +* careful to avoid TOCTOU bugs. In order to protect KVM, HINT_UNSAFE_IN_KVM() +* renames fields in struct kvm_run from <symbol> to <symbol>__unsafe when +* compiled into the kernel, ensuring that any use within KVM is obvious and +* gets extra scrutiny. +*/ +#define HINT_UNSAFE_IN_KVM (_symbol) _symbol +/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ struct kvm_run {/* in */ __u8 request_interrupt_window; -__u8 immediate_exit; +__u8 HINT_UNSAFE_IN_KVM(immediate_exit );__u8 padding1[6 ];/* out */
@@ -913,6 +922,9 @@ struct kvm_enable_cap {#define KVM_CAP_MEMORY_ATTRIBUTES 233#define KVM_CAP_GUEST_MEMFD 234#define KVM_CAP_VM_TYPES 235 +#define KVM_CAP_PRE_FAULT_MEMORY 236 +#define KVM_CAP_X86_APIC_BUS_CYCLES_NS 237 +#define KVM_CAP_X86_GUEST_MODE 238struct kvm_irq_routing_irqchip {__u32 irqchip;
@@ -1544,4 +1556,13 @@ struct kvm_create_guest_memfd { __u64 reserved[6]; }; +#define KVM_PRE_FAULT_MEMORY _IOWR(KVMIO, 0xd5, struct kvm_pre_fault_memory) + +struct kvm_pre_fault_memory { +__u64 gpa; +__u64 size; +__u64 flags; +__u64 padding[5 ]; +}; +#endif /* __LINUX_KVM_H */
linux-headers/linux/mman.h +1 -0
@@ -17,6 +17,7 @@#define MAP_SHARED 0x01/* Share changes */ #define MAP_PRIVATE 0x02/* Changes are private */ #define MAP_SHARED_VALIDATE 0x03/* share + validate extension flags */ +#define MAP_DROPPABLE 0x08/* Zero memory under memory pressure. */ /* * Huge page size encoding when MAP_HUGETLB is specified, and a huge page
linux-headers/linux/psp-sev.h +28 -0
@@ -31,6 +31,7 @@ enum {SNP_PLATFORM_STATUS ,SNP_COMMIT ,SNP_SET_CONFIG , +SNP_VLEK_LOAD , SEV_MAX, };
@@ -50,6 +51,7 @@ typedef enum {SEV_RET_INVALID_PLATFORM_STATE ,SEV_RET_INVALID_GUEST_STATE ,SEV_RET_INAVLID_CONFIG , +SEV_RET_INVALID_CONFIG =SEV_RET_INAVLID_CONFIG ,SEV_RET_INVALID_LEN ,SEV_RET_ALREADY_OWNED , SEV_RET_INVALID_CERTIFICATE,
@@ -214,6 +216,32 @@ struct sev_user_data_snp_config {__u8 rsvd1[52 ]; } __attribute__((packed)); +/** +* struct sev_data_snp_vlek_load - SNP_VLEK_LOAD structure +* +* @len: length of the command buffer read by the PSP +* @vlek_wrapped_version: version of wrapped VLEK hashstick (Must be 0h) +* @rsvd: reserved +* @vlek_wrapped_address: address of a wrapped VLEK hashstick +* (struct sev_user_data_snp_wrapped_vlek_hashstick) +*/ +struct sev_user_data_snp_vlek_load { +__u32 len;/* In */ +__u8 vlek_wrapped_version;/* In */ +__u8 rsvd[3 ];/* In */ +__u64 vlek_wrapped_address;/* In */ +} __attribute__((packed)); + +/** +* struct sev_user_data_snp_vlek_wrapped_vlek_hashstick - Wrapped VLEK data +* +* @data: Opaque data provided by AMD KDS (as described in SEV-SNP Firmware ABI +* 1.54, SNP_VLEK_LOAD) +*/ +struct sev_user_data_snp_wrapped_vlek_hashstick { +__u8 data[432 ];/* In */ +} __attribute__((packed)); +/** * struct sev_issue_cmd - SEV ioctl parameters *
Signature · 1 line
2.34.1
PATCH 2/2 target/riscv/kvm: Update kvm exts to Linux v6.11
In reply to [email protected]From: Quan Zhou <[email protected]>
Add support for a few Zc* extensions, Zimop, Zcmop and Zawrs.
--- target/riscv/kvm/kvm-cpu.c | 7 +++++++ 1 file changed, 7 insertions(+)
target/riscv/kvm/kvm-cpu.c +7 -0
@@ -281,7 +281,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zihintntl" , ext_zihintntl,KVM_RISCV_ISA_EXT_ZIHINTNTL ),KVM_EXT_CFG ("zihintpause" , ext_zihintpause,KVM_RISCV_ISA_EXT_ZIHINTPAUSE ),KVM_EXT_CFG ("zihpm" , ext_zihpm,KVM_RISCV_ISA_EXT_ZIHPM ), +KVM_EXT_CFG ("zimop" , ext_zimop,KVM_RISCV_ISA_EXT_ZIMOP ), +KVM_EXT_CFG ("zcmop" , ext_zcmop,KVM_RISCV_ISA_EXT_ZCMOP ),KVM_EXT_CFG ("zacas" , ext_zacas,KVM_RISCV_ISA_EXT_ZACAS ), +KVM_EXT_CFG ("zawrs" , ext_zawrs,KVM_RISCV_ISA_EXT_ZAWRS ),KVM_EXT_CFG ("zfa" , ext_zfa,KVM_RISCV_ISA_EXT_ZFA ),KVM_EXT_CFG ("zfh" , ext_zfh,KVM_RISCV_ISA_EXT_ZFH ), KVM_EXT_CFG("zfhmin", ext_zfhmin, KVM_RISCV_ISA_EXT_ZFHMIN),
@@ -292,6 +295,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zbkc" , ext_zbkc,KVM_RISCV_ISA_EXT_ZBKC ),KVM_EXT_CFG ("zbkx" , ext_zbkx,KVM_RISCV_ISA_EXT_ZBKX ),KVM_EXT_CFG ("zbs" , ext_zbs,KVM_RISCV_ISA_EXT_ZBS ), +KVM_EXT_CFG ("zca" , ext_zca,KVM_RISCV_ISA_EXT_ZCA ), +KVM_EXT_CFG ("zcb" , ext_zcb,KVM_RISCV_ISA_EXT_ZCB ), +KVM_EXT_CFG ("zcd" , ext_zcd,KVM_RISCV_ISA_EXT_ZCD ), +KVM_EXT_CFG ("zcf" , ext_zcf,KVM_RISCV_ISA_EXT_ZCF ),KVM_EXT_CFG ("zknd" , ext_zknd,KVM_RISCV_ISA_EXT_ZKND ),KVM_EXT_CFG ("zkne" , ext_zkne,KVM_RISCV_ISA_EXT_ZKNE ), KVM_EXT_CFG("zknh", ext_zknh, KVM_RISCV_ISA_EXT_ZKNH),
Signature · 1 line
2.34.1
Quoted 38 lines · On Tue, Sep 24, 2024 at 04:30:01PM GMT, [email protected] wrote:
From: Quan Zhou <[email protected]>
Add support for a few Zc* extensions, Zimop, Zcmop and Zawrs.
Signed-off-by Quan Zhou <[email protected]>--- target/riscv/kvm/kvm-cpu.c | 7 +++++++ 1 file changed, 7 insertions(+)target/riscv/kvm/kvm-cpu.c +7
-0@@ -281,7 +281,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zihintntl" , ext_zihintntl,KVM_RISCV_ISA_EXT_ZIHINTNTL ),KVM_EXT_CFG ("zihintpause" , ext_zihintpause,KVM_RISCV_ISA_EXT_ZIHINTPAUSE ),KVM_EXT_CFG ("zihpm" , ext_zihpm,KVM_RISCV_ISA_EXT_ZIHPM ), +KVM_EXT_CFG ("zimop" , ext_zimop,KVM_RISCV_ISA_EXT_ZIMOP ), +KVM_EXT_CFG ("zcmop" , ext_zcmop,KVM_RISCV_ISA_EXT_ZCMOP ),KVM_EXT_CFG ("zacas" , ext_zacas,KVM_RISCV_ISA_EXT_ZACAS ), +KVM_EXT_CFG ("zawrs" , ext_zawrs,KVM_RISCV_ISA_EXT_ZAWRS ),KVM_EXT_CFG ("zfa" , ext_zfa,KVM_RISCV_ISA_EXT_ZFA ),KVM_EXT_CFG ("zfh" , ext_zfh,KVM_RISCV_ISA_EXT_ZFH ), KVM_EXT_CFG("zfhmin", ext_zfhmin, KVM_RISCV_ISA_EXT_ZFHMIN),@@ -292,6 +295,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zbkc" , ext_zbkc,KVM_RISCV_ISA_EXT_ZBKC ),KVM_EXT_CFG ("zbkx" , ext_zbkx,KVM_RISCV_ISA_EXT_ZBKX ),KVM_EXT_CFG ("zbs" , ext_zbs,KVM_RISCV_ISA_EXT_ZBS ), +KVM_EXT_CFG ("zca" , ext_zca,KVM_RISCV_ISA_EXT_ZCA ), +KVM_EXT_CFG ("zcb" , ext_zcb,KVM_RISCV_ISA_EXT_ZCB ), +KVM_EXT_CFG ("zcd" , ext_zcd,KVM_RISCV_ISA_EXT_ZCD ), +KVM_EXT_CFG ("zcf" , ext_zcf,KVM_RISCV_ISA_EXT_ZCF ),KVM_EXT_CFG ("zknd" , ext_zknd,KVM_RISCV_ISA_EXT_ZKND ),KVM_EXT_CFG ("zkne" , ext_zkne,KVM_RISCV_ISA_EXT_ZKNE ), KVM_EXT_CFG("zknh", ext_zknh, KVM_RISCV_ISA_EXT_ZKNH),Signature · 1 line
2.34.1
Jim Shu
Reviewed-byQuoted 43 lines · Andrew Jones
Quoted 36 lines · On Tue, Sep 24, 2024 at 04:30:01PM GMT, [email protected] wrote:
From: Quan Zhou <[email protected]>
Add support for a few Zc* extensions, Zimop, Zcmop and Zawrs.
Signed-off-by Quan Zhou <[email protected]>--- target/riscv/kvm/kvm-cpu.c | 7 +++++++ 1 file changed, 7 insertions(+)target/riscv/kvm/kvm-cpu.c +7
-1@@ -281,7 +281,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zihintntl" , ext_zihintntl,KVM_RISCV_ISA_EXT_ZIHINTNTL ),KVM_EXT_CFG ("zihintpause" , ext_zihintpause,KVM_RISCV_ISA_EXT_ZIHINTPAUSE ),KVM_EXT_CFG ("zihpm" , ext_zihpm,KVM_RISCV_ISA_EXT_ZIHPM ), +KVM_EXT_CFG ("zimop" , ext_zimop,KVM_RISCV_ISA_EXT_ZIMOP ), +KVM_EXT_CFG ("zcmop" , ext_zcmop,KVM_RISCV_ISA_EXT_ZCMOP ),KVM_EXT_CFG ("zacas" , ext_zacas,KVM_RISCV_ISA_EXT_ZACAS ), +KVM_EXT_CFG ("zawrs" , ext_zawrs,KVM_RISCV_ISA_EXT_ZAWRS ),KVM_EXT_CFG ("zfa" , ext_zfa,KVM_RISCV_ISA_EXT_ZFA ),KVM_EXT_CFG ("zfh" , ext_zfh,KVM_RISCV_ISA_EXT_ZFH ), KVM_EXT_CFG("zfhmin", ext_zfhmin, KVM_RISCV_ISA_EXT_ZFHMIN),@@ -292,6 +295,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zbkc" , ext_zbkc,KVM_RISCV_ISA_EXT_ZBKC ),KVM_EXT_CFG ("zbkx" , ext_zbkx,KVM_RISCV_ISA_EXT_ZBKX ),KVM_EXT_CFG ("zbs" , ext_zbs,KVM_RISCV_ISA_EXT_ZBS ), +KVM_EXT_CFG ("zca" , ext_zca,KVM_RISCV_ISA_EXT_ZCA ), +KVM_EXT_CFG ("zcb" , ext_zcb,KVM_RISCV_ISA_EXT_ZCB ), +KVM_EXT_CFG ("zcd" , ext_zcd,KVM_RISCV_ISA_EXT_ZCD ), +KVM_EXT_CFG ("zcf" , ext_zcf,KVM_RISCV_ISA_EXT_ZCF ),KVM_EXT_CFG ("zknd" , ext_zknd,KVM_RISCV_ISA_EXT_ZKND ),KVM_EXT_CFG ("zkne" , ext_zkne,KVM_RISCV_ISA_EXT_ZKNE ), KVM_EXT_CFG("zknh", ext_zknh, KVM_RISCV_ISA_EXT_ZKNH), --Quoted 2 lines
2.34.1
Reviewed-by Andrew Jones <[email protected]>
Alistair Francis
AppliedQuoted 6 lines · On Tue, Sep 24, 2024 at 10:57 PM <[email protected]> wrote:
From: Quan Zhou <[email protected]>
Add support for a few Zc* extensions, Zimop, Zcmop and Zawrs.
Signed-off-by Quan Zhou <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 34 lines
--- target/riscv/kvm/kvm-cpu.c | 7 +++++++ 1 file changed, 7 insertions(+)target/riscv/kvm/kvm-cpu.c +7
-1@@ -281,7 +281,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zihintntl" , ext_zihintntl,KVM_RISCV_ISA_EXT_ZIHINTNTL ),KVM_EXT_CFG ("zihintpause" , ext_zihintpause,KVM_RISCV_ISA_EXT_ZIHINTPAUSE ),KVM_EXT_CFG ("zihpm" , ext_zihpm,KVM_RISCV_ISA_EXT_ZIHPM ), +KVM_EXT_CFG ("zimop" , ext_zimop,KVM_RISCV_ISA_EXT_ZIMOP ), +KVM_EXT_CFG ("zcmop" , ext_zcmop,KVM_RISCV_ISA_EXT_ZCMOP ),KVM_EXT_CFG ("zacas" , ext_zacas,KVM_RISCV_ISA_EXT_ZACAS ), +KVM_EXT_CFG ("zawrs" , ext_zawrs,KVM_RISCV_ISA_EXT_ZAWRS ),KVM_EXT_CFG ("zfa" , ext_zfa,KVM_RISCV_ISA_EXT_ZFA ),KVM_EXT_CFG ("zfh" , ext_zfh,KVM_RISCV_ISA_EXT_ZFH ), KVM_EXT_CFG("zfhmin", ext_zfhmin, KVM_RISCV_ISA_EXT_ZFHMIN),@@ -292,6 +295,10 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {KVM_EXT_CFG ("zbkc" , ext_zbkc,KVM_RISCV_ISA_EXT_ZBKC ),KVM_EXT_CFG ("zbkx" , ext_zbkx,KVM_RISCV_ISA_EXT_ZBKX ),KVM_EXT_CFG ("zbs" , ext_zbs,KVM_RISCV_ISA_EXT_ZBS ), +KVM_EXT_CFG ("zca" , ext_zca,KVM_RISCV_ISA_EXT_ZCA ), +KVM_EXT_CFG ("zcb" , ext_zcb,KVM_RISCV_ISA_EXT_ZCB ), +KVM_EXT_CFG ("zcd" , ext_zcd,KVM_RISCV_ISA_EXT_ZCD ), +KVM_EXT_CFG ("zcf" , ext_zcf,KVM_RISCV_ISA_EXT_ZCF ),KVM_EXT_CFG ("zknd" , ext_zknd,KVM_RISCV_ISA_EXT_ZKND ),KVM_EXT_CFG ("zkne" , ext_zkne,KVM_RISCV_ISA_EXT_ZKNE ), KVM_EXT_CFG("zknh", ext_zknh, KVM_RISCV_ISA_EXT_ZKNH), --2.34.1