1. 28 7月, 2009 1 次提交
    • G
      kill drives_table · 751c6a17
      Gerd Hoffmann 提交于
      First step cleaning up the drives handling.  This one does nothing but
      removing drives_table[], still it became seriously big.
      
      drive_get_index() is gone and is replaced by drives_get() which hands
      out DriveInfo pointers instead of a table index.  This needs adaption in
      *tons* of places all over.
      
      The drives are now maintained as linked list.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      751c6a17
  2. 17 7月, 2009 1 次提交
  3. 16 7月, 2009 1 次提交
  4. 14 6月, 2009 1 次提交
  5. 13 6月, 2009 1 次提交
  6. 09 6月, 2009 2 次提交
  7. 27 5月, 2009 1 次提交
    • C
      Allow monitor interaction when using migrate -exec · 8a43b1ea
      Chris Lalancette 提交于
      All,
           I've recently been playing around with migration via exec.  Unfortunately,
      when starting the incoming qemu process with "-incoming exec:cmd", it suffers
      the same problem that -incoming tcp used to suffer; namely, that you can't
      interact with the monitor until after the migration has happened.  This causes
      problems for libvirt usage of -incoming exec, since libvirt expects to be able
      to access the monitor ahead of time.  This fairly simple patch allows you to
      access the monitor both before and after the migration has completed using exec.
      
      (note: developed/tested with qemu-kvm, but applies perfectly fine to qemu)
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8a43b1ea
  8. 22 5月, 2009 3 次提交
  9. 01 5月, 2009 1 次提交
  10. 18 4月, 2009 1 次提交
  11. 06 4月, 2009 2 次提交
  12. 13 3月, 2009 1 次提交
  13. 09 3月, 2009 1 次提交
  14. 08 3月, 2009 3 次提交
  15. 07 3月, 2009 1 次提交
  16. 06 3月, 2009 1 次提交
    • A
      monitor: Rework API (Jan Kiszka) · 376253ec
      aliguori 提交于
      Refactor the monitor API and prepare it for decoupled terminals:
      term_print functions are renamed to monitor_* and all monitor services
      gain a new parameter (mon) that will once refer to the monitor instance
      the output is supposed to appear on. However, the argument remains
      unused for now. All monitor command callbacks are also extended by a mon
      parameter so that command handlers are able to pass an appropriate
      reference to monitor output services.
      
      For the case that monitor outputs so far happen without clearly
      identifiable context, the global variable cur_mon is introduced that
      shall once provide a pointer either to the current active monitor (while
      processing commands) or to the default one. On the mid or long term,
      those use case will be obsoleted so that this variable can be removed
      again.
      
      Due to the broad usage of the monitor interface, this patch mostly deals
      with converting users of the monitor API. A few of them are already
      extended to pass 'mon' from the command handler further down to internal
      functions that invoke monitor_printf.
      
      At this chance, monitor-related prototypes are moved from console.h to
      a new monitor.h. The same is done for the readline API.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6711 c046a42c-6fe2-441c-8c8c-71466251a162
      376253ec
  17. 06 2月, 2009 1 次提交
  18. 12 12月, 2008 1 次提交
    • A
      Fix handling of disk-only snapshots (Kevin Wolf) · 2d22b18f
      aliguori 提交于
      When creating a snapshot with multiple qcow2 disks attached, the current
      behaviour is that qemu creates a disk snapshot on all of them and
      chooses one to write the VM state to.
      
      Despite having the state only in one image, loadvm tries to restore the
      VM state from the middle of nowhere if you run qemu a second time with
      only one of the other images attached. In the lucky case it will fail
      because there simply is no state, but it also can happen that it loads
      the state of a different snapshot (the one this new one is based upon).
      
      The fix is to write a zero VM state size to the images which don't
      contain the state, and check this in loadvm.
      
      I agree that you probably have to provoke such things intentionally to
      get in a state like this with qemu itself. However, with my second patch
      that adds snapshot support to qemu-img it could become a reasonable use
      case to have snapshots with and without VM states on the same image.
      Signed-off-by: NKevin Wolf <kwolf@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5985 c046a42c-6fe2-441c-8c8c-71466251a162
      2d22b18f
  19. 12 11月, 2008 1 次提交