1. 04 10月, 2014 1 次提交
  2. 06 5月, 2014 1 次提交
  3. 13 3月, 2014 1 次提交
  4. 05 3月, 2014 2 次提交
    • A
      kvm: Add a new machine option kvm-type · 135a129a
      Aneesh Kumar K.V 提交于
      Targets like ppc64 support different types of KVM, one which use
      hypervisor mode and the other which doesn't. Add a new machine
      option kvm-type that helps in selecting the respective ones
      We also add a new QEMUMachine callback get_vm_type that helps
      in mapping the string representation of kvm type specified.
      Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      [agraf: spelling fixes, use error_report(), use qemumachine.h]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      135a129a
    • A
      KVM: Split QEMUMachine typedef into separate header · 9c06a1f7
      Alexander Graf 提交于
      Older gcc versions (such as the one in SLES11) get confused when you declare
      a typedef on the same struct twice.
      
      To work around that limitation, let's extract the QEMUMachine typedef into a
      separate header file that is guarded by preprocessor duplicate include checks.
      
      This fixes the following type of compile errors for me:
      
        In file included from vl.c:125:
        include/hw/xen/xen.h:39: error: redefinition of typedef "QEMUMachine"
        include/sysemu/kvm.h:155: error: previous declaration of "QEMUMachine" was here
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      9c06a1f7
  5. 15 2月, 2014 1 次提交
  6. 14 2月, 2014 1 次提交
  7. 05 2月, 2014 1 次提交
  8. 10 12月, 2013 1 次提交
    • P
      qtest: split configuration of qtest accelerator and chardev · d4fce24f
      Paolo Bonzini 提交于
      qtest uses the icount infrastructure to implement a test-driven vm_clock.  This
      however is not necessary when using -qtest as a "probe" together with a normal
      TCG-, KVM- or Xen-based virtual machine.  Hence, split out the call to
      configure_icount into a new function that is called only for "-machine
      accel=qtest"; and disable those commands when running with an accelerator
      other than qtest.
      
      This also fixes an assertion failure with "qemu-system-x86_64 -machine
      accel=qtest" but no -qtest option.  This is a valid case, albeit somewhat
      weird; nothing will happen in the VM but you'll still be able to
      interact with the monitor or the GUI.
      
      Now that qtest_init is not limited to an int(void) function, change
      global variables that are not used outside qtest_init to arguments.
      
      And finally, cleanup useless parts of include/sysemu/qtest.h.  The file
      is not used at all for user-only emulation, and qtest is not available
      on Win32 due to its usage of sigwait.
      Reported-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Tested-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      d4fce24f
  9. 02 2月, 2013 1 次提交
  10. 19 12月, 2012 1 次提交
  11. 20 4月, 2012 1 次提交
  12. 30 3月, 2012 1 次提交
    • 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