xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xencommons: Attempt to load blktap driver
Date: Wed, 16 May 2012 09:25:43 +0100	[thread overview]
Message-ID: <1337156743.27824.6.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <4FB377A10200007800083FFE@nat28.tlf.novell.com>

On Wed, 2012-05-16 at 08:47 +0100, Jan Beulich wrote:
> >>> On 15.05.12 at 18:40, George Dunlap <george.dunlap@eu.citrix.com> wrote:
> > On 15/05/12 17:36, Jan Beulich wrote:
> >>>>> On 15.05.12 at 18:21, George Dunlap<george.dunlap@eu.citrix.com>  wrote:
> >>>   But if not, I suggest we accept this patch, and I'll come
> >>> back and try to write a proper one before the 4.2 release.  I think it's
> >>> really important we do something before 4.2, as it causes pretty serious
> >>> problems on systems which are affected (almost always a host crash,
> >>> possibly with some disk corruption).
> >> A host crash because of a driver not loaded? That would suggest
> >> bugs elsewhere...
> > Yes -- a bug in the AIO implementation for foreign pages, as the 
> > description states.
> 
> But if there's no backend driver, there shouldn't be any I/O at all,
> and hence no crash? Or are you saying that in the absence of the
> driver another (qdisk?) backend gets selected (which doesn't match
> my own observations, at least not as far as local attach to Dom0
> is concerned, and I would hope [expect] that backend selection
> doesn't depend on which domain the frontend lives in)?

backend selection depends on what drivers are available in the backend
domain, not the frontend domain.

libxl will try blktap(2) first and fallback to qdisk if blktap is not
present. The issue George is seeing is that qdisk can sometimes exercise
AIO bugs which cause host crashes. The fix is to try harder to use
blktap when it is really available by ensuring it gets loaded.

> Finally, loading "blktap" here is the right thing for pvops, but
> wrong for legacy/forward ported kernels - blktap2 would be
> the right module name there afaict. Perhaps, if this really is to
> go in (temporarily), loading an alias (devname: or xen-backend:,
> though the latter apears to be missing from the pvops driver)
> would be better here?

There is no blktap driver at all in mainline pvops, which is part of the
problem and the reason for falling back to qdisk. Which pvops driver do
you mean? To confuse matters there is a DKMS thing floating around which
works against modern kernels too.

Perhaps the right answer is (roughly) "modprobe blktap2 || modprobe
blktap"?

Ian.

  reply	other threads:[~2012-05-16  8:25 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15 15:49 [PATCH] xencommons: Attempt to load blktap driver George Dunlap
2012-05-15 16:16 ` Jan Beulich
2012-05-15 16:21   ` George Dunlap
2012-05-15 16:36     ` Jan Beulich
2012-05-15 16:40       ` George Dunlap
2012-05-16  7:47         ` Jan Beulich
2012-05-16  8:25           ` Ian Campbell [this message]
2012-05-16  8:53             ` Jan Beulich
2012-08-31  8:40           ` Ian Campbell
2012-08-31  9:03             ` Jan Beulich
2012-08-31  9:33               ` Ian Campbell
2012-08-31  9:49                 ` Jan Beulich
2012-08-31 10:35                   ` Ian Campbell
2012-05-16  8:21     ` Ian Campbell
2012-05-16  8:58       ` Jan Beulich
2012-05-16  9:16         ` Ian Campbell
2012-05-16  9:51           ` Jan Beulich
2012-05-16  9:57             ` Ian Campbell
2012-05-16 10:49               ` George Dunlap
2012-05-16 11:44                 ` Ian Campbell
2012-06-08 15:35                   ` Ian Jackson
2012-06-12  8:56                     ` Ian Campbell
2012-07-30  8:23 ` Ian Campbell
2012-08-30 14:50 ` Ian Jackson

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=1337156743.27824.6.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).