From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3E3CC43217 for ; Wed, 22 Sep 2021 18:46:35 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8769C611C9 for ; Wed, 22 Sep 2021 18:46:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8769C611C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:60902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mT7GI-0002Hh-Ng for qemu-devel@archiver.kernel.org; Wed, 22 Sep 2021 14:46:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT6O8-0006MU-3G for qemu-devel@nongnu.org; Wed, 22 Sep 2021 13:50:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT6O5-0007QK-CX for qemu-devel@nongnu.org; Wed, 22 Sep 2021 13:50:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632333028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=324sILhdYxvnznF1+1US9ZnfMNECSzr9WbsW6XTulSY=; b=E8n8ZbaW45XShjIhrUOs3CPPG5KGfBn/cqikXFx/c+QJOzSkZ5DeFKx98tfBhyGzil9Lbz MBpIw5rRRYw7I5H3q/gW6yb/tA5F3xey/sFYq+ov5+/AhULIRPIIvnavV84fDYB4ghNWMa yopUA6OjsQfqVBv2klDEIW6l7jH4xSE= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-439-liDOWW2bNNaZyn-slVa-Ow-1; Wed, 22 Sep 2021 13:50:26 -0400 X-MC-Unique: liDOWW2bNNaZyn-slVa-Ow-1 Received: by mail-wr1-f70.google.com with SMTP id m18-20020adfe952000000b0015b0aa32fd6so2863758wrn.12 for ; Wed, 22 Sep 2021 10:50:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=324sILhdYxvnznF1+1US9ZnfMNECSzr9WbsW6XTulSY=; b=bM1Z3+dD0ScBE3XfuCsaUbkgMrSrG0SlaZ/UuYviF6kqN97qLi1rORfL2xcrviknFx AJo4B6TKy1CfsxHYdyS4ftmtbfbj3FKaAx6q0M+N5jN+w4fdfwcbFV9IS42sfNkEsPaw kgYouRLyoSHyOqyjKp1sVOqFCSAinUX7ow0hxCv/TtZEdfygKoiMG++i/wrdp8LB7zK8 VaEVzapORKuK4fWAPA+k40HC+GtLYtCwOKrgWjcIh8sPs6k6GDatBjlLjjtSrcopuUab SVq4fztWuCrZgN8s0ze+/AtWrN9kv1eFPNkCsWQJ4h3fANQ4VX4j4YIfLsxf11L7KkLm Y0mg== X-Gm-Message-State: AOAM533UNf416iVs2L4TpIqlq70gnWFAbyj4ta+imQaeFkkvXpfBiZ5Q bq54WxSalveDj9qToOouobPeTugg4fQr11spFsWtQX8qLAOuqlEA0rjBPUpMNnto7O9iwNP7qzr SGVYKF68wDgM+2is= X-Received: by 2002:adf:d084:: with SMTP id y4mr217239wrh.249.1632333025506; Wed, 22 Sep 2021 10:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkTAxtj4TUqlJA16lEOK2zxOqi0Lnhv+gZIrdsyM50ICcEZWWLl648/QwzUYzfSBk/7cFBmA== X-Received: by 2002:adf:d084:: with SMTP id y4mr217213wrh.249.1632333025297; Wed, 22 Sep 2021 10:50:25 -0700 (PDT) Received: from [192.168.1.36] (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id g205sm2940929wmg.18.2021.09.22.10.50.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Sep 2021 10:50:24 -0700 (PDT) Message-ID: Date: Wed, 22 Sep 2021 19:50:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [RFC PATCH v2 00/16] Initial support for machine creation via QMP To: Damien Hedde , qemu-devel@nongnu.org References: <20210922161405.140018-1-damien.hedde@greensocs.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20210922161405.140018-1-damien.hedde@greensocs.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.472, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , David Hildenbrand , Peter Xu , mirela.grujic@greensocs.com, Alistair Francis , Gerd Hoffmann , Ani Sinha , Eric Blake , Stefano Stabellini , "Michael S. Tsirkin" , Markus Armbruster , Anthony Perard , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Igor Mammedov , Eduardo Habkost , "Dr. David Alan Gilbert" , Paul Durrant , Eric Auger , xen-devel@lists.xenproject.org, qemu-riscv@nongnu.org, =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= , mark.burton@greensocs.com, edgari@xilinx.com, Paolo Bonzini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi Damien, On 9/22/21 18:13, Damien Hedde wrote: > > The goal of this work is to bring dynamic machine creation to QEMU: > we want to setup a machine without compiling a specific machine C > code. It would ease supporting highly configurable platforms (for > example resulting from an automated design flow). The requirements > for such configuration include begin able to specify the number of > cores, available peripherals, emmory mapping, IRQ mapping, etc. > > This series focuses on the first step: populating a machine with > devices during its creation. We propose patches to support this > using QMP commands. This is a working set of patches and improves > over the earlier rfc (posted in May): > https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg03706.html Do you have a roadmap for the following steps? Or are you done with this series? Yesterday I was thinking about this, and one thing I was wondering is if it would be possible to have DeviceClass and MachineClass implement a populate_fdt() handler, to automatically generate custom DTB for these custom machines. Maybe in your case you don't need that, as your framework generating the QEMU machine also generates the DTB, or even parse a DTB to generate the machine... :) Regards, Phil.