1. 25 3月, 2017 8 次提交
    • J
      qemu: Set up the migration TLS objects for target · 1a6b6d9a
      John Ferlan 提交于
      If the migration flags indicate this migration will be using TLS,
      then set up the destination during the prepare phase once the target
      domain has been started to add the TLS objects to perform the migration.
      
      This will create at least an "-object tls-creds-x509,endpoint=server,..."
      for TLS credentials and potentially an "-object secret,..." to handle the
      passphrase response to access the TLS credentials. The alias/id used for
      the TLS objects will contain "libvirt_migrate".
      
      Once the objects are created, the code will set the "tls-creds" and
      "tls-hostname" migration parameters to signify usage of TLS.
      
      During the Finish phase we'll be sure to attempt to clear the
      migration parameters and delete those objects (whether or not they
      were created). We'll also perform the same reset during recovery
      if we've reached FINISH3.
      
      If the migration isn't using TLS, then be sure to check if the
      migration parameters exist and clear them if so.
      1a6b6d9a
    • J
      qemu: Add job for qemuDomain{Add|Del}TLSObjects · b9c09f80
      John Ferlan 提交于
      Add an asyncJob argument for add/delete TLS Objects. A future patch will
      add/delete TLS objects from a migration which may have a job to join.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      b9c09f80
    • J
      qemu: Add TLS params to _qemuMonitorMigrationParams · 3d06cb96
      John Ferlan 提交于
      Add the fields to support setting tls-creds and tls-hostname during
      a migration (either source or target). Modify the query migration
      function to check for the presence and set the field for future
      consumers to determine which of 3 conditions is being met (NULL,
      present and set to "", or present and sent to something). These
      correspond to qemu commit id '4af245dc3' which added support to
      default the value to "" and allow setting (or resetting) to ""
      in order to disable. This reset option allows libvirt to properly
      use the tls-creds and tls-hostname parameters.
      
      Modify code paths that either allocate or use stack space in order
      to call qemuMigrationParamsClear or qemuMigrationParamsFree for cleanup.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      3d06cb96
    • J
      Add new migration flag VIR_MIGRATE_TLS · 6a8d898d
      John Ferlan 提交于
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      6a8d898d
    • J
      qemu: Update the TLS client verify descriptions for vnc and chardev · 3f3582d6
      John Ferlan 提交于
      Update the descriptions to match the migrate option.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      3f3582d6
    • J
      conf: Introduce migrate_tls_x509_cert_dir · 1415121a
      John Ferlan 提交于
      Add a new TLS X.509 certificate type - "migrate". This will handle the
      creation of a TLS certificate capability (and possibly repository) to
      be used for migrations. Similar to chardev's, credentials will be handled
      via a libvirt secrets; however, unlike chardev's enablement and usage
      will be via a CLI flag instead of a conf flag and a domain XML attribute.
      
      The migrations using the *x509_verify flag require the client-cert.pem
      and client-key.pem files to be present in the TLS directory - so let's
      also be sure to note that in the qemu.conf file.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      1415121a
    • J
      qemu: Replace macro usage of (false); with just (0) · e3ff84ed
      John Ferlan 提交于
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      e3ff84ed
    • J
      qemu: Create #define for TLS configuration setup. · 54477976
      John Ferlan 提交于
      Create GET_CONFIG_TLS_CERT to set up the TLS for 'chardev' TLS setting.
      Soon to be reused.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      54477976
  2. 24 3月, 2017 2 次提交
    • P
      qemu: snapshot: Forbid internal snapshots with pflash firmware · 9e246583
      Peter Krempa 提交于
      If the variable store (<nvram>) file is raw qemu can't do a snapshot of
      it and thus the snapshot fails. QEMU rejects such snapshot by a message
      which would not be properly interpreted as an error by libvirt.
      
      Additionally allowing to use a qcow2 variable store backing file would
      solve this issue but then it would become eligible to become target of
      the memory dump.
      
      Offline internal snapshot would be incomplete too with either storage
      format since libvirt does not handle the pflash file in this case.
      
      Forbid such snapshot so that we can avoid problems.
      9e246583
    • J
      Revert "qemu: forbid migration with an IOMMU device" · da17090b
      Ján Tomko 提交于
      This reverts commit b7118623.
      
      Migration was implemented by QEMU commit:
      commit 8cdcf3c1e58d04b6811956d7608efeb66c42d719
      Author: Peter Xu <peterx@redhat.com>
      Date:   Fri Jan 6 12:06:13 2017 +0800
      
          intel_iommu: allow migration
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1433994
      da17090b
  3. 23 3月, 2017 5 次提交
  4. 22 3月, 2017 1 次提交
  5. 21 3月, 2017 1 次提交
  6. 20 3月, 2017 1 次提交
  7. 17 3月, 2017 15 次提交
  8. 16 3月, 2017 2 次提交
  9. 15 3月, 2017 5 次提交