[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 03/50] msix: add VMSTATE_MSIX_TEST
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PULL v2 03/50] msix: add VMSTATE_MSIX_TEST |
Date: |
Mon, 12 Oct 2015 18:40:57 +0200 |
From: Marc-André Lureau <address@hidden>
ivshmem is going to use MSIX state conditionally.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Claudio Fontana <address@hidden>
---
include/hw/pci/msix.h | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h
index 954d82b..72e5f93 100644
--- a/include/hw/pci/msix.h
+++ b/include/hw/pci/msix.h
@@ -46,12 +46,16 @@ void msix_unset_vector_notifiers(PCIDevice *dev);
extern const VMStateDescription vmstate_msix;
-#define VMSTATE_MSIX(_field, _state) { \
- .name = (stringify(_field)), \
- .size = sizeof(PCIDevice), \
- .vmsd = &vmstate_msix, \
- .flags = VMS_STRUCT, \
- .offset = vmstate_offset_value(_state, _field, PCIDevice), \
+#define VMSTATE_MSIX_TEST(_field, _state, _test) { \
+ .name = (stringify(_field)), \
+ .size = sizeof(PCIDevice), \
+ .vmsd = &vmstate_msix, \
+ .flags = VMS_STRUCT, \
+ .offset = vmstate_offset_value(_state, _field, PCIDevice), \
+ .field_exists = (_test) \
}
+#define VMSTATE_MSIX(_f, _s) \
+ VMSTATE_MSIX_TEST(_f, _s, NULL)
+
#endif
--
2.4.3
- [Qemu-devel] [PULL v2 00/50] Ivshmem patches, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 02/50] char: add qemu_chr_free(), marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 03/50] msix: add VMSTATE_MSIX_TEST,
marcandre . lureau <=
- [Qemu-devel] [PULL v2 04/50] ivhsmem: read do not accept more than sizeof(long), marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 05/50] ivshmem: fix number of bytes to push to fifo, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 06/50] ivshmem: factor out the incoming fifo handling, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 08/50] ivshmem: remove superflous ivshmem_attr field, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 09/50] ivshmem: remove useless doorbell field, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 10/50] ivshmem: more qdev conversion, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 11/50] ivshmem: remove last exit(1), marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 12/50] ivshmem: limit maximum number of peers to G_MAXUINT16, marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 13/50] ivshmem: simplify around increase_dynamic_storage(), marcandre . lureau, 2015/10/12
- [Qemu-devel] [PULL v2 14/50] ivshmem: allocate eventfds in resize_peers(), marcandre . lureau, 2015/10/12