From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mT6OB-0006Nh-E8 for mharc-qemu-riscv@gnu.org; Wed, 22 Sep 2021 13:50:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT6O8-0006MP-0l for qemu-riscv@nongnu.org; Wed, 22 Sep 2021 13:50:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT6O5-0007QF-EV for qemu-riscv@nongnu.org; Wed, 22 Sep 2021 13:50:30 -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-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-166-z2ZU0qcMM-CbRS1_9_RUcQ-1; Wed, 22 Sep 2021 13:50:26 -0400 X-MC-Unique: z2ZU0qcMM-CbRS1_9_RUcQ-1 Received: by mail-wr1-f69.google.com with SMTP id h5-20020a5d6885000000b0015e21e37523so2861739wru.10 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=wRFI+oSG20oZkAg419kNtqgr5k3yb3T/+89g9y4FzG4ZXPsHS4vxJp+3W1EjJHq6TB OOw7f7SEeqYNFtValChRS47yI2PA8JWknD1EMy++1hbmSlPBMPlF2TTKjjk673iz/ww9 pJFCDG7BqhHY5AszbQucrulHv8lGKFUPHvBO14xv6AvqLRrTJryGOiBlpjGmShRShPTn K5q7C/GFZ2ksV692X3OM35KR7/xOnWmqJ88rs42FCNcYX5QOOoL/+a0P9qIPXXpSmp8Z aqljuXaTEv7P98jfBAjYIPpiuriiZKdpx2koUcwx+tVLLgfizc23tsOKIiKnvvIHPdnl reaw== X-Gm-Message-State: AOAM5313nXn7AlhejZ9NEVnklfk4n6ogQXiAmV7ak05UCNqpwBXMi5PM shbnHSzjkpTC0CELk+mFWZXgHt+6xItSxaxiGBF5qtuibRKU8Pp4Va8Dau5tgcnA2wnjXx94ec7 aQY50ifqXlYWg5wY= X-Received: by 2002:adf:d084:: with SMTP id y4mr217238wrh.249.1632333025507; 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 Cc: Peter Maydell , "Michael S. Tsirkin" , David Hildenbrand , Peter Xu , mirela.grujic@greensocs.com, Alistair Francis , Gerd Hoffmann , Ani Sinha , Eric Blake , Stefano Stabellini , xen-devel@lists.xenproject.org, Paul Durrant , Markus Armbruster , Anthony Perard , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Eduardo Habkost , "Dr. David Alan Gilbert" , Eric Auger , Paolo Bonzini , qemu-riscv@nongnu.org, =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= , mark.burton@greensocs.com, edgari@xilinx.com, Igor Mammedov 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=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) 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-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2021 17:50:32 -0000 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.