summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-11-09 16:02:09 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2025-11-10 08:37:07 +0800
commit5001bcf86edf2de02f025a0f789bcac37fa040e6 (patch)
tree2c92111edd0fc8eacf1df40e15294031ee80e032 /net/unix/af_unix.c
parentd3c9515e4f9d10ccb113adb4809db5cc31e7ef65 (diff)
LoongArch: KVM: Restore guest PMU if it is enabled
On LoongArch system, guest PMU hardware is shared by guest and host but PMU interrupt is separated. PMU is pass-through to VM, and there is PMU context switch when exit to host and return to guest. There is optimiation to check whether PMU is enabled by guest. If not, it is not necessary to return to guest. However, if it is enabled, PMU context for guest need switch on. Now KVM_REQ_PMU notification is set on vCPU context switch, but it is missing if there is no vCPU context switch while PMU is used by guest VM, so fix it. Cc: <stable@vger.kernel.org> Fixes: f4e40ea9f78f ("LoongArch: KVM: Add PMU support for guest") Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions