Skip to content

kvm: minor cleanups in kvm_close and kvm_irqchip_release_virq

Bin Guo kvm qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kvm: remove redundant check in kvm_closeaccel/kvm/kvm-all.c+5 -60 replies
2/2kvm: fix kvm_irqchip_release_virq loop after swap-removeaccel/kvm/kvm-all.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.50.1 (Apple Git-155)