[PATCH v3 0/9] LoongArch: KVM: INTC: Enhancement about eiointc emulation

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

 



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





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux