From nobody Thu May 16 18:03:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108576+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108576+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1694602563; cv=none; d=zohomail.com; s=zohoarc; b=dPKUowKrpHoAZCu+KjOWA26yJrKLnzfQMKkyRx7zfmBqLGb7EI6r9LD68NyxoQddNP5GgzEwHGOqvjmdUuTKf5nYARS0n2ChJkmI85HHMytzU4fFS1Lg6UKi8lPaau+88jw6CyM19h05VrUbewa6/0c0lYPOObin59VD1fCXVfc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694602563; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=8X5vnqxZjDEsUvmK4n+n07PEeNVbhUmGmdiZkkZblLg=; b=IC5jjlducCM820OiocS23Li3HAMzBXty6tXwevtPe8OT625Om0FcgQ4mYHUZw3M4S6ELynzUVJ6DSJP9tMTQQrv1b/iKKeidJlYqskn0r/vww6I5EY8uboJ8gccEKn9DHU2sUUW/4kd86aEiIYQl8ZrNLXpIlG7rQ6YHZbLPftU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108576+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1694602563429655.769568273829; Wed, 13 Sep 2023 03:56:03 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=8X5vnqxZjDEsUvmK4n+n07PEeNVbhUmGmdiZkkZblLg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1694602563; v=1; b=I64ppT7YQo5YeC3SPMXSP+bo4QwRLeXdo7v0zDpxYxkbsTIbS/6X3KyECs8m0hJMrK5KA/d5 sECplnfiYdYSxlQo5RLVssTfovSuCBfwTEvd3xe9246CIYTIHMViit7hDinIhlUCbvtI+tp1V4H FcXLrZcII0sh1YfBReU6ziPs= X-Received: by 127.0.0.2 with SMTP id q5QPYY1788612xKwA0UcLeAi; Wed, 13 Sep 2023 03:56:03 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.8840.1694602562392621935 for ; Wed, 13 Sep 2023 03:56:02 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-45-n4hrsij_Pmu-aB-56N4Ejg-1; Wed, 13 Sep 2023 06:55:57 -0400 X-MC-Unique: n4hrsij_Pmu-aB-56N4Ejg-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0B56381D7A7; Wed, 13 Sep 2023 10:55:57 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.194.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id 832B740C6EA8; Wed, 13 Sep 2023 10:55:55 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io , lersek@redhat.com Cc: Andrei Warkentin , Andrew Jones , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Sunil V L Subject: [edk2-devel] [PATCH 1/3] OvmfPkg/RiscVVirt/README: explain that "-bios" is only useful with TCG Date: Wed, 13 Sep 2023 12:55:49 +0200 Message-Id: <20230913105551.12680-2-lersek@redhat.com> In-Reply-To: <20230913105551.12680-1-lersek@redhat.com> References: <20230913105551.12680-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: pwkmByrs3X20HdtwAeGcBs18x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1694602564782100007 Content-Type: text/plain; charset="utf-8"; x-default="true" Riscv64 KVM services SBI calls internally, so OpenSBI is not used in such setups. Restrict the "-bios" flag accordingly. Thanks: Andrei, Drew. Cc: Andrei Warkentin Cc: Andrew Jones Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Jordan Justen Cc: Sunil V L Signed-off-by: Laszlo Ersek Reviewed-by: Andrew Jones Reviewed-by: Sunil V L --- OvmfPkg/RiscVVirt/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md index dbb40bbe89b0..193e4afe8dee 100644 --- a/OvmfPkg/RiscVVirt/README.md +++ b/OvmfPkg/RiscVVirt/README.md @@ -86,3 +86,8 @@ then specify that binary for QEMU, with the following add= itional command line option: =20 -bios $OPENSBI_DIR/build/platform/generic/firmware/fw_dynamic.bin + +Note that the above only makes a difference with software emulation (which= you +can force with `-M accel=3Dtcg`). With hardware virtualization (`-M accel= =3Dkvm`), +KVM services the SBI (Supervisor Binary Interface) calls internally, there= fore +any externally loaded OpenSBI binary is ignored. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108576): https://edk2.groups.io/g/devel/message/108576 Mute This Topic: https://groups.io/mt/101334264/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076= /xyzzy [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Thu May 16 18:03:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108577+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108577+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1694602565; cv=none; d=zohomail.com; s=zohoarc; b=kPTfZp3fFM2UTcvrjp6pQUCBXyZlMZbBJoRBSP6CrzyjiPoWnzruzw3pFnXZzsqkELcMm0ywvfNR/pE9AnFWaZy0/7wrcGVEsdGeivBBFMUgYk7adPWMt7uePL9NL0/Rs/36xlVXKwAgV33Zn1l61nVsIkMhHxuIpmRRet4fW0E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694602565; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=WyeEXLT2XZFHmrFvuOf2ENXWJ7de9kOGcrSLWXQsZaE=; b=XjhW39eDeZRm879QGBQoBSbOSTa3XTxm8SYsm9UhkbP44seRIF0CbkNKPZUlynCqvrMEZIE3u8bKFwuruQXokODbQRzyNtWYyNJ3wHV6uIbjxJ2HVxu47uQRcPWTL6PSc3HzHXk0Dm+Nt+NnNS/tGvs7Ibrtj7ZdPJlNT03LnIk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108577+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1694602565739507.1849526261037; Wed, 13 Sep 2023 03:56:05 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=WyeEXLT2XZFHmrFvuOf2ENXWJ7de9kOGcrSLWXQsZaE=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1694602565; v=1; b=PXi4eor6S3iQ3+4uX7LTY+1X3+BDQG4VxHdyeIf+SkihIyOjuvMSwFNgGh1/pzhv+BDROue3 1eE11rQ7+ikc1A/I1/jkaWywTO3slTfIZ9kyNBWHhn2sq/DjhqZeq6kNjjxomBaplB9OvPH0Grw OwcV6IcjZkjYuGzfuG2QEbeo= X-Received: by 127.0.0.2 with SMTP id HCgjYY1788612x4RY2VW4faG; Wed, 13 Sep 2023 03:56:05 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.8842.1694602564795480180 for ; Wed, 13 Sep 2023 03:56:04 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-523-Iw8KAQJNMSOqJskIWDAzrg-1; Wed, 13 Sep 2023 06:56:00 -0400 X-MC-Unique: Iw8KAQJNMSOqJskIWDAzrg-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B8C65185A790; Wed, 13 Sep 2023 10:55:59 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.194.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3A7B740C6EBF; Wed, 13 Sep 2023 10:55:58 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io , lersek@redhat.com Cc: Andrei Warkentin , Andrew Jones , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Sunil V L Subject: [edk2-devel] [PATCH 2/3] OvmfPkg/RiscVVirt/README: explain the "acpi=off" machine property Date: Wed, 13 Sep 2023 12:55:50 +0200 Message-Id: <20230913105551.12680-3-lersek@redhat.com> In-Reply-To: <20230913105551.12680-1-lersek@redhat.com> References: <20230913105551.12680-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Y0dSFMEppZkS7btTcz0UXA5ex1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1694602566897100001 Content-Type: text/plain; charset="utf-8"; x-default="true" "acpi=3Doff" is arguably unusual with UEFI guest OSes; add a note to explain it. Original explanation by Drew Jones. Cc: Andrei Warkentin Cc: Andrew Jones Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Jordan Justen Cc: Sunil V L Signed-off-by: Laszlo Ersek Reviewed-by: Andrew Jones Reviewed-by: Sunil V L --- OvmfPkg/RiscVVirt/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md index 193e4afe8dee..1dba1a26af2d 100644 --- a/OvmfPkg/RiscVVirt/README.md +++ b/OvmfPkg/RiscVVirt/README.md @@ -70,6 +70,11 @@ Below example shows how to boot openSUSE Tumbleweed E20. -device virtio-blk-device,drive=3Dhd0 \ -drive file=3DopenSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw,forma= t=3Draw,id=3Dhd0 =20 + Note: the `acpi=3Doff` machine property is specified because Linux gue= st + support for ACPI (that is, the ACPI consumer side) is a work in progre= ss. + Currently, `acpi=3Doff` is recommended unless you are developing ACPI = support + yourself. + ## Test with your own OpenSBI binary Using the above QEMU command line, **RISCV_VIRT_CODE.fd** is launched by t= he OpenSBI binary that is bundled with QEMU. You can build your own OpenSBI b= inary -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108577): https://edk2.groups.io/g/devel/message/108577 Mute This Topic: https://groups.io/mt/101334265/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076= /xyzzy [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Thu May 16 18:03:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108578+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108578+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1694602566; cv=none; d=zohomail.com; s=zohoarc; b=Wynd0JndqfDmne3Zow32AVReq2IB9Mw6G62909MFQjVJ0H5QeNKKmz1SwWlR8h9MSH+6WzXDxDDGMFPtKdY2obpiu+WY+Hl6jDAobhyhblRd6JKxM0khbJXYgKapkIfUHfWtHl4lK4lpAtFBL1Mbp6FTUUK5+kYkW55bhB0V7+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694602566; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=e91k6drIgLcWy8Sn/X0+Ri1r4UZdPavhQBCQCiJMdSg=; b=kRKkJm6FDZJXpdaDLad1ytdoiHOGgV8TplV7Gq+aqlB7NEZZsCL/SlmUJ7IWgtWJrtiJeGZcg16gKvM72rNn/6e3kNl5AOdJVHPG5osPB7XQ/bcn3ZuUAlQI/Z/kPVuOA6vLRUhwGs0VzbsZhyinL1xNOjasDX/YcPlOHdfov6A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108578+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1694602566889740.0319657736401; Wed, 13 Sep 2023 03:56:06 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=e91k6drIgLcWy8Sn/X0+Ri1r4UZdPavhQBCQCiJMdSg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1694602566; v=1; b=ssZ/VleySPyJdhgQBlyC1bcso6+xO5cDOPn/ZDci/9bchuw+TSYz4lZwfpZajniESiG0z3S5 8C/Q9Jhvt+itF+1umkXsTraqH0fa/56z8msXmm1ePiTvfZ7Yy0t+4QCWMfv+D+/EjFYnMV479U4 R8MetGAP1hSeih6AfU1s2gEk= X-Received: by 127.0.0.2 with SMTP id QytVYY1788612xfoLoCbw8P3; Wed, 13 Sep 2023 03:56:06 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.8843.1694602565980935405 for ; Wed, 13 Sep 2023 03:56:06 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-215-E9gGrovOP9GqjApOcyy6WA-1; Wed, 13 Sep 2023 06:56:02 -0400 X-MC-Unique: E9gGrovOP9GqjApOcyy6WA-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7EE8381DA98; Wed, 13 Sep 2023 10:56:01 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.194.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0193140C6EA8; Wed, 13 Sep 2023 10:55:59 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io , lersek@redhat.com Cc: Andrei Warkentin , Andrew Jones , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Sunil V L Subject: [edk2-devel] [PATCH 3/3] OvmfPkg/RiscVVirt/README: document direct kernel boot Date: Wed, 13 Sep 2023 12:55:51 +0200 Message-Id: <20230913105551.12680-4-lersek@redhat.com> In-Reply-To: <20230913105551.12680-1-lersek@redhat.com> References: <20230913105551.12680-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: oHakYu2S61paE4m99LjstT7Yx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1694602568631100007 Content-Type: text/plain; charset="utf-8"; x-default="true" Direct (fw_cfg) kernel boot works on the RiscVVirt firmware platform too; I've tested it after extracting the kernel, initrd, and kernel command line from "openSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw". Document this type of boot, because at least historically, fw_cfg kernel boot was implemented differently between OVMF and ArmVirtQemu. Thanks: Drew, Sunil. Cc: Andrei Warkentin Cc: Andrew Jones Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Jordan Justen Cc: Sunil V L Signed-off-by: Laszlo Ersek Reviewed-by: Andrew Jones Reviewed-by: Sunil V L --- OvmfPkg/RiscVVirt/README.md | 33 +++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md index 1dba1a26af2d..47b97dd64a2f 100644 --- a/OvmfPkg/RiscVVirt/README.md +++ b/OvmfPkg/RiscVVirt/README.md @@ -75,8 +75,39 @@ Below example shows how to boot openSUSE Tumbleweed E20. Currently, `acpi=3Doff` is recommended unless you are developing ACPI = support yourself. =20 +3) Running QEMU with direct kernel boot + + The following example boots the same guest, but loads the kernel image= and + the initial RAM disk (which were extracted from + `openSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw`) from the host filesy= stem. + It also sets the guest kernel command line on the QEMU command line. + + CMDLINE=3D(root=3DUUID=3D76d9b92d-09e9-4df0-8262-c1a7a466f2bc + systemd.show_status=3D1 + ignore_loglevel + console=3DttyS0 + earlycon=3Duart8250,mmio,0x10000000) + + qemu-system-riscv64 \ + -M virt,pflash0=3Dpflash0,pflash1=3Dpflash1,acpi=3Doff \ + -m 4096 -smp 2 \ + -serial mon:stdio \ + -device virtio-gpu-pci -full-screen \ + -device qemu-xhci \ + -device usb-kbd \ + -device virtio-rng-pci \ + -blockdev node-name=3Dpflash0,driver=3Dfile,read-only=3Don,filenam= e=3DRISCV_VIRT_CODE.fd \ + -blockdev node-name=3Dpflash1,driver=3Dfile,filename=3DRISCV_VIRT_= VARS.fd \ + -netdev user,id=3Dnet0 \ + -device virtio-net-pci,netdev=3Dnet0 \ + -device virtio-blk-device,drive=3Dhd0 \ + -drive file=3DopenSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw,forma= t=3Draw,id=3Dhd0 \ + -kernel Image-6.5.2-1-default \ + -initrd initrd-6.5.2-1-default \ + -append "${CMDLINE[*]}" + ## Test with your own OpenSBI binary -Using the above QEMU command line, **RISCV_VIRT_CODE.fd** is launched by t= he +Using the above QEMU command lines, **RISCV_VIRT_CODE.fd** is launched by = the OpenSBI binary that is bundled with QEMU. You can build your own OpenSBI b= inary as well: =20 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108578): https://edk2.groups.io/g/devel/message/108578 Mute This Topic: https://groups.io/mt/101334266/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076= /xyzzy [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-