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

Re: [PATCH v1 10/21] hw/i386/kvm/xen_evtchn: Reuse existing backend port in find_be_port()



On 24/11/2026 16:22, David Woodhouse wrote:
From: David Woodhouse <dwmw@xxxxxxxxxxxx>

After a guest soft reset, close_port() clears only the guest side of an
interdomain port; the backend handle still owns its be_handles[] slot.
Binding again then allocated a fresh slot each time, leaking the old
one — and leaving a dangling entry if the handle is later closed. Reuse
the slot the handle already owns.

Fixes: 794fba23a53a ("hw/xen: Add backend implementation of interdomain event 
channel support")
Reported-by: Hui Peng <benquike@xxxxxxxxx>
Closes: https://gitlab.com/qemu-project/qemu/-/work_items/4525
Signed-off-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
---
  hw/i386/kvm/xen_evtchn.c | 10 ++++++++++
  1 file changed, 10 insertions(+)

More soft reset joy...

Reviewed-by: Paul Durrant <paul@xxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.