* How to turn off persistent grant in xen
@ 2015-05-19 14:17 HANNAS YAYA Issa
2015-05-19 15:41 ` Roger Pau Monné
0 siblings, 1 reply; 3+ messages in thread
From: HANNAS YAYA Issa @ 2015-05-19 14:17 UTC (permalink / raw)
To: xen-devel
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.
Please can you help me.
Thank you
HANNAS
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to turn off persistent grant in xen
2015-05-19 14:17 How to turn off persistent grant in xen HANNAS YAYA Issa
@ 2015-05-19 15:41 ` Roger Pau Monné
2015-05-19 16:09 ` HANNAS YAYA Issa
0 siblings, 1 reply; 3+ messages in thread
From: Roger Pau Monné @ 2015-05-19 15:41 UTC (permalink / raw)
To: HANNAS YAYA Issa, xen-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to turn off persistent grant in xen
2015-05-19 15:41 ` Roger Pau Monné
@ 2015-05-19 16:09 ` HANNAS YAYA Issa
0 siblings, 0 replies; 3+ messages in thread
From: HANNAS YAYA Issa @ 2015-05-19 16:09 UTC (permalink / raw)
To: xen-devel
Got it. Thank you
Hannas
On Tue, 19 May 2015 17:41:41 +0200, Roger Pau Monné wrote:
> 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@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-19 16:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 14:17 How to turn off persistent grant in xen HANNAS YAYA Issa
2015-05-19 15:41 ` Roger Pau Monné
2015-05-19 16:09 ` HANNAS YAYA Issa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.