mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/9] LoongArch: KVM: INTC: Enhancement about eiointc emulation
@ 2025-06-11  1:46 Bibo Mao
  2025-06-11  1:46 ` [PATCH v3 1/9] LoongArch: KVM: INTC: Fix interrupt route update with eiointc Bibo Mao
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Bibo Mao @ 2025-06-11  1:46 UTC (permalink / raw)
  To: Tianrui Zhao, Huacai Chen, Xianglai Li; +Cc: kvm, loongarch, linux-kernel

This series fix five issues about kernel eiointc emulation list as
follows:
  1. The first patch fixes type forced assignment issue.
  2. The second patch fixes interrupt route with physical cpu.
  3. The third patch disables update property num_cpu and feature
  4. The fourth patch adds validation check about num_cpu from user
     space.
  5. Overflow with array index when emulate register EIOINTC_ENABLE
     writing operation.

Also there is code cleanup with kernel eiointc emulation.

---
v2 ... v3:
  1. Add prefix INTC: in title of every patch.
  2. Fix array index overflow when emulate register EIOINTC_ENABLE
     writing operation.
  3. Add address alignment check with eiointc register access operation.

v1 ... v2:
  1. Add extra fix in patch 3 and patch 4, add num_cpu validation check
  2. Name of stat information keeps unchanged, only move it from VM stat
     to vCPU stat.
---

Bibo Mao (9):
  LoongArch: KVM: INTC: Fix interrupt route update with eiointc
  LoongArch: KVM: INTC: Check interrupt route from physical cpu
  LoongArch: KVM: INTC: Disable update property num_cpu and feature
  LoongArch: KVM: INTC: Check validation of num_cpu from user space
  LoongArch: KVM: INTC: Avoid overflow with array index
  LoongArch: KVM: INTC: Use standard bitops API with eiointc
  LoongArch: KVM: INTC: Remove unused parameter len
  LoongArch: KVM: INTC: Add stat information with kernel irqchip
  LoongArch: KVM: INTC: Add address alignment check

 arch/loongarch/include/asm/kvm_host.h |  12 +-
 arch/loongarch/kvm/intc/eiointc.c     | 167 +++++++++++++++-----------
 arch/loongarch/kvm/intc/ipi.c         |  28 +----
 arch/loongarch/kvm/intc/pch_pic.c     |   4 +-
 arch/loongarch/kvm/vcpu.c             |   8 +-
 5 files changed, 117 insertions(+), 102 deletions(-)


base-commit: aef17cb3d3c43854002956f24c24ec8e1a0e3546
-- 
2.39.3


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2025-06-27  9:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-11  1:46 [PATCH v3 0/9] LoongArch: KVM: INTC: Enhancement about eiointc emulation Bibo Mao
2025-06-11  1:46 ` [PATCH v3 1/9] LoongArch: KVM: INTC: Fix interrupt route update with eiointc Bibo Mao
2025-06-11  1:46 ` [PATCH v3 2/9] LoongArch: KVM: INTC: Check interrupt route from physical cpu Bibo Mao
2025-06-11  1:46 ` [PATCH v3 3/9] LoongArch: KVM: INTC: Disable update property num_cpu and feature Bibo Mao
2025-06-11  1:46 ` [PATCH v3 4/9] LoongArch: KVM: INTC: Check validation of num_cpu from user space Bibo Mao
2025-06-19  8:46   ` Huacai Chen
2025-06-20  1:42     ` Bibo Mao
2025-06-20 14:43       ` Huacai Chen
2025-06-27  7:42         ` Bibo Mao
2025-06-27  9:04           ` Huacai Chen
2025-06-11  1:46 ` [PATCH v3 5/9] LoongArch: KVM: INTC: Avoid overflow with array index Bibo Mao
2025-06-11  1:46 ` [PATCH v3 6/9] LoongArch: KVM: INTC: Use standard bitops API with eiointc Bibo Mao
2025-06-11  1:46 ` [PATCH v3 7/9] LoongArch: KVM: INTC: Remove unused parameter len Bibo Mao
2025-06-11  1:46 ` [PATCH v3 8/9] LoongArch: KVM: INTC: Add stat information with kernel irqchip Bibo Mao
2025-06-11  1:50 ` Bibo Mao
2025-06-11  1:51 ` [PATCH v3 9/9] LoongArch: KVM: INTC: Add address alignment check Bibo Mao
2025-06-19  8:47   ` Huacai Chen
2025-06-19  9:47     ` Bibo Mao
2025-06-21 11:20     ` David Laight
2025-06-21 13:04       ` Huacai Chen
2025-06-27  1:58         ` Bibo Mao
2025-06-27  2:12         ` Bibo Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®