]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: ivshmem: Fix cell disconnection
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 4 Jul 2015 21:31:27 +0000 (23:31 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 6 Jul 2015 06:41:46 +0000 (08:41 +0200)
commit72c02cef5a0d8da6187d3c7ac23c411138c2e253
tree7b32b9838d526b9ddcd5acb0df62bd9a36cf2a3a
parentf17685c37f1f70e045a9705527fb5b8e941fd0ac
core: ivshmem: Fix cell disconnection

Move the disconnect call before the potential endpoint copy operation.
Otherwise we risk to update the stale second entry, not the now active
first one.

This change also ensures that disconnect is performed even for the last
endpoint. This will allow us to put cleanup tasks into that function
that have to be executed unconditionally.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/pci_ivshmem.c