summary refs log tree commit diff stats
path: root/hw/i386/kvm/xenstore_impl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hw/xen: Add xenstore operations to allow redirection to internal emulationPaul Durrant2023-03-071-7/+1
| | | | | | Signed-off-by: Paul Durrant <pdurrant@amazon.com> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
* hw/xen: Implement core serialize/deserialize methods for xenstore_implDavid Woodhouse2023-03-071-0/+5
| | | | | | | | | | | | | | | | | 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/xen: Implement XenStore permissionsPaul Durrant2023-03-071-1/+7
| | | | | | | | Store perms as a GList of strings, check permissions. Signed-off-by: Paul Durrant <pdurrant@amazon.com> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
* hw/xen: Add xenstore wire implementation and implementation stubsDavid Woodhouse2023-03-071-0/+58
This implements the basic wire protocol for the XenStore commands, punting all the actual implementation to xs_impl_* functions which all just return errors for now. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>