1. 24 10月, 2012 3 次提交
    • P
      migration: go to paused state after finishing incoming migration with -S · 29ed72f1
      Paolo Bonzini 提交于
      At the end of migration the machine has started already, and cannot be
      destroyed without losing the guest's data.  Hence, prelaunch is the
      wrong state.  Go to the paused state instead.  QEMU would reach that
      state anyway (after running the guest for the blink of an eye) if the
      "stop" command had been received after the start of migration.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      29ed72f1
    • P
      qmp: handle stop/cont in INMIGRATE state · 1e998146
      Paolo Bonzini 提交于
      Right now, stop followed by an incoming migration will let the
      virtual machine start.  cont before an incoming migration instead
      will fail.
      
      This is bad because the actual behavior is not predictable; it is
      racy with respect to the start of the incoming migration.  That's
      because incoming migration is blocking, and thus will delay the
      processing of stop/cont until the end of the migration.
      
      In addition, there's nothing that really prevents the user from
      typing the block device's passwords before incoming migration is
      done, so returning the DeviceEncrypted error is also helpful in
      the QMP case.
      
      Both things can be fixed by just toggling the autostart variable when
      stop/cont are called in INMIGRATE state.
      
      Note that libvirt is currently working around the race by looping
      if the MigrationExpected answer is returned.  After this patch, the
      command will return right away without ever raising an error.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      1e998146
    • A
      hmp: fix info cpus for sparc targets · 852bef0e
      Aurelien Jarno 提交于
      On sparc targets, info cpus returns this kind of output:
      
      | info cpus
      | * CPU #0: pc=0x0000000000424d18pc=0x0000000000424d18npc=0x0000000000424d1c thread_id=19460
      
      pc is printed twice, there is no space between pc, pc and npc.
      
      With this patch, pc is not printed anymore when has_npc is set. In addition
      the space is printed before pc/nip/npc/PC instead of after the colon so that
      multiple prints are possible. This result on the following kind of input on
      sparc targets:
      
      | info cpus
      | * CPU #0: pc=0x0000000000424d18 npc=0x0000000000424d1c thread_id=19460
      
      Cc: Luiz Capitulino <lcapitulino@redhat.com>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      852bef0e
  2. 23 10月, 2012 13 次提交
  3. 22 10月, 2012 11 次提交
  4. 20 10月, 2012 13 次提交