1. 19 10月, 2017 24 次提交
  2. 18 10月, 2017 14 次提交
  3. 17 10月, 2017 2 次提交
    • J
      qemu: Fix CPU model broken by older libvirt · 6a6f6b91
      Jiri Denemark 提交于
      When libvirt older than 3.9.0 reconnected to a running domain started by
      old libvirt it could have messed up the expansion of host-model by
      adding features QEMU does not support (such as cmt). Thus whenever we
      reconnect to a running domain, revert to an active snapshot, or restore
      a saved domain we need to check the guest CPU model and remove the
      CPU features unknown to QEMU. We can do this because we know the domain
      was successfully started, which means the CPU did not contain the
      features when libvirt started the domain.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1495171Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      6a6f6b91
    • J
      qemu: Filter CPU features when using host CPU · e26cc8f8
      Jiri Denemark 提交于
      When reconnecting to a domain started with a host-model CPU which was
      started by old libvirt that did not replace host-model with the real CPU
      definition, libvirt replaces the host-model CPU with the CPU from
      capabilities (because this is what the old libvirt did when it started
      the domain). Without this patch libvirt could use features unknown to
      QEMU in the CPU definition which replaced the original host-model CPU.
      Such domain would keep running just fine, but any attempt to migrate it
      will fail and once the domain is saved or snapshotted, restoring it
      would fail too.
      
      In other words whenever we want to use the CPU definition from host
      capabilities as a guest CPU definition, we have to filter the unknown
      features.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1495171Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      e26cc8f8