Re: [PATCH v9 1/8] xen/common: introduce a new framework for save/restore of 'domain' context

2020-10-13 Thread Jan Beulich
On 05.10.2020 10:03, Paul Durrant wrote: >> From: Andrew Cooper >> Sent: 02 October 2020 22:20 >> >> On 24/09/2020 14:10, Paul Durrant wrote: >>> +int domain_save_end(struct domain_context *c) >>> +{ >>> +struct domain *d = c->domain; >>> +size_t len = ROUNDUP(c->len, DOMAIN_SAVE_ALIGN) -

RE: [PATCH v9 1/8] xen/common: introduce a new framework for save/restore of 'domain' context

2020-10-05 Thread Paul Durrant
> -Original Message- > From: Andrew Cooper > Sent: 02 October 2020 22:20 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Paul Durrant ; Julien Grall ; Jan > Beulich > ; George Dunlap ; Ian Jackson > ; Stefano Stabellini ; Wei > Liu ; > Volodymyr Babchuk ; Roger Pau Monné >

Re: [PATCH v9 1/8] xen/common: introduce a new framework for save/restore of 'domain' context

2020-10-03 Thread Wei Liu
On Fri, Oct 02, 2020 at 10:20:18PM +0100, Andrew Cooper wrote: [...] > P.S. Another good reason for having extremely simple header files is for > the poor sole trying to write a Go/Rust/other binding for this in some > likely not-to-distant future. For Rust the header is going to be generated by

Re: [PATCH v9 1/8] xen/common: introduce a new framework for save/restore of 'domain' context

2020-10-02 Thread Andrew Cooper
On 24/09/2020 14:10, Paul Durrant wrote: > +/* > + * The 'dry_run' flag indicates that the caller of domain_save() (see below) > + * is not trying to actually acquire the data, only the size of the data. > + * The save handler can therefore limit work to only that which is necessary > + * to call

Re: [PATCH v9 1/8] xen/common: introduce a new framework for save/restore of 'domain' context

2020-10-02 Thread Andrew Cooper
On 24/09/2020 14:10, Paul Durrant wrote: > diff --git a/xen/common/save.c b/xen/common/save.c > new file mode 100644 > index 00..841c4d0e4e > --- /dev/null > +++ b/xen/common/save.c > @@ -0,0 +1,315 @@ > +/* > + * save.c: Save and restore PV guest state common to all domain types. This

[PATCH v9 1/8] xen/common: introduce a new framework for save/restore of 'domain' context

2020-09-24 Thread Paul Durrant
To allow enlightened HVM guests (i.e. those that have PV drivers) to be migrated without their co-operation it will be necessary to transfer 'PV' state such as event channel state, grant entry state, etc. Currently there is a framework (entered via the hvm_save/load() functions) that allows a