[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 8/8] virtio-9p: use virtio wrappers to access hea
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PATCH v7 8/8] virtio-9p: use virtio wrappers to access headers |
Date: |
Mon, 14 Apr 2014 14:06:06 +0200 |
User-agent: |
StGit/0.16 |
Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p.
virtio-9p-device gets platform independant.
Signed-off-by: Greg Kurz <address@hidden>
---
Changes since v6:
- target independant
hw/9pfs/Makefile.objs | 3 +--
hw/9pfs/virtio-9p-device.c | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/9pfs/Makefile.objs b/hw/9pfs/Makefile.objs
index 1e9b595..e71f47b 100644
--- a/hw/9pfs/Makefile.objs
+++ b/hw/9pfs/Makefile.objs
@@ -5,5 +5,4 @@ common-obj-y += virtio-9p-coth.o cofs.o codir.o cofile.o
common-obj-y += coxattr.o virtio-9p-synth.o
common-obj-$(CONFIG_OPEN_BY_HANDLE) += virtio-9p-handle.o
common-obj-y += virtio-9p-proxy.o
-
-obj-y += virtio-9p-device.o
+common-obj-y += virtio-9p-device.o
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c
index 15a4983..2572747 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(vdev, &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);
- Re: [Qemu-devel] [PATCH v7 1/8] virtio: endian-ambivalent targets using legacy virtio, (continued)
[Qemu-devel] [PATCH v7 2/8] virtio: allow byte swapping for vring and config access, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 3/8] virtio-net: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 4/8] virtio-balloon: use virtio wrappers to access page frame numbers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 5/8] virtio-blk: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 6/8] virtio-scsi: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 7/8] virtio-serial-bus: use virtio wrappers to access headers, Greg Kurz, 2014/04/14
[Qemu-devel] [PATCH v7 8/8] virtio-9p: use virtio wrappers to access headers,
Greg Kurz <=
[Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Greg Kurz, 2014/04/14
- Re: [Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Alexander Graf, 2014/04/14
- Re: [Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Bharata B Rao, 2014/04/21
- Re: [Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Greg Kurz, 2014/04/21
- Re: [Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Bharata B Rao, 2014/04/21
- Re: [Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Dave Anderson, 2014/04/22
- Re: [Qemu-devel] [PATCH v5] target-ppc: ppc64 target's virtio can be either endian, Greg Kurz, 2014/04/22