|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 06/18] xenpaging: allow only one xenpaging binary
On Mon, Oct 18, Ian Jackson wrote:
> Olaf Hering writes ("[Xen-devel] [PATCH 06/18] xenpaging: allow only one
> xenpaging binary per guest"):
> > - ERROR("Error initialising shared page");
> > + switch ( errno ) {
> > + case EBUSY:
> > + ERROR("xenpaging is (or was) active on this domain");
> > + break;
> > + case ENODEV:
> > + ERROR("EPT not supported for this guest");
> > + break;
> > + default:
> > + ERROR("Error initialising shared page");
> > + break;
>
> Surely this should print the actual errno value.
Ok, can be done.
> > + /* Only one xenpaging at a time. If xenpaging crashed,
> > + * the cache is in an undefined state and so is the guest
> > + */
> > + rc = -EBUSY;
> > + if ( d->mem_event.enabled )
> > + break;
>
> Is there any way to recover from this or is the guest just hosed ?
If xenpaging dies for some reason, the bitmap which maps the "pageslot"
in the pagefile to the gfn in the guest is gone. There is no way to
recover from this situation. If the paging state should be persistant,
then the maintained bitmaps have to be kept in memory and each page write
has to be fsynced in some way.
Some other way has to be found to prevent two xenpaging runs per
domain_id.
Olaf
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|