1. 12 5月, 2012 1 次提交
    • P
      vga: disable default VGA if appropriate -device is used · 7f1b17f2
      Paolo Bonzini 提交于
      This is a partial revert of commits a369da5f (vga: improve VGA logic,
      committed 2012-01-22) and c5bd4f3d (vga: fix -nodefaults -device VGA,
      2012-01-24) which broke command-line option parsing in different ways.
      
      Since commit a369da5f it has become impossible to specify a VGA device
      entirely with QemuOpts-enabled options, i.e. without needing an explicit
      "-vga none".
      
      In addition, until commit c5bd4f3d -nodefaults would not disable the device
      you specified with the legacy "-vga" option, independent of the order.
      Since commit c5bd4f3d QEMU -nodefaults will override a previous -vga
      option.
      
      I did not reintroduce machine->no_vga.  Boards can simply ignore the
      vga_interface_type variable, and most will indeed do so.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      7f1b17f2
  2. 11 5月, 2012 4 次提交
  3. 09 5月, 2012 2 次提交
  4. 30 3月, 2012 2 次提交
    • A
      qtest: add test framework · c7f0f3b1
      Anthony Liguori 提交于
      The idea behind qtest is pretty simple.  Instead of executing a CPU via TCG or
      KVM, rely on an external process to send events to the device model that the CPU
      would normally generate.
      
      qtest presents itself as an accelerator.  In addition, a new option is added to
      establish a qtest server (-qtest) that takes a character device.  This is what
      allows the external process to send CPU events to the device model.
      
      qtest uses a simple line based protocol to send the events.  Documentation of
      that protocol is in qtest.c.
      
      I considered reusing the monitor for this job.  Adding interrupts would be a bit
      difficult.  In addition, logging would also be difficult.
      
      qtest has extensive logging support.  All protocol commands are logged with
      time stamps using a new command line option (-qtest-log).  Logging is important
      since ultimately, this is a feature for debugging.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c7f0f3b1
    • P
      rtc: add -rtc clock=rt · 78808141
      Paolo Bonzini 提交于
      This will let people use backwards-compatible semantics for devices that
      will be affected by the following patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      78808141
  5. 26 3月, 2012 1 次提交
  6. 20 3月, 2012 1 次提交
  7. 19 3月, 2012 1 次提交
    • A
      spice: fix broken initialization · ad1be899
      Alon Levy 提交于
      Commit 1b71f7c1 moved MODULE_INIT_QOM to
      way before MODULE_INIT_MACHINE, thereby breaking assumptions made in
      spice-core.c which registered both a type initializer and a machine
      intializer.
      
      This fix removes the type registration, and replaces it with calling
      qemu_spice_init in vl.c after command line parsing (second pass) is
      done, and after timers are armed, required by spice server.
      Signed-off-by: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      ad1be899
  8. 14 3月, 2012 1 次提交
  9. 13 3月, 2012 1 次提交
  10. 02 3月, 2012 1 次提交
  11. 27 2月, 2012 1 次提交
  12. 25 2月, 2012 3 次提交
    • P
      vl.c: Avoid segfault when started with no arguments · 967c0da7
      Peter Maydell 提交于
      Fix a bug (introduced in commit a0abe474) where a command line which
      specified no machine arguments (either explicitly or implicitly via
      -kernel &co) would result in a segfault because of a NULL pointer
      returned from qemu_opts_find(qemu_find_opts("machine"), 0).
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      967c0da7
    • G
      suspend: add qmp events · 53370b78
      Gerd Hoffmann 提交于
      Send qmp events on suspend and wakeup so libvirt
      has a chance to track the vm state.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      53370b78
    • G
      suspend: add infrastructure · 95b363b5
      Gerd Hoffmann 提交于
      This patch adds some infrastructure to handle suspend and resume to
      qemu.  First there are two functions to switch state and second there
      is a suspend notifier:
      
       * qemu_system_suspend_request is supposed to be called when the
         guest asks for being be suspended, for example via ACPI.
      
       * qemu_system_wakeup_request is supposed to be called on events
         which should wake up the guest.
      
       * qemu_register_suspend_notifier can be used to register a notifier
         which will be called when the guest is suspended.  Machine types
         and device models can hook in there to modify state if needed.
      
       * qemu_register_wakeup_notifier can be used to register a notifier
         which will be called when the guest is woken up.  Machine types
         and device models can hook in there to modify state if needed.
      
       * qemu_system_wakeup_enable can be used to enable/disable wakeup
         events.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      95b363b5
  13. 24 2月, 2012 2 次提交
  14. 23 2月, 2012 1 次提交
  15. 22 2月, 2012 2 次提交
  16. 17 2月, 2012 2 次提交
  17. 15 2月, 2012 1 次提交
  18. 10 2月, 2012 1 次提交
  19. 09 2月, 2012 1 次提交
    • R
      iSCSI: add configuration variables for iSCSI · f9dadc98
      Ronnie Sahlberg 提交于
      This patch adds configuration variables for iSCSI to set
      initiator-name to use when logging in to the target,
      which type of header-digest to negotiate with the target
      and username and password for CHAP authentication.
      
      This allows specifying a initiator-name either from the command line
      -iscsi initiator-name=iqn.2004-01.com.example:test
      or from a configuration file included with -readconfig
          [iscsi]
            initiator-name = iqn.2004-01.com.example:test
            header-digest = CRC32C|CRC32C-NONE|NONE-CRC32C|NONE
            user = CHAP username
            password = CHAP password
      
      If you use several different targets, you can also configure this on a per
      target basis by using a group name:
          [iscsi "iqn.target.name"]
          ...
      
      The configuration file can be read using -readconfig.
      Example :
      qemu-system-i386 -drive file=iscsi://127.0.0.1/iqn.ronnie.test/1
       -readconfig iscsi.conf
      Signed-off-by: NRonnie Sahlberg <ronniesahlberg@gmail.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f9dadc98
  20. 07 2月, 2012 1 次提交
  21. 02 2月, 2012 3 次提交
  22. 26 1月, 2012 1 次提交
  23. 22 1月, 2012 1 次提交
  24. 19 1月, 2012 1 次提交
  25. 04 1月, 2012 3 次提交
  26. 23 12月, 2011 1 次提交
    • V
      Set numa topology for max_cpus · 991dfefd
      Vasilis Liaskovitis 提交于
      qemu-kvm passes numa/SRAT topology information for smp_cpus to SeaBIOS. However
      SeaBIOS always expects to setup max_cpus number of SRAT cpu entries
      (MaxCountCPUs variable in build_srat function of Seabios). When qemu-kvm runs
      with smp_cpus != max_cpus (e.g. -smp 2,maxcpus=4), Seabios will mistakenly use
      memory SRAT info for setting up CPU SRAT entries for the offline CPUs. Wrong
      SRAT memory entries are also created. This breaks NUMA in a guest.
      Fix by setting up SRAT info for max_cpus in qemu-kvm.
      Signed-off-by: NVasilis Liaskovitis <vasilis.liaskovitis@profitbricks.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      991dfefd