1. 14 3月, 2016 3 次提交
    • A
      hostdev: Rework resetvfnetconfig loop condition · 2ec4664b
      Andrea Bolognani 提交于
      If 'last_processed_hostdev_vf != -1' is false then, since the
      loop counter 'i' starts at 0, 'i <= last_processed_hostdev_vf'
      can't possibly be true and the loop body will never be executed.
      
      However, since 'i' is unsigned and 'last_processed_hostdev_vf'
      is signed, we can't just get rid of the check completely; what
      we can do is move it outside of the loop to avoid checking its
      value on every iteration and cluttering the actual loop
      condition.
      2ec4664b
    • M
      vz: fix active domain listing · 8a744987
      Maxim Nestratov 提交于
      Since commit 9c14a9ab we have broken active domain listing
      because reworked prlsdkLoadDomain doesn't set dom->def->id
      propely. It just looses it when a new def structure is set.
      Now we make prlsdkConvertDomainState function return void
      and move calling it after an old dom->def is replaces with
      a new one within prlsdkLoadDomain function.
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      8a744987
    • M
      qemuBuildVideoCommandLine: Don't access def->videos without check · 2e70af12
      Michal Privoznik 提交于
      This function can be called over a domain definition that has no
      video configured. The
      tests/qemuxml2argvdata/qemuxml2argv-minimal.xml file could serve
      as an example. Problem is, before the check that domain has some
      or none video configured, def->videos is dereferenced causing a
      segmentation fault in case there's none video configured.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2e70af12
  2. 12 3月, 2016 8 次提交
  3. 11 3月, 2016 29 次提交