From: Jim Fehlig <jfehlig@novell.com>
To: Xen-devel <xen-devel@lists.xensource.com>
Cc: Ryan O'Connor <rjo@cs.ubc.ca>
Subject: regression with c/s 21223
Date: Thu, 06 May 2010 21:36:57 -0600 [thread overview]
Message-ID: <4BE38AD9.3010701@novell.com> (raw)
Hi Keir,
Unfortunately, my fix for losing device config [1] has caused duplicate
devices to appear when successfully starting a managed domain that uses
tapdisk :(.
# xm li -l domu1 | grep tap
(tap2
(uname tap:aio:/mnt1/images/domu1/disk0)
# xm start domu1
# xm li -l domu1 | grep tap
(tap2
(uname tap:aio:/mnt1/images/domu1/disk0)
(tap
(uname tap:aio:/mnt1/images/domu1disk0)
This particular host does not have blktap2 driver so blktap1 is used
instead. (NB: I do not see the problem when using blktap2, but we are
not yet supporting it.)
c/s 21223 attempted to make to_sxp() consult the stored config if no
running config was found for a given device class. tap2 vs tap provides
an interesting twist. If blktap2 dev controller is consulted (cls ==
tap2), no running config is returned since the device is really being
handled by blktap1. The existing config is then consulted, in which
case a blktap2 (tap2) device is found. When blktap1 controller is
consulted (cls == tap), it returns running config found in xenstore
resulting in duplicate devices.
Frankly, I'm not sure how best to handle this case. The current
philosophy seems to be treat all 'tap:foo' devices as blktap2 (see c/s
19874 - author cc'd), but fall back to blktap1 if blktap2 is not found
when domU is started. I'm certainly having problems differentiating
between the two in to_sxp().
Any suggestions on how to prevent the bug reported in [1] without this
new regression?
Thanks,
Jim
[1] http://lists.xensource.com/archives/html/xen-devel/2010-04/msg01127.html
next reply other threads:[~2010-05-07 3:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 3:36 Jim Fehlig [this message]
2010-05-07 8:30 ` regression with c/s 21223 Keir Fraser
2010-05-07 13:37 ` Jim Fehlig
2010-05-07 18:12 ` Keir Fraser
2010-05-07 19:31 ` Jim Fehlig
2010-05-07 19:41 ` Keir Fraser
2010-05-16 10:54 ` Does Xen 3.4.3 support pvops kernel 2.6.32.12 ? Boris Derzhavets
2010-05-16 11:09 ` Keir Fraser
2010-05-16 12:11 ` Joanna Rutkowska
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=4BE38AD9.3010701@novell.com \
--to=jfehlig@novell.com \
--cc=rjo@cs.ubc.ca \
--cc=xen-devel@lists.xensource.com \
/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.