diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-01-06 12:10:40 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-01-06 12:10:40 +0000 |
commit | a01b1e9a005d523ec6452ec7137885d11f8a30df (patch) | |
tree | 503fa56183265f708dfe6e500ea150d7819c48f8 /include | |
parent | e92fbc753df4fab9ee524b5ea07a51bee8b6bae4 (diff) | |
parent | 7e354ed4df9787ff95cdb189374739e476be4f9a (diff) | |
download | qemu-a01b1e9a005d523ec6452ec7137885d11f8a30df.zip qemu-a01b1e9a005d523ec6452ec7137885d11f8a30df.tar.gz qemu-a01b1e9a005d523ec6452ec7137885d11f8a30df.tar.bz2 |
Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging
# gpg: Signature made Fri 06 Jan 2017 02:55:49 GMT
# gpg: using RSA key 0xEF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg: It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 215D 46F4 8246 689E C77F 3562 EF04 965B 398D 6211
* remotes/jasowang/tags/net-pull-request:
fsl_etsec: Fix Tx BD ring wrapping handling
rtl8139: correctly handle PHY reset
record/replay: add network support
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/replay.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h index f80d6d2..abb35ca 100644 --- a/include/sysemu/replay.h +++ b/include/sysemu/replay.h @@ -39,6 +39,8 @@ enum ReplayCheckpoint { }; typedef enum ReplayCheckpoint ReplayCheckpoint; +typedef struct ReplayNetState ReplayNetState; + extern ReplayMode replay_mode; /* Replay process control functions */ @@ -137,4 +139,14 @@ void replay_char_read_all_save_error(int res); /*! Writes character read_all execution result into the replay log. */ void replay_char_read_all_save_buf(uint8_t *buf, int offset); +/* Network */ + +/*! Registers replay network filter attached to some backend. */ +ReplayNetState *replay_register_net(NetFilterState *nfs); +/*! Unregisters replay network filter. */ +void replay_unregister_net(ReplayNetState *rns); +/*! Called to write network packet to the replay log. */ +void replay_net_packet_event(ReplayNetState *rns, unsigned flags, + const struct iovec *iov, int iovcnt); + #endif |