1. 29 3月, 2017 3 次提交
    • J
      schema: do not require name for certain pool types · 8ef12b96
      Ján Tomko 提交于
      Pool types that have the VIR_STORAGE_POOL_SOURCE_NAME flag set
      allow omitting the <name> element and instead fill out the pool name
      from the <source><name> element.
      
      Relax the schema to make <name> optional for these pools.
      Expressing that at least one of these is required is out of scope
      of the schema.
      8ef12b96
    • M
      qemuDomainGetStats: Copy domain ID too · ca8c36a9
      Michal Privoznik 提交于
      One of the problems with our virGetDomain function is that it
      copies just domain name and domain UUID. Therefore it's very
      easy to forget aboud domain ID. This can cause some bugs, like
      virConnectGetAllDomainStats not reporting proper domain IDs.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ca8c36a9
    • M
      network: Don't crash on domain destroy · 2fe93123
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1434882
      
      Imagine the following scenario:
      
      1) virsh net-start default
      2) virsh start myFavouriteDomain
      3) virsh net-destroy default
      4) virsh destroy myFavouriteDomain
      
      (assuming myFavouriteDomain has an interface from default
      network)
      
      Regardless of how unlikely this scenario looks like, we should
      not crash. The problem is, on net-destroy in
      networkShutdownNetworkVirtual() the virMacMap module is unrefed,
      but the stale pointer is kept around. Thus when the domain
      destroy procedure comes in, networkReleaseActualDevice() and
      subsequently networkMacMgrDel() is called. This function sees the
      stale pointer and starts calling the virMacMap module APIs which
      work over freed memory.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2fe93123
  2. 28 3月, 2017 37 次提交