1. 10 1月, 2017 1 次提交
    • P
      migration: allow to prioritize save state entries · f37bc036
      Peter Xu 提交于
      During migration, save state entries are saved/loaded without a specific
      order - we just traverse the savevm_state.handlers list and do it one by
      one. This might not be enough.
      
      There are requirements that we need to load specific device's vmstate
      first before others. For example, VT-d IOMMU contains DMA address
      remapping information, which is required by all the PCI devices to do
      address translations. We need to make sure IOMMU's device state is
      loaded before the rest of the PCI devices, so that DMA address
      translation can work properly.
      
      This patch provide a VMStateDescription.priority value to allow specify
      the priority of the saved states. The loadvm operation will be done with
      those devices with higher vmsd priority.
      
      Before this patch, we are possibly achieving the ordering requirement by
      an assumption that the ordering will be the same with the ordering that
      objects are created. A better way is to mark it out explicitly in the
      VMStateDescription table, like what this patch does.
      
      Current ordering logic is still naive and slow, but after all that's not
      a critical path so IMO it's a workable solution for now.
      Signed-off-by: NPeter Xu <peterx@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      f37bc036
  2. 09 1月, 2017 38 次提交
  3. 06 1月, 2017 1 次提交
    • P
      Merge remote-tracking branch 'remotes/gonglei/tags/cryptodev-next-20161224' into staging · ffe22bf5
      Peter Maydell 提交于
      cryptodev patches
      
      - add xts mode support
      - add 3DES algorithm support
      - other trivial fixes
      
      # gpg: Signature made Sat 24 Dec 2016 05:56:44 GMT
      # gpg:                using RSA key 0x2ED7FDE9063C864D
      # gpg: Good signature from "Gonglei <arei.gonglei@huawei.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 3EF1 8E53 3459 E6D1 963A  3C05 2ED7 FDE9 063C 864D
      
      * remotes/gonglei/tags/cryptodev-next-20161224:
        cryptodev: add 3des-ede support
        cryptodev: remove single-DES support in cryptodev
        cryptodev: add xts(aes) support
        cryptodev: fix the check of aes algorithm
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ffe22bf5