From: "Roger Pau Monné" <roger.pau@citrix.com>
To: HANNAS YAYA Issa <issa.hannasyaya@enseeiht.fr>, xen-devel@lists.xen.org
Subject: Re: How to turn off persistent grant in xen
Date: Tue, 19 May 2015 17:41:41 +0200 [thread overview]
Message-ID: <555B59B5.9060407@citrix.com> (raw)
In-Reply-To: <656dfa391741d97e139b1edaddb59f68@inp-toulouse.fr>
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.
next prev parent reply other threads:[~2015-05-19 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 14:17 How to turn off persistent grant in xen HANNAS YAYA Issa
2015-05-19 15:41 ` Roger Pau Monné [this message]
2015-05-19 16:09 ` HANNAS YAYA Issa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=555B59B5.9060407@citrix.com \
--to=roger.pau@citrix.com \
--cc=issa.hannasyaya@enseeiht.fr \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.