RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
Subsystems (2)
PATCH 1/1 RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
This doesn't cause a problem currently as HVIEN isn't used elsewhere yet. Found by inspection.
--- arch/riscv/kvm/aia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kvm/aia.c +1 -1
@@ -552,7 +552,7 @@ void kvm_riscv_aia_enable(void)csr_set (CSR_HIE ,BIT (IRQ_S_GEXT ));/* Enable IRQ filtering for overflow interrupt only if sscofpmf is present */ if (__riscv_isa_extension_available (NULL ,RISCV_ISA_EXT_SSCOFPMF )) -csr_write (CSR_HVIEN ,BIT (IRQ_PMU_OVF )); +csr_set (CSR_HVIEN ,BIT (IRQ_PMU_OVF )); }void kvm_riscv_aia_disable (void )
Signature · 1 line
2.34.1
Anup Patel
maintainerPATCH 1/1 RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
Quoted 4 lines · On Mon, Nov 25, 2024 at 3:45?AM Michael Neuling…
This doesn't cause a problem currently as HVIEN isn't used elsewhere yet. Found by inspection.
Fixes tag ?
Quoted 1 line
Signed-off-by Michael Neuling <[email protected]>
Otherwise it looks good to me.
Regards,
Anup
Quoted 20 lines
--- arch/riscv/kvm/aia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/kvm/aia.c +1
-2@@ -552,7 +552,7 @@ void kvm_riscv_aia_enable(void)csr_set (CSR_HIE ,BIT (IRQ_S_GEXT ));/* Enable IRQ filtering for overflow interrupt only if sscofpmf is present */ if (__riscv_isa_extension_available (NULL ,RISCV_ISA_EXT_SSCOFPMF )) -csr_write (CSR_HVIEN ,BIT (IRQ_PMU_OVF )); +csr_set (CSR_HVIEN ,BIT (IRQ_PMU_OVF )); }void kvm_riscv_aia_disable (void ) --2.34.1
PATCH 1/1 RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
Quoted 5 lines
Quoted 3 lines
This doesn't cause a problem currently as HVIEN isn't used elsewhere yet. Found by inspection.
Fixes tag ?
I'll resend in a few days but it's:
(I've also added Atish to CC who was the original author)
Quoted 5 lines
Quoted 1 line
Signed-off-by Michael Neuling <[email protected]>Otherwise it looks good to me.
Reviewed-by Anup Patel <[email protected]>
Thanks.
Mikey
PATCH 1/1 RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
Quoted 11 lines · On Sun, Nov 24, 2024 at 8:41?PM Michael Neuling…
Quoted 6 lines
Quoted 4 lines
This doesn't cause a problem currently as HVIEN isn't used elsewhere yet. Found by inspection.
Fixes tag ?
I'll resend in a few days but it's:
Fixes 16b0bde9a37c ("RISC-V: KVM: Add perf sampling support for guests")
Thanks for catching this.
Quoted 11 lines
(I've also added Atish to CC who was the original author)
Quoted 5 lines
Quoted 1 line
Signed-off-by Michael Neuling <[email protected]>Otherwise it looks good to me.
Reviewed-by Anup Patel <[email protected]>Thanks.
Mikey