From: George Dunlap <george.dunlap@eu.citrix.com>
To: xen-devel <xen-devel@lists.xen.org>,
Jan Beulich <JBeulich@suse.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>,
Wei Liu <wei.liu2@citrix.com>,
Dave Scott <Dave.Scott@eu.citrix.com>
Subject: blktap, qdisk, xl cd-eject, and xencommons
Date: Tue, 30 Apr 2013 11:02:38 +0100 [thread overview]
Message-ID: <517F96BE.1050705@eu.citrix.com> (raw)
Following on from the recent discussion about qdisk, there are two other
issues related to blktap and qdisk that need to be sorted out.
There are two bugs on the Xen release "blocker" list related to qdisk.
The first is "remove hard-coded modprobe's from xencommons".
Background:
- libxl will use blktap by default if it can
- but libxl only knows it can use it if it's already loaded
- QDEV used to use O_DIRECT, which tickled a bug in PVOPS kernels that
would cause it to crash
- So it used to be the case that if you booted on (for example) a Debian
Squeeze kernel with Xen, and had a cd-rom (or anything using qdisk),
your system would eventually crash
- Adding "modprobe blktap" to xencommons fixed this by causing libxl to
use blktap instead
- But Jan (rightly) objected to having such a hard-coded thing, and
accepted it for 4.2 only on the condition that it would be removed for 4.3
- However, the initial problem (qdev crashing on pvops kernels) has been
fixed in a different way now: by removing O_DIRECT from qdev. I have
verified that the same configuration (Debian Squeeze) running with a
qdev cdrom does not crash anymore.
The second is problems with xl cd-insert and eject, initially reported
by Fabio Fantoni, and then (accidentally) reproduced by me. The problem
turns out to be libxl using blktap for cdroms. Basically, AFAICT, the
whole cd-insert cd-eject thing completely doen't work if blktap is used
to provide it; and it's not a simple fix.
To address these issue for 4.3, I would like to propose:
1. Have libxl default to qdev for everything, except for things that it
needs blktap for (like vhd, IIRC)
2. Simply remove the hard-coded modprobe from xencommons
3. Add code into libxl to do modprobe-ing as part of the "does this
system support blktap" check.
But I think #3 can probably wait until 4.4.
Thoughts?
-George
next reply other threads:[~2013-04-30 10:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 10:02 George Dunlap [this message]
2013-04-30 10:17 ` blktap, qdisk, xl cd-eject, and xencommons Jan Beulich
2013-04-30 10:21 ` Ian Campbell
2013-04-30 10:32 ` George Dunlap
2013-04-30 10:21 ` Ian Campbell
2013-04-30 12:27 ` George Dunlap
2013-04-30 14:12 ` Ian Campbell
2013-04-30 15:09 ` George Dunlap
2013-04-30 15:15 ` George Dunlap
2013-04-30 15:17 ` Ian Campbell
2013-04-30 16:02 ` George Dunlap
2013-04-30 16:06 ` Ian Campbell
2013-04-30 16:09 ` Thanos Makatos
2013-04-30 10:22 ` Wei Liu
2013-04-30 10:56 ` George Dunlap
2013-04-30 11:54 ` Wei Liu
2013-04-30 12:16 ` George Dunlap
2013-04-30 12:38 ` Jan Beulich
2013-05-01 16:30 ` George Dunlap
2013-05-02 6:35 ` Jan Beulich
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=517F96BE.1050705@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=Dave.Scott@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.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 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.