1. 22 2月, 2017 1 次提交
  2. 21 2月, 2017 2 次提交
    • M
      hw: Deprecate -drive if=scsi with non-onboard HBAs · a64aa578
      Markus Armbruster 提交于
      Block backends defined with "-drive if=T" with T other than "none" are
      meant to be picked up by machine initialization code: a suitable
      frontend gets created and wired up automatically.
      
      Drives defined with if=scsi are also picked up by SCSI HBAs added with
      -device, unlike other interface types.  Deprecate this usage, as follows.
      
      Create the frontends for onboard HBAs in machine initialization code,
      exactly like we do for if=ide and other interface types.  Change
      scsi_legacy_handle_cmdline() to create a frontend only when it's still
      missing, and warn that this usage is deprecated.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1487161136-9018-3-git-send-email-armbru@redhat.com>
      a64aa578
    • M
      hw/scsi: Concentrate -drive if=scsi auto-create in one place · fb8b660e
      Markus Armbruster 提交于
      The logic to create frontends for -drive if=scsi is in SCSI HBAs.  For
      all other interface types, it's in machine initialization code.
      
      A few machine types create the SCSI HBAs necessary for that.  That's
      also not done for other interface types.
      
      I'm going to deprecate these SCSI eccentricities.  In preparation for
      that, create the frontends in main() instead of the SCSI HBAs, by
      calling new function scsi_legacy_handle_cmdline() there.
      
      Note that not all SCSI HBAs create frontends.  Take care not to change
      that.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1487161136-9018-2-git-send-email-armbru@redhat.com>
      Acked-By: NPaolo Bonzini <pbonzini@redhat.com>
      fb8b660e
  3. 16 2月, 2017 4 次提交
  4. 01 2月, 2017 1 次提交
  5. 28 1月, 2017 4 次提交
  6. 25 1月, 2017 1 次提交
  7. 24 1月, 2017 2 次提交
  8. 20 1月, 2017 1 次提交
  9. 17 1月, 2017 3 次提交
  10. 13 1月, 2017 1 次提交
  11. 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
  12. 09 11月, 2016 1 次提交
  13. 02 11月, 2016 1 次提交
  14. 30 10月, 2016 2 次提交
  15. 28 10月, 2016 3 次提交
  16. 24 10月, 2016 4 次提交
    • P
      cpu: Support a target CPU having a variable page size · 20bccb82
      Peter Maydell 提交于
      Support target CPUs having a page size which isn't knownn
      at compile time. To use this, the CPU implementation should:
       * define TARGET_PAGE_BITS_VARY
       * not define TARGET_PAGE_BITS
       * define TARGET_PAGE_BITS_MIN to the smallest value it
         might possibly want for TARGET_PAGE_BITS
       * call set_preferred_target_page_bits() in its realize
         function to indicate the actual preferred target page
         size for the CPU (and report any error from it)
      
      In CONFIG_USER_ONLY, the CPU implementation should continue
      to define TARGET_PAGE_BITS appropriately for the guest
      OS page size.
      
      Machines which want to take advantage of having the page
      size something larger than TARGET_PAGE_BITS_MIN must
      set the MachineClass minimum_page_bits field to a value
      which they guarantee will be no greater than the preferred
      page size for any CPU they create.
      
      Note that changing the target page size by setting
      minimum_page_bits is a migration compatibility break
      for that machine.
      
      For debugging purposes, attempts to use TARGET_PAGE_SIZE
      before it has been finally confirmed will assert.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      20bccb82
    • M
      char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit · c39860e6
      Marc-André Lureau 提交于
      Now that all front end use qemu_chr_fe_init(), we can move chardev
      claiming in init(), and add a function deinit() to release the chardev
      and cleanup handlers.
      
      The qemu_chr_fe_claim_no_fail() for property are gone, since the
      property will raise an error instead. In other cases, where there is
      already an error path, an error is raised instead. Finally, other cases
      are handled by &error_abort in qemu_chr_fe_init().
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20161022095318.17775-19-marcandre.lureau@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      c39860e6
    • M
      char: remove init callback · b4948be9
      Marc-André Lureau 提交于
      The CharDriverState.init() callback is no longer set since commit
      a61ae7f8 and thus unused. The only user, the malta FGPA display has
      been converted to use an event "opened" callback instead.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20161022095318.17775-7-marcandre.lureau@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b4948be9
    • T
      Put the copyright information on a separate line · 0781dd6e
      Thomas Huth 提交于
      The output string QEMU with "--version" is very long, it does
      not fit into a normal line of a terminal window anymore. By
      putting the copyright information on a separate line instead,
      the output looks much nicer.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1475661284-30153-1-git-send-email-thuth@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0781dd6e
  17. 18 10月, 2016 2 次提交
  18. 12 10月, 2016 1 次提交
    • D
      trace: provide mechanism for registering trace events · fe4db84d
      Daniel P. Berrange 提交于
      Remove the notion of there being a single global array
      of trace events, by introducing a method for registering
      groups of events.
      
      The module_call_init() needs to be invoked at the start
      of any program that wants to make use of the trace
      support. Currently this covers system emulators qemu-nbd,
      qemu-img and qemu-io.
      
      [Squashed the following fix from Daniel P. Berrange
      <berrange@redhat.com>:
      
      linux-user/bsd-user: initialize trace events subsystem
      
      The bsd-user/linux-user programs make use of the CPU emulation
      code and this now requires that the trace events subsystem
      is enabled, otherwise it'll crash trying to allocate an empty
      trace events bitmap for the CPU object.
      
      --Stefan]
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NLluís Vilanova <vilanova@ac.upc.edu>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1475588159-30598-14-git-send-email-berrange@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      fe4db84d
  19. 07 10月, 2016 1 次提交
  20. 04 10月, 2016 1 次提交
    • M
      qemu_kill_report: Report PID name too · fbe7e332
      Michal Privoznik 提交于
      When qemu is being killed, its last words are:
      
      2016-08-31T11:48:15.293587Z qemu-system-x86_64: terminating on signal 15 from pid 11180
      
      That's nice, but what process is 11180? What if I told you we can
      do better:
      
      2016-08-31T11:48:15.293587Z qemu-system-x86_64: terminating on signal 15 from pid 11180 (/usr/sbin/libvirtd)
      
      And that's exactly what this patch does.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Message-Id: <a2ba85a8e349a0ea9ee06424226197a03cd04bd3.1474987617.git.mprivozn@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fbe7e332
  21. 29 9月, 2016 1 次提交
  22. 27 9月, 2016 2 次提交