qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: "Gabriel L. Somlo" <somlo@cmu.edu>
Cc: peter.maydell@linaro.org, drjones@redhat.com,
	matt.fleming@intel.com, ehabkost@redhat.com,
	"Michael S. Tsirkin" <mst@redhat.com>,
	ard.biesheuvel@linaro.org, qemu-devel@nongnu.org,
	leif.lindholm@linaro.org, kevin@koconnor.net,
	pbonzini@redhat.com, zhaoshenglong@huawei.com,
	imammedo@redhat.com, markmb@redhat.com, lersek@redhat.com,
	rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH v3 0/5] add ACPI node for fw_cfg on pc and arm
Date: Fri, 18 Sep 2015 12:50:08 +0200	[thread overview]
Message-ID: <1442573408.29362.4.camel@redhat.com> (raw)
In-Reply-To: <20150917210128.GA10294@HEDWIG.INI.CMU.EDU>

On Do, 2015-09-17 at 17:01 -0400, Gabriel L. Somlo wrote:
> > What I'm still missing is the motivation for the change.
> > 
> > Went through old threads, still can't find it.
> 
> I've been working on a sysfs driver to allow viewing fw_cfg file
> metadata (size, name, etc) and content (e.g. 'raw') in something
> like /sys/firmware/qemu-fw-cfg/by_key/... (similar to how e.g.
> smbios tables can be accessed via /sys/firmware/dmi/entries/...).
> 
> Motivation is that since we can insert user-defined blobs via the qemu
> command line, wouldn't it be nice to be able to easily retrieve them
> from the guest, and what's easier than "cp /sys/firmware/.../raw ..." ?
> 
> One of the main requirements I got there was to avoid probing fw_cfg
> registers during initialization of the sysfs driver, and instead use
> device tree on arm (and acpi on i386) to first figure out whether
> fw_cfg is even expected to be there.
> 
> There's a DT entry for fw_cfg on arm, but no acpi entry for fw_cfg on
> x86, so I decided why not add one ? It's a device, it occupies a mmio
> or port-io region, why not tell the guest about it via ACPI ?
> 
> That's about it, in a nutshell. Thanks for any further thoughts!

I think in general it would be good to notify the guest OS that there is
something at port 0x510 (i.e. it is not free), even if the guest has no
fw_cfg driver.

cheers,
  Gerd

  reply	other threads:[~2015-09-18 10:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17 14:56 [Qemu-devel] [PATCH v3 0/5] add ACPI node for fw_cfg on pc and arm Gabriel L. Somlo
2015-09-17 14:56 ` [Qemu-devel] [PATCH v3 1/5] fw_cfg: expose control register size in fw_cfg.h Gabriel L. Somlo
2015-09-17 14:56 ` [Qemu-devel] [PATCH v3 2/5] pc: fw_cfg: move ioport base constant to pc.h Gabriel L. Somlo
2015-09-17 14:56 ` [Qemu-devel] [PATCH v3 3/5] acpi: pc: add fw_cfg device node to ssdt Gabriel L. Somlo
2015-09-17 14:56 ` [Qemu-devel] [PATCH v3 4/5] acpi: arm: add fw_cfg device node to dsdt Gabriel L. Somlo
2015-09-17 14:56 ` [Qemu-devel] [PATCH v3 5/5] fw_cfg: document ACPI device node information Gabriel L. Somlo
2015-09-17 20:30 ` [Qemu-devel] [PATCH v3 0/5] add ACPI node for fw_cfg on pc and arm Michael S. Tsirkin
2015-09-17 21:01   ` Gabriel L. Somlo
2015-09-18 10:50     ` Gerd Hoffmann [this message]
2015-09-23  9:50 ` Igor Mammedov
2015-09-23 13:07   ` Gabriel L. Somlo

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=1442573408.29362.4.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=drjones@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=kevin@koconnor.net \
    --cc=leif.lindholm@linaro.org \
    --cc=lersek@redhat.com \
    --cc=markmb@redhat.com \
    --cc=matt.fleming@intel.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=somlo@cmu.edu \
    --cc=zhaoshenglong@huawei.com \
    /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).