]> git.ipfire.org Git - thirdparty/qemu.git/commit
9pfs/xen: Fix segfault on shutdown
authorJason Andryuk <jandryuk@gmail.com>
Tue, 2 May 2023 14:37:22 +0000 (10:37 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 17 May 2023 09:27:58 +0000 (12:27 +0300)
commit117f33c9a76791f436624ef21c2562c928b4c86f
treeb7f52625dfc2f82d4186374483b4afb44d717741
parente347aa89dd516db439c1f0b7b525eda5fb4507f9
9pfs/xen: Fix segfault on shutdown

xen_9pfs_free can't use gnttabdev since it is already closed and NULL-ed
out when free is called.  Do the teardown in _disconnect().  This
matches the setup done in _connect().

trace-events are also added for the XenDevOps functions.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Message-Id: <20230502143722.15613-1-jandryuk@gmail.com>
[C.S.: - Remove redundant return in xen_9pfs_free().
       - Add comment to trace-events. ]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
(cherry picked from commit 92e667f6fd5806a6a705a2a43e572bd9ec6819da)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/9pfs/trace-events
hw/9pfs/xen-9p-backend.c