All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Laszlo Ersek <lersek@redhat.com>,
	"Gabriel L. Somlo" <somlo@cmu.edu>,
	qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, jordan.l.justen@intel.com
Subject: Re: [Qemu-devel] [PATCH] fw_cfg: insert string blobs via qemu cmdline
Date: Mon, 28 Sep 2015 13:46:33 -0600	[thread overview]
Message-ID: <56099919.10704@redhat.com> (raw)
In-Reply-To: <560940F4.2010003@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

On 09/28/2015 07:30 AM, Laszlo Ersek wrote:

>>  
>> +Small enough items may be provided directly as strings on the command
>> +line, using the syntax:
>> +
>> +    -fw_cfg [name=]<item_name>,content=<string>
>> +
> 
> Please consider spelling out that these blobs will NOT be NUL-terminated
> when viewed on the guest. (It kinda follows from all the other fw_cfg
> things, but once we leave host-side files for qemu command line strings,
> it might become non-obvious to users.)

Or else GUARANTEE that it will be NUL-terminated (and the only way to
get blobs that are not NUL terminated is to use files rather than content=).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  parent reply	other threads:[~2015-09-28 19:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-26 22:55 [Qemu-devel] [PATCH] fw_cfg: insert string blobs via qemu cmdline Gabriel L. Somlo
2015-09-28 13:30 ` Laszlo Ersek
2015-09-28 15:05   ` Gabriel L. Somlo
2015-09-28 19:46   ` Eric Blake [this message]
2015-09-28 19:51     ` Gabriel L. Somlo
2015-09-28 20:00       ` Eric Blake
2015-09-28 20:56         ` Laszlo Ersek
2015-09-28 21:05           ` Laszlo Ersek
2015-09-28 21:45             ` Gabriel L. Somlo
2015-09-28 22:08               ` Laszlo Ersek
2015-09-28 22:47                 ` Gabriel L. Somlo
2015-09-29  7:16                   ` Laszlo Ersek

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=56099919.10704@redhat.com \
    --to=eblake@redhat.com \
    --cc=jordan.l.justen@intel.com \
    --cc=lersek@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=somlo@cmu.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.