[PATCH 0/2] kvm: minor cleanups in kvm_close and kvm_irqchip_release_virq

Bin Guo posted 2 patches 2 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260509024539.90998-1-guobin@linux.alibaba.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
[PATCH 0/2] kvm: minor cleanups in kvm_close and kvm_irqchip_release_virq
Posted by Bin Guo 2 weeks, 2 days ago
Two small cleanups in kvm-all.c:

- Patch 1 removes a redundant null/fd check in kvm_close() that
  can never be true once the early-return guard at function entry
  has already passed.

- Patch 2 fixes an off-by-one in kvm_irqchip_release_virq(): after
  a swap-remove the newly placed entry at the same index was never
  re-examined, so a duplicate GSI could be silently left in the
  routing table.

Bin Guo (2):
  kvm: remove redundant check in kvm_close
  kvm: fix kvm_irqchip_release_virq loop after swap-remove

 accel/kvm/kvm-all.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

-- 
2.50.1 (Apple Git-155)