qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kashyap Chamarthy <kchamart@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: libvir-list@redhat.com, qemu-devel@nongnu.org,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: Re: [PATCH v2] docs: expand firmware descriptor to allow flash without NVRAM
Date: Mon, 31 Jan 2022 16:58:31 +0100	[thread overview]
Message-ID: <YfgHJ7w+Vo43a2qO@paraplu> (raw)
In-Reply-To: <YfgBpsEKl5ArM+64@redhat.com>

On Mon, Jan 31, 2022 at 03:35:02PM +0000, Daniel P. Berrangé wrote:
> On Mon, Jan 31, 2022 at 04:21:36PM +0100, Kashyap Chamarthy wrote:
> > On Mon, Jan 31, 2022 at 02:36:46PM +0000, Daniel P. Berrangé wrote:

[...]

> > > The firmware can be provided in qcow2 format too, so if really
> > > concerned, just create a qcow2 file with a backing store pointing
> > > to the readonly master, so you're only paying the price of the
> > > delta for any guest VARs writes. That's more efficient than what
> > > we do today with copying the separate raw format VARS.fd file.
> > 
> > That's nice, I didn't know the qcow2 possibility in this context.  For
> > some reason I assumed the file format always has to be raw here.  Your
> > qcow2 point above should  be documented, if it isn't already.  Although
> > I don't know the right place for it.
> 
> There's already a format field in the descriptor, but even if the
> firmware is distributed as raw, libvirt can choose to put qcow2
> overlay on it, as its all configured with -blockdev

Ah, understood.  

I should've first checked the spec to look for the @format field.  For
others reading the thread, the @format bit is located here
infirmware.json:

  [...]
  # @FirmwareFlashFile:
  #
  # Defines common properties that are necessary for loading a firmware
  # file into a pflash chip. The corresponding QEMU command line option is
  # "-drive file=@filename,format=@format". Note however that the
  # option-argument shown here is incomplete; it is completed under
  # @FirmwareMappingFlash.
  #
  # @filename: Specifies the filename on the host filesystem where the
  #            firmware file can be found.
  #
  # @format: Specifies the block format of the file pointed-to by
  #          @filename, such as @raw or @qcow2.
  [...]

-- 
/kashyap



  reply	other threads:[~2022-01-31 16:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-31 12:55 [PATCH v2] docs: expand firmware descriptor to allow flash without NVRAM Daniel P. Berrangé
2022-01-31 14:00 ` Kashyap Chamarthy
2022-01-31 14:36   ` Daniel P. Berrangé
2022-01-31 15:21     ` Kashyap Chamarthy
2022-01-31 15:35       ` Daniel P. Berrangé
2022-01-31 15:58         ` Kashyap Chamarthy [this message]
2022-02-01 13:30       ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YfgHJ7w+Vo43a2qO@paraplu \
    --to=kchamart@redhat.com \
    --cc=berrange@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=libvir-list@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).