1. 26 9月, 2016 12 次提交
  2. 23 9月, 2016 2 次提交
  3. 22 9月, 2016 20 次提交
  4. 21 9月, 2016 5 次提交
    • P
      qemu: driver: Don't return automatic NUMA emulator pinning data for persistentDef · 006a532c
      Peter Krempa 提交于
      Calling virDomainGetEmulatorPinInfo on a live VM with automatic NUMA
      pinning and VIR_DOMAIN_AFFECT_CONFIG would return the automatic pinning
      data in some cases which is bogus. Use the autoCpuset property only when
      called on a live definition.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1365779
      006a532c
    • P
      qemu: driver: Don't return automatic NUMA vCPU pinning data for persistentDef · 552892c5
      Peter Krempa 提交于
      Calling virDomainGetVcpuPinInfo on a live VM with automatic NUMA pinning
      and VIR_DOMAIN_AFFECT_CONFIG would return the automatic pinning data
      in some cases which is bogus. Use the autoCpuset property only when
      called on a live definition.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1365779
      552892c5
    • P
      qemu: domain: Add macro to simplify access to vm private data · 63aac8c2
      Peter Krempa 提交于
      Sometimes adding a separate variable to access vm->privateData is not
      necessary. Add a macro that will do the typecasting rather than having
      to add a temp variable to force the compiler to typecast it.
      63aac8c2
    • J
      qemu: Ignore graphics cookie if port == 0 · 2e164b45
      Jiri Denemark 提交于
      Old libvirt represents
      
          <graphics type='spice'>
            <listen type='none'/>
          </graphics>
      
      as
      
          <graphics type='spice' autoport='no'/>
      
      In this mode, QEMU doesn't listen for SPICE connection anywhere and
      clients have to use virDomainOpenGraphics* APIs to attach to the domain.
      That is, the client has to run on the same host where the domains runs
      and it's impossible to tell the client to reconnect to the destination
      QEMU during migration (unless there is some kind of proxy on the host).
      
      While current libvirt correctly ignores such graphics devices when
      creating graphics migration cookie, old libvirt just sends
      
          <graphics type='spice' port='0' listen='0.0.0.0' tlsPort='-1'/>
      
      in the cookie. After seeing this cookie, we happily would call
      client_migrate_info QMP command and wait for SPICE_MIGRATE_COMPLETED
      event, which is quite pointless since the doesn't know where to connecti
      anyway. We should just ignore such cookies.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1376083Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      2e164b45
    • J
      qemuDomainOpenGraphics: Start job early · 53ae58b0
      Jiri Denemark 提交于
      Checking if a domain's definition or if it is active before we got a job
      is pointless since the domain might have changed in the meantime.
      
      Luckily libvirtd didn't crash when the API tried to talk to an inactive
      domain:
      
      debug : qemuDomainObjBeginJobInternal:2914 : Started job: modify
          (async=none vm=0x7f8f340140c0 name=ble)
      debug : qemuDomainObjEnterMonitorInternal:3137 : Entering monitor
          (mon=(nil) vm=0x7f8f340140c0 name=ble)
      warning : virObjectLock:319 : Object (nil) ((unknown)) is not a
          virObjectLockable instance
      debug : qemuMonitorOpenGraphics:3505 : protocol=spice fd=27
          fdname=graphicsfd skipauth=1
      error : qemuMonitorOpenGraphics:3508 : invalid argument: monitor must
          not be NULL
      debug : qemuDomainObjExitMonitorInternal:3160 : Exited monitor
          (mon=(nil) vm=0x7f8f340140c0 name=ble)
      debug : qemuDomainObjEndJob:3068 : Stopping job: modify (async=none
          vm=0x7f8f340140c0 name=ble)
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      53ae58b0
  5. 20 9月, 2016 1 次提交
    • N
      qemu: agent: give better error messages whe agent monitor is down · 6bff9c03
      Nikolay Shirokovskiy 提交于
      We can receive NULL as sync reply in two situations. First
      is garbage sync reply and this situation is handled by
      resending sync message. Second is different cases
      of rebooting guest, destroing domain etc and we can
      give more meaningful error message. Actually we have
      this error message in qemuAgentCommand already which checks
      for the same sitatuion. AFAIK case with mon->running
      is just to be safe on adding some future(?) cases of
      returning NULL reply.
      6bff9c03