From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:40816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzjI9-0002pp-HG for qemu-devel@nongnu.org; Fri, 01 Mar 2019 09:37:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzjI8-00079O-Rk for qemu-devel@nongnu.org; Fri, 01 Mar 2019 09:37:37 -0500 From: Alberto Garcia In-Reply-To: <20190301141809.GD5861@localhost.localdomain> References: <61bbfa3721938326edb03db58a6a246b384f3260.1547739122.git.berto@igalia.com> <20190212180231.GJ5283@localhost.localdomain> <20190301123608.GB5861@localhost.localdomain> <20190301125642.GC5861@localhost.localdomain> <20190301141809.GD5861@localhost.localdomain> Date: Fri, 01 Mar 2019 15:37:31 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 09/13] block: Add 'runtime_opts' and 'mutable_opts' fields to BlockDriver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz On Fri 01 Mar 2019 03:18:09 PM CET, Kevin Wolf wrote: > Hm, actually, do you even need the runtime_opts list? > > You use it in bdrv_reset_options_allowed() to iterate through each > option and then check whether it was present in the old set of > options, but not in the new set of options. > > In order to achieve this, you can just iterate the old options dict > because you don't do anything with options that are present in the > QemuOptsList, but not the old options dict. Hmm, that could work, I'll give it a try. Berto