Patch "RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     risc-v-kvm-fix-csr_write-csr_set-for-hvien-pmu-overf.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e357b868a26c8404b85881e96039e0d7dbf67171
Author: Michael Neuling <michaelneuling@xxxxxxxxxxxxxxx>
Date:   Wed Nov 27 04:18:40 2024 +0000

    RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
    
    [ Upstream commit ea6398a5af81e3e7fb3da5d261694d479a321fd9 ]
    
    This doesn't cause a problem currently as HVIEN isn't used elsewhere
    yet. Found by inspection.
    
    Signed-off-by: Michael Neuling <michaelneuling@xxxxxxxxxxxxxxx>
    Fixes: 16b0bde9a37c ("RISC-V: KVM: Add perf sampling support for guests")
    Reviewed-by: Atish Patra <atishp@xxxxxxxxxxxx>
    Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20241127041840.419940-1-michaelneuling@xxxxxxxxxxxxxxx
    Signed-off-by: Anup Patel <anup@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/riscv/kvm/aia.c b/arch/riscv/kvm/aia.c
index 2967d305c442..9f3b527596de 100644
--- a/arch/riscv/kvm/aia.c
+++ b/arch/riscv/kvm/aia.c
@@ -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)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux