From: "Gabriel L. Somlo" <somlo@cmu.edu>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, jordan.l.justen@intel.com,
kraxel@redhat.com, pbonzini@redhat.com, markmb@redhat.com,
lersek@redhat.com
Subject: [Qemu-devel] [PATCH v2 0/4] fw_cfg: spec update, read optimization, misc. cleanup
Date: Wed, 28 Oct 2015 13:20:32 -0400 [thread overview]
Message-ID: <1446052836-31737-1-git-send-email-somlo@cmu.edu> (raw)
This series' main purpose is to update (and simplify) the specified
read callback behavior. An earlier standalone patch to move qemu function
call API documentation into fw_cfg.h should logically be part of the series.
Here's the summary of what each patch does:
- Patch 1/4 is an updated version of the standalone v1 patch
I sent out earlier; it moves all the qemu-internal host-side
function call api documentation out of docs/specs/fw_cfg.txt,
and into the fw_cfg.h header file, next to the prototype of
each documented api function.
- Patch 2/4 modifies the specified behavior of read callbacks
(from being invoked once per byte read, to being invoked once,
before ANY data is read, specifically once each time an item
is selected).
- Patch 3/4 additionally removes the now-redundant offset argument
from the read callback prototype.
- Finally, 4/4 consolidates (non-DMA) reads, minimizing the number
of times redundant sanity checks are performed, particularly for
wide (> byte) sized reads.
Comments, reviews, etc. much appreciated!
Thanks,
Gabriel
Gabriel L. Somlo (4):
fw_cfg: move internal function call docs to header file
fw_cfg: amend callback behavior spec to once per select
fw_cfg: remove offset argument from callback prototype
fw_cfg: streamline (non-DMA) read operations
docs/specs/fw_cfg.txt | 85 +------------------------------
hw/arm/virt-acpi-build.c | 2 +-
hw/i386/acpi-build.c | 2 +-
hw/nvram/fw_cfg.c | 53 +++++++------------
include/hw/nvram/fw_cfg.h | 127 +++++++++++++++++++++++++++++++++++++++++++++-
trace-events | 2 +-
6 files changed, 147 insertions(+), 124 deletions(-)
--
2.4.3
next reply other threads:[~2015-10-28 17:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-28 17:20 Gabriel L. Somlo [this message]
2015-10-28 17:20 ` [Qemu-devel] [PATCH v2 1/4] fw_cfg: move internal function call docs to header file Gabriel L. Somlo
2015-11-02 13:41 ` Laszlo Ersek
2015-11-02 20:36 ` Gabriel L. Somlo
2015-11-02 20:44 ` Laszlo Ersek
2015-10-28 17:20 ` [Qemu-devel] [PATCH v2 2/4] fw_cfg: amend callback behavior spec to once per select Gabriel L. Somlo
2015-11-02 14:16 ` Laszlo Ersek
2015-11-02 21:00 ` Gabriel L. Somlo
2015-10-28 17:20 ` [Qemu-devel] [PATCH v2 3/4] fw_cfg: remove offset argument from callback prototype Gabriel L. Somlo
2015-11-02 14:17 ` Laszlo Ersek
2015-10-28 17:20 ` [Qemu-devel] [PATCH v2 4/4] fw_cfg: streamline (non-DMA) read operations Gabriel L. Somlo
2015-11-02 14:38 ` Laszlo Ersek
2015-11-02 16:41 ` Eric Blake
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=1446052836-31737-1-git-send-email-somlo@cmu.edu \
--to=somlo@cmu.edu \
--cc=jordan.l.justen@intel.com \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--cc=markmb@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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).