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.web08.8001.1641473048962331010 for ; Thu, 06 Jan 2022 04:44:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YMq8uYaO; 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=1641473048; 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=NxYxwCCpiwR7S9xVn4JoDf9wBnkLHgbYUT9Yg/ThbDY=; b=YMq8uYaODz9NndkiKKKMSoq4khmUnvUW/NzRiQpxX9alEPrYan0oW4hGFFnGjEYLWPPkHC d5zBM9r7nsUEdYhY2Jk02iRAPXXV2sxvQCg/DyA2SDPMQ3xi3w3cNldgCLhwZBN6qi/o5n cJSLeZDRkzN9IJB56y50l+0RdpmbQZ8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-462-I5xSd9HRMr-BTTT1WOu9Ng-1; Thu, 06 Jan 2022 07:44:04 -0500 X-MC-Unique: I5xSd9HRMr-BTTT1WOu9Ng-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E404B100C610; Thu, 6 Jan 2022 12:44:03 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF0661079770; Thu, 6 Jan 2022 12:44:03 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id EA9831800612; Thu, 6 Jan 2022 13:44:01 +0100 (CET) Date: Thu, 6 Jan 2022 13:44:01 +0100 From: "Gerd Hoffmann" To: "Boeuf, Sebastien" Cc: "devel@edk2.groups.io" Subject: Re: EFI shell with microvm Message-ID: <20220106124401.btcx5ykka2k37sae@sirius.home.kraxel.org> References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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 Thu, Jan 06, 2022 at 11:25:37AM +0000, Boeuf, Sebastien wrote: > Hi Gerd, > > I was looking at a way to add support for EFI shell interaction with Cloud Hypervisor when > I realized you added the support for microvm with commit 55f47d22998. > I have been able to hack OvmfPkgX64 similarly to get it to work, but here are two follow up > questions: How do you want interact? Serial console? That should work just fine with OvmfPkgX64. qemu-system-x86_64 -nographic -bios Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd -net none Possibly you have to add the cloud hypervisor pci id somewhere so isa lpc and serial line driver are initialized properly. SioBusDxe looks like a hot candidate. microvm has no lpc bridge, so I had to do it in a different way ... > 2. I can see the shell but I can't interact with it, do you have a similar behavior with microvm > or is it because I'm missing the interrupt support? Works fine for me. qemu-system-x86_64 -nographic -machine microvm,rtc=on -bios Build/MicrovmX64/DEBUG_GCC5/FV/MICROVM.fd HTH, Gerd