From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mx.groups.io with SMTP id smtpd.web11.16086.1686829834374956283 for ; Thu, 15 Jun 2023 04:50:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=KAt72Ws0; spf=pass (domain: ventanamicro.com, ip: 209.85.215.171, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-52cb8e5e9f5so541128a12.0 for ; Thu, 15 Jun 2023 04:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1686829834; x=1689421834; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=EMkcba5f0D47LMUMRBiGEVxxwm8Pz/M5ODS7+FyLNg0=; b=KAt72Ws062YUiMPB+DbHK2uhGWbOpoi6QS//rFW4Smfb4j9tUgdFKgTejXDFgAkMfg 4jfx2/DTZewWMeAKFy7lSFXIMg1ex9nFAHXWXWr6XmgtKBwoDYZ6bLssD7Lw2iu9kQ+C G4uH6P6rTrJ7H4M7Ky3z+D9bMKTiv90Sai7l8LDgpcRdkgruaUE8bU3aLqlA3ZB09O/+ mDYaVBLK5tj9ZCOfN2n9orbZSwSA8vPGUzefKaYGZH8pBy5G2mG9xNlVJs9+7lp/3Mh2 VeChCkFOw+k1mZ8Y8OFODOdQHuaVU+5Rx3Q+6vToGbk8Grzqelj6sLh9uMUJTolJMEW0 Oj7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686829834; x=1689421834; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EMkcba5f0D47LMUMRBiGEVxxwm8Pz/M5ODS7+FyLNg0=; b=jcH5wjqjbMUZ7gluTFtr9U1Ye3SHXB73ZxyL6hZD3CXl2bs7224prt9fjgzX1xHOVz By2NQFKno0VqtaYEaM4g65JCKMIWr5Mp7tadbhl2A6ZxRKneJSVElfgmsv8N0lqWDlZ6 OR7pHMSAOhEWS56vfqgowjCzsf9zXLacGl3U1t6yqLcWUrDtvDY5faGLEA7lkhBhACna sTgH1k4v0VWoL0UPpv0eHOGK2MD3ucpckcDjqHpLmyj2QIa0ZJCOOcRnEGcy0U8Tht4+ rSYDxtiky2KEd9OLiHzfFc+hODbY2JqsP3vPKK4cKtTekv/kaGmEEE/rrPHHzUjcuyxe 8rHw== X-Gm-Message-State: AC+VfDyIT9zeYs62rSpLFZmqKMIMg+QmOqqTOW55oebTY2s4NAQcShrG WaQq6ZG5o3CWVRjgtbkl3YdHkg== X-Google-Smtp-Source: ACHHUZ7QZ5iLr9qyMbY7et543/4F0IlrXnQXiIlfXuUWFcfL6Ganyc/NGPn6MUOIM8JAn0Y5MaUnbQ== X-Received: by 2002:a17:90b:610:b0:25e:8b7a:c48 with SMTP id gb16-20020a17090b061000b0025e8b7a0c48mr3143090pjb.1.1686829833753; Thu, 15 Jun 2023 04:50:33 -0700 (PDT) Return-Path: Received: from sunil-laptop ([106.51.184.72]) by smtp.gmail.com with ESMTPSA id bk17-20020a17090b081100b00256b9d26a2bsm14308336pjb.44.2023.06.15.04.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 04:50:33 -0700 (PDT) Date: Thu, 15 Jun 2023 17:20:27 +0530 From: "Sunil V L" To: Heinrich Schuchardt Cc: devel@edk2.groups.io, Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Andrei Warkentin , Dann Frazier Subject: Re: [PATCH 0/4] OvmfPkg/RiscVVirt: Separate code and variable storage Message-ID: References: <20230614170151.1204982-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 14, 2023 at 07:11:18PM +0200, Heinrich Schuchardt wrote: > Sunil V L schrieb am Mi., 14. Juni 2023, 19:01: > > > Recent updates to RISC-V qemu virt platform merged today (07/14), > > have enabled both pflash devices for the S-mode payload like EDK2. > > These updates also aligned the design similar to other architectures > > where pflash0 is for read-only code and pflash1 for variable store. > > Previously only pflash1 was available for S-mode use. > > > > Current EDK2 will not work with this latest qemu changes since it always > > assumed to boot from pflash1. So, separate the code and variable > > store and use pflash0 to keep the code. > > > > Not all users will have the newest QEMU provided by their Linx distro. Will > it be possible to boot the the same EDK II binary on old and new QEMU > releases? > Hi Heinrich, While both unified and separate images can not be generated at the same time, a build flag can be used by which the user can build one of the schemes matching qemu capabilities. Default will be separate code and vars matching the latest qemu. I believe this will alleviate the concern. If this looks better, let me test and send v2. Thanks! Sunil