Skip to content
Snippets Groups Projects
  1. Oct 22, 2020
    • Claudio Fontana's avatar
      replay: do not build if TCG is not available · 9b1c9116
      Claudio Fontana authored
      
      this fixes non-TCG builds broken recently by replay reverse debugging.
      
      Stub the needed functions in stub/, splitting roughly between functions
      needed only by system emulation, by system emulation and tools,
      and by everyone.  This includes duplicating some code in replay/, and
      puts the logic for non-replay related events in the replay/ module (+
      the stubs), so this should be revisited in the future.
      
      Surprisingly, only _one_ qtest was affected by this, ide-test.c, which
      resulted in a buzz as the bh events were never delivered, and the bh
      never executed.
      
      Many other subsystems _should_ have been affected.
      
      This fixes the immediate issue, however a better way to group replay
      functionality to TCG-only code could be developed in the long term.
      
      Signed-off-by: default avatarClaudio Fontana <cfontana@suse.de>
      Message-Id: <20201013192123.22632-4-cfontana@suse.de>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      9b1c9116
  2. Oct 05, 2020
  3. Aug 20, 2019
    • Pavel Dovgaluk's avatar
      util/qemu-timer: refactor deadline calculation for external timers · dcb15780
      Pavel Dovgaluk authored
      
      icount-based record/replay uses qemu_clock_deadline_ns_all to measure
      the period until vCPU may be interrupted.
      This function takes in account the virtual timers, because they belong
      to the virtual devices that may generate interrupt request or affect
      the virtual machine state.
      However, there are a subset of virtual timers, that are marked with
      'external' flag. These do not change the virtual machine state and
      only based on virtual clock. Calculating the deadling using the external
      timers breaks the determinism, because they do not belong to the replayed
      part of the virtual machine.
      This patch fixes the deadline calculation for this case by adding
      new parameter for skipping the external timers when it is needed.
      
      Signed-off-by: default avatarPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
      
      --
      
      v2 changes:
       - added new parameter for timer attribute mask
      Message-Id: <156404426682.18669.17014100602930969222.stgit@pasha-Precision-3630-Tower>
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      dcb15780
  4. Oct 19, 2018
    • Artem Pisarenko's avatar
      qemu-timer: introduce timer attributes · 89a603a0
      Artem Pisarenko authored
      
      Attributes are simple flags, associated with individual timers for their
      whole lifetime.  They intended to be used to mark individual timers for
      special handling when they fire.
      
      New/init functions family in timer interface updated and refactored (new
      'attribute' argument added, timer_list replaced with timer_list_group+type
      combinations, comments improved to avoid info duplication).  Also existing
      aio interface extended with attribute-enabled variants of functions,
      which create/initialize timers.
      
      Signed-off-by: default avatarArtem Pisarenko <artem.k.pisarenko@gmail.com>
      Message-Id: <f47b81dbce734e9806f9516eba8ca588e6321c2f.1539764043.git.artem.k.pisarenko@gmail.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      89a603a0
  5. Sep 19, 2017
  6. Feb 28, 2017
  7. Oct 24, 2016
  8. Oct 17, 2016
  9. Sep 22, 2016
Loading