From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzbV7-0005BX-Vr for qemu-devel@nongnu.org; Wed, 26 Oct 2016 23:37:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzbV4-0006p4-T7 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 23:37:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48050) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzbV4-0006oM-Nk for qemu-devel@nongnu.org; Wed, 26 Oct 2016 23:37:06 -0400 References: <20160926080757.6992.74311.stgit@PASHA-ISP> <20160926080821.6992.94562.stgit@PASHA-ISP> From: Jason Wang Message-ID: <8e3cde4a-eb46-94e8-ed7e-d77336b40511@redhat.com> Date: Thu, 27 Oct 2016 11:36:57 +0800 MIME-Version: 1.0 In-Reply-To: <20160926080821.6992.94562.stgit@PASHA-ISP> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v5 4/9] record/replay: add network support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, quintela@redhat.com, mst@redhat.com, pbonzini@redhat.com On 2016=E5=B9=B409=E6=9C=8826=E6=97=A5 16:08, Pavel Dovgalyuk wrote: > This patch adds support of recording and replaying network packets in > irount rr mode. > > Record and replay for network interactions is performed with the networ= k filter. > Each backend must have its own instance of the replay filter as follows= : > -netdev user,id=3Dnet1 -device rtl8139,netdev=3Dnet1 > -object filter-replay,id=3Dreplay,netdev=3Dnet1 > > Replay network filter is used to record and replay network packets. Whi= le > recording the virtual machine this filter puts all packets coming from > the outer world into the log. In replay mode packets from the log are > injected into the network device. All interactions with network backend > in replay mode are disabled. > > v5 changes: > - using iov_to_buf function instead of loop > > Signed-off-by: Pavel Dovgalyuk > --- Reviewed-by: Jason Wang