From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdDad-0008BC-Av for qemu-devel@nongnu.org; Wed, 01 Apr 2015 04:01:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdDaa-0001vf-62 for qemu-devel@nongnu.org; Wed, 01 Apr 2015 04:01:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdDaa-0001vJ-0g for qemu-devel@nongnu.org; Wed, 01 Apr 2015 04:01:28 -0400 Message-ID: <551BA5D1.8050002@redhat.com> Date: Wed, 01 Apr 2015 10:01:21 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <551AAD75.8090909@linux.vnet.ibm.com> <551B963E.9060800@gmail.com> In-Reply-To: <551B963E.9060800@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [qemu devel] disable shared memory is not available with this QEMU binary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcel@redhat.com, Tony Krowiak , qemu-devel@nongnu.org Cc: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= On 01/04/2015 08:54, Marcel Apfelbaum wrote: > This is the first object for which QemuOps are defined per > sub-type and are not global (if you don't take "object" under > consideration). We can return the same QemuOpts that were included before. Per-machine-type options are new and need not be covered by query-command-line-options. Paolo > I saw others as well, like netdev, but I am not sure what happens there. > > Once the QemuOpts are parsed, the only place we can find those options > is the machine object itself (as QOM properties). > > I see a few options here: > 1. Add a feature to QemuOpts: "Look for options in QOM properties of > this obj" > 2. Add a callback to QEMU opts that supplies the options (have machine > supply the callback) > 3. Have the machine object fill in the corresponding QemuOpts on init.