|
|
b38b0f |
From 8f7ed484aec956d81684bc2795d3da6969b20727 Mon Sep 17 00:00:00 2001
|
|
|
b38b0f |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
Date: Mon, 22 Jul 2019 18:22:14 +0100
|
|
|
b38b0f |
Subject: [PATCH 33/39] vmstate: Add support for kernel integer types
|
|
|
b38b0f |
|
|
|
b38b0f |
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
Message-id: <20190722182220.19374-13-pbonzini@redhat.com>
|
|
|
b38b0f |
Patchwork-id: 89630
|
|
|
b38b0f |
O-Subject: [RHEL-8.1.0 PATCH qemu-kvm v3 12/18] vmstate: Add support for kernel integer types
|
|
|
b38b0f |
Bugzilla: 1689269
|
|
|
b38b0f |
RH-Acked-by: Peter Xu <zhexu@redhat.com>
|
|
|
b38b0f |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
b38b0f |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
b38b0f |
|
|
|
b38b0f |
From: Liran Alon <liran.alon@oracle.com>
|
|
|
b38b0f |
|
|
|
b38b0f |
Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
|
|
|
b38b0f |
Reviewed-by: Maran Wilson <maran.wilson@oracle.com>
|
|
|
b38b0f |
Signed-off-by: Liran Alon <liran.alon@oracle.com>
|
|
|
b38b0f |
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
b38b0f |
Message-Id: <20190619162140.133674-8-liran.alon@oracle.com>
|
|
|
b38b0f |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
(cherry picked from commit 6cfd7639329062797c04ec79adb1023a8ba2fcb4)
|
|
|
b38b0f |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
b38b0f |
---
|
|
|
b38b0f |
include/migration/vmstate.h | 26 ++++++++++++++++++++++++++
|
|
|
b38b0f |
1 file changed, 26 insertions(+)
|
|
|
b38b0f |
|
|
|
b38b0f |
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
|
|
|
b38b0f |
index df463fd..380a0fd 100644
|
|
|
b38b0f |
--- a/include/migration/vmstate.h
|
|
|
b38b0f |
+++ b/include/migration/vmstate.h
|
|
|
b38b0f |
@@ -755,6 +755,19 @@ extern const VMStateInfo vmstate_info_qtailq;
|
|
|
b38b0f |
#define VMSTATE_UINT64_V(_f, _s, _v) \
|
|
|
b38b0f |
VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint64, uint64_t)
|
|
|
b38b0f |
|
|
|
b38b0f |
+#ifdef CONFIG_LINUX
|
|
|
b38b0f |
+
|
|
|
b38b0f |
+#define VMSTATE_U8_V(_f, _s, _v) \
|
|
|
b38b0f |
+ VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint8, __u8)
|
|
|
b38b0f |
+#define VMSTATE_U16_V(_f, _s, _v) \
|
|
|
b38b0f |
+ VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint16, __u16)
|
|
|
b38b0f |
+#define VMSTATE_U32_V(_f, _s, _v) \
|
|
|
b38b0f |
+ VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint32, __u32)
|
|
|
b38b0f |
+#define VMSTATE_U64_V(_f, _s, _v) \
|
|
|
b38b0f |
+ VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint64, __u64)
|
|
|
b38b0f |
+
|
|
|
b38b0f |
+#endif
|
|
|
b38b0f |
+
|
|
|
b38b0f |
#define VMSTATE_BOOL(_f, _s) \
|
|
|
b38b0f |
VMSTATE_BOOL_V(_f, _s, 0)
|
|
|
b38b0f |
|
|
|
b38b0f |
@@ -776,6 +789,19 @@ extern const VMStateInfo vmstate_info_qtailq;
|
|
|
b38b0f |
#define VMSTATE_UINT64(_f, _s) \
|
|
|
b38b0f |
VMSTATE_UINT64_V(_f, _s, 0)
|
|
|
b38b0f |
|
|
|
b38b0f |
+#ifdef CONFIG_LINUX
|
|
|
b38b0f |
+
|
|
|
b38b0f |
+#define VMSTATE_U8(_f, _s) \
|
|
|
b38b0f |
+ VMSTATE_U8_V(_f, _s, 0)
|
|
|
b38b0f |
+#define VMSTATE_U16(_f, _s) \
|
|
|
b38b0f |
+ VMSTATE_U16_V(_f, _s, 0)
|
|
|
b38b0f |
+#define VMSTATE_U32(_f, _s) \
|
|
|
b38b0f |
+ VMSTATE_U32_V(_f, _s, 0)
|
|
|
b38b0f |
+#define VMSTATE_U64(_f, _s) \
|
|
|
b38b0f |
+ VMSTATE_U64_V(_f, _s, 0)
|
|
|
b38b0f |
+
|
|
|
b38b0f |
+#endif
|
|
|
b38b0f |
+
|
|
|
b38b0f |
#define VMSTATE_UINT8_EQUAL(_f, _s, _err_hint) \
|
|
|
b38b0f |
VMSTATE_SINGLE_FULL(_f, _s, 0, 0, \
|
|
|
b38b0f |
vmstate_info_uint8_equal, uint8_t, _err_hint)
|
|
|
b38b0f |
--
|
|
|
b38b0f |
1.8.3.1
|
|
|
b38b0f |
|