hw/xen: Implement core serialize/deserialize methods for xenstore_impl
commit766804b101d7e452ad85995c231a5c3454f4e25b
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 31 Jan 2023 15:00:54 +0000 (31 15:00 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 7 Mar 2023 17:04:30 +0000 (7 17:04 +0000)
treed981f21407fd98e957378bc3ad9227da1398b3df
parentbe1934dfefe74aa1b978c0cda64c2b6282301196
hw/xen: Implement core serialize/deserialize methods for xenstore_impl

This implements the basic migration support in the back end, with unit
tests that give additional confidence in the node-counting already in
the tree.

However, the existing PV back ends like xen-disk don't support migration
yet. They will reset the ring and fail to continue where they left off.
We will fix that in future, but not in time for the 8.0 release.

Since there's also an open question of whether we want to serialize the
full XenStore or only the guest-owned nodes in /local/domain/${domid},
for now just mark the XenStore device as unmigratable.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/kvm/xen_xenstore.c
hw/i386/kvm/xenstore_impl.c
hw/i386/kvm/xenstore_impl.h
tests/unit/test-xs-node.c