hw/xen: Implement soft reset for emulated gnttab

This is only part of it; we will also need to get the PV back end drivers
to tear down their own mappings (or do it for them, but they kind of need
to stop using the pointers too).

Some more work on the actual PV back ends and xen-bus code is going to be
needed to really make soft reset and migration fully functional, and this
part is the basis for that.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
David Woodhouse 2023-01-10 01:09:04 +00:00
parent d05864d23b
commit de26b26197
3 changed files with 30 additions and 2 deletions

View file

@ -1406,6 +1406,11 @@ int kvm_xen_soft_reset(void)
return err;
}
err = xen_gnttab_reset();
if (err) {
return err;
}
err = xen_xenstore_reset();
if (err) {
return err;