From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] qemu-stubdom: prevent useless medium change
Date: Mon, 3 Dec 2012 17:27:34 +0100 [thread overview]
Message-ID: <50BCD2F6.8060106@citrix.com> (raw)
In-Reply-To: <20646.26443.690228.204535@mariner.uk.xensource.com>
On 16/11/12 17:18, Ian Jackson wrote:
> Roger Pau Monne writes ("[Xen-devel] [PATCH] qemu-stubdom: prevent useless medium change"):
>> qemu-stubdom was stripping the prefix from the "params" xenstore
>> key in xenstore_parse_domain_config, which was then saved stripped in
>> a variable. In xenstore_process_event we compare the "param" from
>> xenstore (not stripped) with the stripped "param" saved in the
>> variable, which leads to a medium change (even if there isn't any),
>> since we are comparing something like aio:/path/to/file with
>> /path/to/file. This only happens one time, since
>> xenstore_parse_domain_config is the only place where we strip the
>> prefix. The result of this bug is the following:
>
> I have been thinking about this.
>
> The reason I'm reluctant to apply this patch is that I'm worried it
> might cause some non-stubdom-related breakage. I know it feels EBW,
> but perhaps the answer is _more_ #ifdef STUBDOM rather than less ?
>
> Or do you think I should just read the code closely enough to
> understand it and your patch ? I suspect it's a can of worms...
Yes, it's a can of worms indeed.
The non-stubdom path is not modified, and the code changes (1st block of
the patch) are contained inside a #ifdef STUBDOM (which is not seen on
the patch itself, because it's already there).
Thanks, Roger.
next prev parent reply other threads:[~2012-12-03 16:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 16:02 [PATCH] qemu-stubdom: prevent useless medium change Roger Pau Monne
2012-11-16 16:18 ` Ian Jackson
2012-12-03 16:27 ` Roger Pau Monné [this message]
2012-12-06 12:37 ` [PATCH] qemu-stubdom: prevent useless medium change [and 1 more messages] Ian Jackson
2012-12-07 9:37 ` Roger Pau Monné
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=50BCD2F6.8060106@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Jackson@eu.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.