From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web12.4200.1630409209408711888 for ; Tue, 31 Aug 2021 04:26:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hI345jGq; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630409208; 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: in-reply-to:in-reply-to:references:references; bh=NnX/Sk22d+zkqNLY2armM2iV3wKZKZSG2K5Uapv5BL0=; b=hI345jGqyYK5FdFkA1dV3AINW9BGLi28FNT+yuUUPwBWQZ2rfYjQf/q6VMZwdexSL6eF5I BZXywAlrj0IoXFpzBLw7q4XpTENStCqdd/kL8Ub8Ix2IFzMEKxleg3xOCRKDlnZhg2kLDr LxpyWeZNRnFIZ3oA5kVHy8xe/wdQfL0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-4SJZAWDBMhKsxMdnOnn5PA-1; Tue, 31 Aug 2021 07:26:46 -0400 X-MC-Unique: 4SJZAWDBMhKsxMdnOnn5PA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4E7491008064; Tue, 31 Aug 2021 11:26:45 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 991A360BD8; Tue, 31 Aug 2021 11:26:40 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 882241800936; Tue, 31 Aug 2021 13:26:31 +0200 (CEST) Date: Tue, 31 Aug 2021 13:26:31 +0200 From: "Gerd Hoffmann" To: "Yao, Jiewen" Cc: "devel@edk2.groups.io" , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Anthony Perard , Ard Biesheuvel , "Justen, Jordan L" , Julien Grall , Stefan Berger Subject: Re: [PATCH 00/17] [RFC] OvmfPkg: Add support for microvm machine type Message-ID: <20210831112631.zeewfvaq7nwpyad7@sirius.home.kraxel.org> References: <20210831095714.2834550-1-kraxel@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 31, 2021 at 10:31:31AM +0000, Yao, Jiewen wrote: > Hi Gerd > I would like to confirm a couple of things: > > -1) Since this is a big new feature, please follow process to submit Bugzilla. > > 0) I hope we can include a readme file to introduce more background and the scope of the new project. Sure, will do both. > 1) What is the device list of microvm? It is a minimal virtual machine designed for modern (aka virtio-aware) guests. Most legacy isa devices (pic, pit, rtc) are optional and can be turned off. storage/network/etc. uses virtio-mmio. Optional pcie support is available and any pcie device supported by qemu cane plugged in (including virtio-pci if you prefer that over virtio-mmio). > Or do you mean https://qemu.readthedocs.io/en/latest/system/i386/microvm.html? Yes, it's this. > 2) How many QEMU configurations do we want to support? This series adds just the basics. I want add support for virtio-mmio and pcie later on, once the basics are sorted and merged. > 3) What is the reason to add a new dsc/fdf instead of add a MACRO/PCD in OVMF? microvm borrowed a bunch of ideas from arm virt. So it doesn't work like a classic pc chipset in many areas. There is no pci config space access via ioport 0xcf8 for example. Also power management works completely different (see patch #14). Adapting at runtime would need glue code basically switching between between different *Lib implementations, depending on machine type. Similar to DxePciLibI440FxQ35 for pci / pcie, but for a bunch of more places too. Xen moved to a separate dsc/fdf too recently, I suspect for simliar reasons. take care, Gerd