From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: Greg Kurz <gkurz@linux.vnet.ibm.com>
Cc: marc.zyngier@arm.com, Rusty Russell <rusty@rustcorp.com.au>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] hw/9pfs/virtio_9p_device: use virtio wrappers to access headers.
Date: Tue, 11 Feb 2014 13:11:00 +1100 [thread overview]
Message-ID: <CADc5QFfO+0ophYpyjG_4e8XTD6oLcdPki=e46ab+8aofxULy5g@mail.gmail.com> (raw)
In-Reply-To: <20131125145620.7562.67873.stgit@bahia.lab.toulouse-stg.fr.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]
Is anyone going to pull this series anywhere? Thanks!
On Tue, Nov 26, 2013 at 1:56 AM, Greg Kurz <gkurz@linux.vnet.ibm.com> wrote:
> Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p.
>
> Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
> ---
> hw/9pfs/virtio-9p-device.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c
> index f0ffbe8..72ef60a 100644
> --- a/hw/9pfs/virtio-9p-device.c
> +++ b/hw/9pfs/virtio-9p-device.c
> @@ -19,6 +19,7 @@
> #include "fsdev/qemu-fsdev.h"
> #include "virtio-9p-xattr.h"
> #include "virtio-9p-coth.h"
> +#include "hw/virtio/virtio-access.h"
>
> static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t
> features)
> {
> @@ -34,7 +35,7 @@ static void virtio_9p_get_config(VirtIODevice *vdev,
> uint8_t *config)
>
> len = strlen(s->tag);
> cfg = g_malloc0(sizeof(struct virtio_9p_config) + len);
> - stw_raw(&cfg->tag_len, len);
> + virtio_stw_p(&cfg->tag_len, len);
> /* We don't copy the terminating null to config space */
> memcpy(cfg->tag, s->tag, len);
> memcpy(config, cfg, s->config_size);
>
>
>
--
--
Alexey
[-- Attachment #2: Type: text/html, Size: 1766 bytes --]
next prev parent reply other threads:[~2014-02-11 2:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 14:56 [Qemu-devel] [PATCH] hw/9pfs/virtio_9p_device: use virtio wrappers to access headers Greg Kurz
2014-02-11 2:11 ` Alexey Kardashevskiy [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-08-12 7:59 [Qemu-devel] [PATCH 3/8] virtio: allow byte swapping for vring and config access Rusty Russell
2013-09-09 12:44 ` [Qemu-devel] [PATCH] hw/9pfs/virtio_9p_device: use virtio wrappers to access headers Greg Kurz
2013-09-10 5:21 ` Rusty Russell
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='CADc5QFfO+0ophYpyjG_4e8XTD6oLcdPki=e46ab+8aofxULy5g@mail.gmail.com' \
--to=aik@ozlabs.ru \
--cc=gkurz@linux.vnet.ibm.com \
--cc=marc.zyngier@arm.com \
--cc=qemu-devel@nongnu.org \
--cc=rusty@rustcorp.com.au \
/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).