[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] How to turn off persistent grant in xen



El 19/05/15 a les 16.17, HANNAS YAYA Issa ha escrit:
> Hi
> I want to disable persistent grant in xen. I tried to use xenbus to
> disable it. What I did is modifying this line in
> drivers/block/xenblkback/xenbus.c:
> 
> 791    err = xenbus_printf(xbt, dev->nodename, "feature-persistent",
> "%u", 1);
> 
> 
> and put this
> 
> 791    err = xenbus_printf(xbt, dev->nodename, "feature-persistent",
> "%u", 0);
> 
> but the problem is my domain crash.
> 
> I think it is not the only thing to do in order to disable persistent
> grant.

You only disabled it in the backend, so blkfront is announcing
persistent grant support while blkback is not. This means that blkback
will use persistent grants (because it sees the frontend supports them),
but blkfront will not.

You also need to disable the feature announcement from the frontend,
just grep for feature-persistent in xen-blkfront.c.

Roger.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.