From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id D84D0941755 for ; Wed, 13 Sep 2023 17:51:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=oFEhLVGgVJx09wxlnx62VxKUZ8l2MUPMzo9XprG/mLs=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20140610; t=1694627507; v=1; b=XCTYxTRhZn+wOCGxLaPZkso2NjenhnSSZfXe3nSQh+7u8pkC2WvxEQRWOqjHnhxQ6EqWzSz/ X9A7/ActguC3/L17obYV0t48wB+K3TwQ8G3UcP3OoYdF7JLr/i0iEnjeCssloBeS+Sc1grmznmb GUHCq4X4CfdkcAuqdIn71P6E= X-Received: by 127.0.0.2 with SMTP id tNddYY7687511xPT6Bbco6RP; Wed, 13 Sep 2023 10:51:47 -0700 X-Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mx.groups.io with SMTP id smtpd.web10.1366.1694622531203816857 for ; Wed, 13 Sep 2023 09:28:51 -0700 X-Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-502e385e33bso180016e87.0 for ; Wed, 13 Sep 2023 09:28:50 -0700 (PDT) X-Gm-Message-State: x2eFdI9OGpJLVHxYd4cXvhi6x7686176AA= X-Google-Smtp-Source: AGHT+IG+Wvhxk9bf9BHdbhfkeT2Bw0m4zehYh9AiY0jvIl80ws7Y5n7GWGsx0sHHkwei7Ur550JV+w== X-Received: by 2002:a05:6512:2027:b0:501:c3cd:652c with SMTP id s7-20020a056512202700b00501c3cd652cmr2005280lfs.31.1694622528655; Wed, 13 Sep 2023 09:28:48 -0700 (PDT) X-Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id r25-20020aa7d599000000b005256d80cdaesm7455683edq.65.2023.09.13.09.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:28:48 -0700 (PDT) Date: Wed, 13 Sep 2023 18:28:47 +0200 From: "Andrew Jones" To: Laszlo Ersek Cc: edk2-devel-groups-io , Andrei Warkentin , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Sunil V L Subject: Re: [edk2-devel] [PATCH 1/3] OvmfPkg/RiscVVirt/README: explain that "-bios" is only useful with TCG Message-ID: <20230913-cece398bba5d3bda329c7b2d@orel> References: <20230913105551.12680-1-lersek@redhat.com> <20230913105551.12680-2-lersek@redhat.com> MIME-Version: 1.0 In-Reply-To: <20230913105551.12680-2-lersek@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,ajones@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=XCTYxTRh; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On Wed, Sep 13, 2023 at 12:55:49PM +0200, Laszlo Ersek wrote: > 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 > --- > 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 additional command line > option: > > -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=tcg`). With hardware virtualization (`-M accel=kvm`), > +KVM services the SBI (Supervisor Binary Interface) calls internally, therefore > +any externally loaded OpenSBI binary is ignored. > With the 'virt' machine model -bios is actually forbidden with accel=kvm, not just ignored. Otherwise, Reviewed-by: Andrew Jones Thanks, drew -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108609): https://edk2.groups.io/g/devel/message/108609 Mute This Topic: https://groups.io/mt/101334264/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-