From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMdFj-00040O-Ph for qemu-devel@nongnu.org; Fri, 12 Oct 2012 07:18:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMdFe-0000oU-5V for qemu-devel@nongnu.org; Fri, 12 Oct 2012 07:18:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMdFd-0000oQ-T3 for qemu-devel@nongnu.org; Fri, 12 Oct 2012 07:17:58 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9CBHvp2011885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Oct 2012 07:17:57 -0400 Message-ID: <5077FC61.50708@redhat.com> Date: Fri, 12 Oct 2012 13:17:53 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1350033962-16665-1-git-send-email-kraxel@redhat.com> <1350033962-16665-8-git-send-email-kraxel@redhat.com> <5077EF88.2070708@redhat.com> <5077F5EB.1080103@redhat.com> <5077FBE6.2040107@redhat.com> In-Reply-To: <5077FBE6.2040107@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 7/7] chardev: add hotplug support. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Il 12/10/2012 13:15, Gerd Hoffmann ha scritto: >> > In principle you're right, but I think it's ugly that adding another >> > chardev argument needs changes in 3 places instead of just one. > Hmm, I don't have to use the generated marshaller, right? With direct > access to the QDict I could just transform it into a QemuOpts. That's exactly what I was suggesting. :P > A new parameter wouldn't need code changes then. And the code would be > reusable and probably also be simpler. The qapi schema still needs > an update though. The QAPI schema is only used by the generated marshaller. > HMP is more tricky, but I think we should sort QMP first. HMP can just take a string, parse it into QemuOpts, and call a small wrapper that calls qemu_chr_new_from_opts and returns errors via Error. Paolo