Re: [PATCH v2 14/15] RISC-V: KVM: add support for FWFT SBI extension

2025-02-14 Thread Clément Léger
On 11/02/2025 06:57, Deepak Gupta wrote: > On Mon, Feb 10, 2025 at 10:35:47PM +0100, Clément Léger wrote: >> Add basic infrastructure to support the FWFT extension in KVM. >> >> Signed-off-by: Clément Léger >> --- >> arch/riscv/include/asm/kvm_host.h  |   4 + >> arch/riscv/include/asm/k

Re: [PATCH v2 14/15] RISC-V: KVM: add support for FWFT SBI extension

2025-02-11 Thread Deepak Gupta
On Tue, Feb 11, 2025 at 11:31:28AM +0100, Clément Léger wrote: On 11/02/2025 06:43, Deepak Gupta wrote: +static int kvm_sbi_fwft_get(struct kvm_vcpu *vcpu, unsigned long feature, +    unsigned long *value) +{ +    int ret; +    struct kvm_sbi_fwft_config *conf; + +    ret = kvm_fwf

Re: [PATCH v2 14/15] RISC-V: KVM: add support for FWFT SBI extension

2025-02-11 Thread Clément Léger
On 11/02/2025 06:43, Deepak Gupta wrote: >> +static int kvm_sbi_fwft_get(struct kvm_vcpu *vcpu, unsigned long >> feature, >> +    unsigned long *value) >> +{ >> +    int ret; >> +    struct kvm_sbi_fwft_config *conf; >> + >> +    ret = kvm_fwft_get_feature(vcpu, feature, &conf); >> +

Re: [PATCH v2 14/15] RISC-V: KVM: add support for FWFT SBI extension

2025-02-10 Thread Deepak Gupta
On Mon, Feb 10, 2025 at 10:35:47PM +0100, Clément Léger wrote: Add basic infrastructure to support the FWFT extension in KVM. Signed-off-by: Clément Léger --- arch/riscv/include/asm/kvm_host.h | 4 + arch/riscv/include/asm/kvm_vcpu_sbi.h | 1 + arch/riscv/include/asm/kvm_vcpu_sb

Re: [PATCH v2 14/15] RISC-V: KVM: add support for FWFT SBI extension

2025-02-10 Thread Deepak Gupta
On Mon, Feb 10, 2025 at 10:35:47PM +0100, Clément Léger wrote: Add basic infrastructure to support the FWFT extension in KVM. Signed-off-by: Clément Léger --- arch/riscv/include/asm/kvm_host.h | 4 + arch/riscv/include/asm/kvm_vcpu_sbi.h | 1 + arch/riscv/include/asm/kvm_vcpu_sb

[PATCH v2 14/15] RISC-V: KVM: add support for FWFT SBI extension

2025-02-10 Thread Clément Léger
Add basic infrastructure to support the FWFT extension in KVM. Signed-off-by: Clément Léger --- arch/riscv/include/asm/kvm_host.h | 4 + arch/riscv/include/asm/kvm_vcpu_sbi.h | 1 + arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h | 37 arch/riscv/include/uapi/asm/kvm.h