Re: [Qemu-devel] [PATCH v8 0/4] SysFS driver for QEMU fw_cfg device

2016-02-03 Thread Matt Fleming
On Thu, 28 Jan, at 09:23:10AM, Gabriel L. Somlo wrote: > From: "Gabriel Somlo" > > Allow access to QEMU firmware blobs, passed into the guest VM via > the fw_cfg device, through SysFS entries. Blob meta-data (e.g. name, > size, and fw_cfg key), as well as the raw binary blob data may be > accesse

Re: [Qemu-devel] RFC: guest-side retrieval of fw_cfg file

2015-07-15 Thread Matt Fleming
On Mon, 2015-07-13 at 16:09 -0400, Gabriel L. Somlo wrote: > > 3. I'm currently only handling x86 and I/O ports. I could drop the >fw_cfg_dmi_whitelist and just check the signature, using mmio where >appropriate, but I don't have a handy-dandy set of VMs for those >architectures on whi

Re: [Qemu-devel] RFC: guest-side retrieval of fw_cfg file

2015-07-15 Thread Matt Fleming
On Tue, 2015-07-14 at 13:00 -0400, Gabriel L. Somlo wrote: > > That being said, I did reimplement systemd's escape method in cca. 30 > lines of C, so that shouldn't be too onerous. I really don't see a reason to use systemd's naming scheme instead of the one already provided by the kernel. > Bes

Re: [Qemu-devel] [PATCH 5/6] fw_cfg: insert fw_cfg file blobs via qemu cmdline

2015-03-17 Thread Matt Fleming
On Mon, 2015-03-16 at 10:15 -0400, Gabriel L. Somlo wrote: > Allow user supplied files to be inserted into the fw_cfg > device before starting the guest. Since fw_cfg_add_file() > already disallows duplicate fw_cfg file names, qemu will > exit with an error message if the user supplies multiple > b

Re: [Qemu-devel] [RFC PATCH 0/2] host->guest environment variables via fw_cfg

2015-02-26 Thread Matt Fleming
On Thu, 2015-02-26 at 10:45 +0100, Laszlo Ersek wrote: > On 02/26/15 02:13, Gabriel L. Somlo wrote: > > For myself, I'm tempted to write a kernel driver to allow me to simply > > "cat /sys/firmware/fw_cfg/etc/guestinfo | grep '^key_name='" when I > > need to retrieve a guest environment variable. >