From 5ebd67030c4e4bc702d07a3e10c909be4520f170 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 21 Oct 2016 22:58:45 +0300 Subject: char: use a feature bit for replay Use a feature flag rather than a structure field for "replay". Signed-off-by: Marc-André Lureau Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- include/sysemu/char.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 7d841ad879..b0b4231d4c 100644 --- a/include/sysemu/char.h +++ b/include/sysemu/char.h @@ -69,6 +69,8 @@ typedef enum { /* Whether it is possible to send/recv file descriptors * over the data channel */ QEMU_CHAR_FEATURE_FD_PASS, + /* Whether replay or record mode is enabled */ + QEMU_CHAR_FEATURE_REPLAY, QEMU_CHAR_FEATURE_LAST, } CharDriverFeature; @@ -97,7 +99,6 @@ struct CharDriverState { int logfd; int be_open; guint fd_in_tag; - bool replay; DECLARE_BITMAP(features, QEMU_CHAR_FEATURE_LAST); QTAILQ_ENTRY(CharDriverState) next; }; -- cgit v1.2.3-55-g7522