Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/2] kvm: minor cleanups in kvm_close and kvm_irqchip_release_virq
@ 2026-05-09  2:45 Bin Guo
  2026-05-09  2:45 ` [PATCH 1/2] kvm: remove redundant check in kvm_close Bin Guo
  2026-05-09  2:45 ` [PATCH 2/2] kvm: fix kvm_irqchip_release_virq loop after swap-remove Bin Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Bin Guo @ 2026-05-09  2:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, kvm

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)


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

end of thread, other threads:[~2026-05-09  2:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-09  2:45 [PATCH 0/2] kvm: minor cleanups in kvm_close and kvm_irqchip_release_virq Bin Guo
2026-05-09  2:45 ` [PATCH 1/2] kvm: remove redundant check in kvm_close Bin Guo
2026-05-09  2:45 ` [PATCH 2/2] kvm: fix kvm_irqchip_release_virq loop after swap-remove Bin Guo

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