1. 25 9月, 2018 1 次提交
  2. 13 3月, 2018 2 次提交
  3. 12 3月, 2018 1 次提交
  4. 01 3月, 2017 1 次提交
  5. 28 1月, 2017 1 次提交
  6. 06 1月, 2017 1 次提交
    • P
      record/replay: add network support · 646c5478
      Pavel Dovgalyuk 提交于
      This patch adds support of recording and replaying network packets in
      irount rr mode.
      
      Record and replay for network interactions is performed with the network filter.
      Each backend must have its own instance of the replay filter as follows:
       -netdev user,id=net1 -device rtl8139,netdev=net1
       -object filter-replay,id=replay,netdev=net1
      
      Replay network filter is used to record and replay network packets. While
      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: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      646c5478
  7. 30 3月, 2016 1 次提交
    • P
      replay: introduce block devices record/replay · 63785678
      Pavel Dovgalyuk 提交于
      This patch introduces block driver that implement recording
      and replaying of block devices' operations.
      All block completion operations are added to the queue.
      Queue is flushed at checkpoints and information about processed requests
      is recorded to the log. In replay phase the queue is matched with
      events read from the log. Therefore block devices requests are processed
      deterministically.
      Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      [ kwolf: Rebased onto modified and already applied part of the series ]
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      63785678
  8. 16 3月, 2016 1 次提交
    • P
      icount: decouple warp calls · e76d1798
      Pavel Dovgalyuk 提交于
      qemu_clock_warp function is called to update virtual clock when CPU
      is sleeping. This function includes replay checkpoint to make execution
      deterministic in icount mode.
      Record/replay module flushes async event queue at checkpoints.
      Some of the events (e.g., block devices operations) include interaction
      with hardware. E.g., APIC polled by block devices sets one of IRQ flags.
      Flag to be set depends on currently executed thread (CPU or iothread).
      Therefore in replay mode we have to process the checkpoints in the same thread
      as they were recorded.
      qemu_clock_warp function (and its checkpoint) may be called from different
      thread. This patch decouples two different execution cases of this function:
      call when CPU is sleeping from iothread and call from cpu thread to update
      virtual clock.
      First task is performed by qemu_start_warp_timer function. It sets warp
      timer event to the moment of nearest pending virtual timer.
      Second function (qemu_account_warp_timer) is called from cpu thread
      before execution of the code. It advances virtual clock by adding the length
      of period while CPU was sleeping.
      Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Message-Id: <20160310115609.4812.44986.stgit@PASHA-ISP>
      [Update docs. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e76d1798
  9. 05 11月, 2015 1 次提交