]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Skip PMU checking on vCPU context switch
authorBibo Mao <maobibo@loongson.cn>
Sun, 9 Nov 2025 08:02:09 +0000 (16:02 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 10 Nov 2025 00:37:07 +0000 (08:37 +0800)
commit11f340ece403e71aa2b643a2562a58ed3ac12e2c
tree56fd1dd91783ae6e3333d13f8f752ad618f7cfd6
parent5001bcf86edf2de02f025a0f789bcac37fa040e6
LoongArch: KVM: Skip PMU checking on vCPU context switch

PMU hardware about VM is switched on VM exit to host rather than vCPU
context sched off, PMU is checked and restored on return to VM. It is
not necessary to check PMU on vCPU context sched on callback, since the
request is made on the VM exit entry or VM PMU CSR access abort routine
already.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/vcpu.c