From: "Michael S. Tsirkin" <mst@redhat.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: matt.fleming@intel.com, rjones@redhat.com, qemu-devel@nongnu.org,
jordan.l.justen@intel.com, "Gabriel L. Somlo" <somlo@cmu.edu>,
mdroth@linux.vnet.ibm.com, gleb@cloudius-systems.com,
"Gabriel L. Somlo" <gsomlo@gmail.com>,
kraxel@redhat.com, pbonzini@redhat.com,
Laszlo Ersek <lersek@redhat.com>
Subject: Re: [Qemu-devel] RFC: guest-side retrieval of fw_cfg file
Date: Thu, 16 Jul 2015 13:25:56 +0300 [thread overview]
Message-ID: <20150716132446-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <20150716115038.26597c83@nial.brq.redhat.com>
On Thu, Jul 16, 2015 at 11:50:38AM +0200, Igor Mammedov wrote:
> On Thu, 16 Jul 2015 10:30:41 +0300
> "Michael S. Tsirkin" <mst@redhat.com> wrote:
>
> > On Thu, Jul 16, 2015 at 08:57:36AM +0200, Igor Mammedov wrote:
> > > On Wed, 15 Jul 2015 19:24:33 +0300
> > > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> > >
> > > > On Wed, Jul 15, 2015 at 06:01:42PM +0200, Igor Mammedov wrote:
> > > > > On Wed, 15 Jul 2015 17:08:27 +0300
> > > > > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> > > > >
> > > > > > On Mon, Jul 13, 2015 at 04:09:37PM -0400, Gabriel L. Somlo wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > A while ago I was pondering on the options available for retrieving
> > > > > > > a fw_cfg blob from the guest-side (now that we can insert fw_cfg
> > > > > > > files on the host-side command line, see commit 81b2b8106).
> > > > > > >
> > > > > > > So over the last couple of weekends I cooked up the sysfs kernel
> > > > > > > module below, which lists all fw_cfg files
> > > > > > > under /sys/firmware/fw_cfg/<filename>.
> > > > > >
> > > > > > One concern here is that there will be a conflict here if fw cfg
> > > > > > is used by ACPI. I don't know whether that last is a good idea
> > > > > > though, so maybe not a real concern. I think Igor
> > > > > > wanted to make it so.
> > > > >
> > > > > I don't see any conflict here so far, it's just guest side module that
> > > > > accesses fw_cfg.
> > > >
> > > > If there's ACPI code that accesses fw_cfg in response to an interrupt,
> > > > it'll race with fw cfg access by guest OS. On linux we might be able to
> > > > block ACPI preventing it from running. We probably won't be able to do
> > > > it on windows.
> > > wrt vmgenid series we were talking about possibility to access fw_cfg
> > > from ACPI device.init so it's unlikely that it will ever collide with
> > > much later sysfs accesses.
> >
> > Don't we need to get updates when it changes too?
> I've thought that it's pretty static and doesn't change.
vm gen id? No, its dynamic.
> >
> > > But if ACPI will start accessing fw_cfg from
> > > other methods it will race for sure.
> >
> > Maybe we shouldn't poke at fw cfg in ACPI then.
> Yep, maybe we shouldn't.
>
> The last vmgenid series just maps UUID region
> at fixed location (which is sufficient to build ACPI
> tables at machine done time) so there isn't real need
> to export address via fw_cfg.
>
Other versions just write into guest memory from QEMU,
that will work fine too.
--
MST
next prev parent reply other threads:[~2015-07-16 10:26 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-13 20:09 [Qemu-devel] RFC: guest-side retrieval of fw_cfg file Gabriel L. Somlo
2015-07-13 23:03 ` Eric Blake
2015-07-14 17:00 ` Gabriel L. Somlo
2015-07-15 11:06 ` Matt Fleming
2015-07-15 11:15 ` Laszlo Ersek
2015-07-14 9:43 ` Richard W.M. Jones
2015-07-14 18:23 ` Gabriel L. Somlo
2015-07-14 18:31 ` Gabriel L. Somlo
2015-07-14 18:48 ` Richard W.M. Jones
2015-07-14 18:51 ` Richard W.M. Jones
2015-07-14 19:16 ` Peter Maydell
2015-07-14 19:24 ` Gabriel L. Somlo
2015-07-14 19:24 ` Gerd Hoffmann
2015-07-16 0:43 ` Gabriel L. Somlo
2015-07-16 19:27 ` Eric Blake
2015-07-16 20:42 ` Gabriel L. Somlo
2015-07-14 11:38 ` Laszlo Ersek
2015-07-15 12:00 ` Matt Fleming
2015-07-20 21:19 ` Gabriel L. Somlo
2015-07-20 22:07 ` Laszlo Ersek
2015-07-25 23:21 ` Gabriel L. Somlo
2015-07-26 9:37 ` Laszlo Ersek
2015-07-15 14:08 ` Michael S. Tsirkin
2015-07-15 16:01 ` Igor Mammedov
2015-07-15 16:24 ` Michael S. Tsirkin
2015-07-16 1:21 ` Gabriel L. Somlo
2015-07-16 6:57 ` Igor Mammedov
2015-07-16 7:30 ` Michael S. Tsirkin
2015-07-16 9:50 ` Igor Mammedov
2015-07-16 10:25 ` Michael S. Tsirkin [this message]
2015-07-16 11:15 ` Igor Mammedov
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=20150716132446-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=gleb@cloudius-systems.com \
--cc=gsomlo@gmail.com \
--cc=imammedo@redhat.com \
--cc=jordan.l.justen@intel.com \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--cc=matt.fleming@intel.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
--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 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).