From: Ian Jackson Subject: Re: [PATCH] qemu-stubdom: prevent useless medium change [and 1 more messages] Date: Thu, 6 Dec 2012 12:37:53 +0000 Message-ID: <20672.37281.34306.903202@mariner.uk.xensource.com> References: <1352822539-56930-1-git-send-email-roger.pau@citrix.com> <20646.26443.690228.204535@mariner.uk.xensource.com> <50BCD2F6.8060106@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1352822539-56930-1-git-send-email-roger.pau@citrix.com>, <50BCD2F6.8060106@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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: Roger Pau Monne writes ("Re: [Xen-devel] [PATCH] qemu-stubdom: prevent useless medium change"): > 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). Aha! Indeed. Acked-by: Ian Jackson Committed-by: Ian Jackson This needs to go into 4.2 surely ? Ian.