1. 08 7月, 2015 4 次提交
  2. 07 7月, 2015 6 次提交
    • D
      crypto: move built-in D3DES implementation into crypto/ · 9fd72468
      Daniel P. Berrange 提交于
      To prepare for a generic internal cipher API, move the
      built-in D3DES implementation into the crypto/ directory.
      
      This is not in fact a normal D3DES implementation, it is
      D3DES with double & triple length modes removed, and the
      key bytes in reversed bit order. IOW it is crippled
      specifically for the "benefit" of RFB, so call the new
      files desrfb.c instead of d3des.c to make it clear that
      it isn't a generally useful impl.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <1435770638-25715-4-git-send-email-berrange@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      9fd72468
    • D
      crypto: move built-in AES implementation into crypto/ · 6f2945cd
      Daniel P. Berrange 提交于
      To prepare for a generic internal cipher API, move the
      built-in AES implementation into the crypto/ directory
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <1435770638-25715-3-git-send-email-berrange@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      6f2945cd
    • D
      crypto: introduce new module for computing hash digests · ddbb0d09
      Daniel P. Berrange 提交于
      Introduce a new crypto/ directory that will (eventually) contain
      all the cryptographic related code. This initially defines a
      wrapper for initializing gnutls and for computing hashes with
      gnutls. The former ensures that gnutls is guaranteed to be
      initialized exactly once in QEMU regardless of CLI args. The
      block quorum code currently fails to initialize gnutls so it
      only works by luck, if VNC server TLS is not requested. The
      hash APIs avoids the need to litter the rest of the code with
      preprocessor checks and simplifies callers by allocating the
      correct amount of memory for the requested hash.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <1435770638-25715-2-git-send-email-berrange@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      ddbb0d09
    • E
      vl: move rom_load_all after machine init done · 6b3f7f63
      Eric Auger 提交于
      On ARM, commit ac9d32e3 postponed the
      memory preparation for boot until the machine init done notifier. This
      has for consequence to insert ROM at machine init done time.
      
      However the rom_load_all function stayed called before the ROM are
      inserted. As a consequence the rom_load_all function does not do
      everything it is expected to do, on ARM.
      
      It currently registers the ROM reset notifier but does not iterate through
      the registered ROM list. the isrom field is not set properly. This latter
      is used to report info in the monitor and also to decide whether the
      rom->data can be freed on ROM reset notifier.
      
      To fix that regression the patch moves the rom_load_all call after
      machine init done. We also take the opportunity to rename the rom_load_all
      function into rom_check_and_resgister_reset() and integrate the
      rom_load_done in it.
      Signed-off-by: NEric Auger <eric.auger@linaro.org>
      Reported-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      Message-Id: <1434470874-22573-1-git-send-email-eric.auger@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      6b3f7f63
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into staging · f6e3035f
      Peter Maydell 提交于
      This series implements KVM support for SMM, and lets you enable/disable
      it through the "smm" property of x86 machine types.
      
      # gpg: Signature made Mon Jul  6 17:41:05 2015 BST using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream-smm:
        pc: add SMM property
        ich9: add smm_enabled field and arguments
        pc_piix: rename kvm_enabled to smm_enabled
        target-i386: register a separate KVM address space including SMRAM regions
        kvm-all: kvm_irqchip_create is not expected to fail
        kvm-all: add support for multiple address spaces
        kvm-all: make KVM's memory listener more generic
        kvm-all: move internal types to kvm_int.h
        kvm-all: remove useless typedef
        kvm-all: put kvm_mem_flags to more work
        target-i386: add support for SMBASE MSR and SMIs
        piix4/ich9: do not raise SMI on ACPI enable/disable commands
        linux-headers: Update to 4.2-rc1
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f6e3035f
    • P
      pc: add SMM property · 355023f2
      Paolo Bonzini 提交于
      The property can take values on, off or auto.  The default is "off"
      for KVM and pre-2.4 machines, otherwise "auto" (which makes it
      available on TCG or on new-enough kernels).
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      355023f2
  3. 06 7月, 2015 28 次提交
  4. 04 7月, 2015 2 次提交
    • J
      ahci: fix sdb fis semantics · 7c649ac5
      John Snow 提交于
      There are two things to fix here:
      
      The first one is subtle: the PxSACT register in the AHCI HBA has different
      semantics from the field it is shadowing, the ACT field in the
      Set Device Bits FIS.
      
      In the HBA register, PxSACT acts as a bitfield indicating outstanding
      NCQ commands where a set bit indicates a pending NCQ operation. The FIS
      field however operates as an RWC register update to PxSACT, where a set
      bit indicates a *successfully* completed command.
      
      Correct the FIS semantics. At the same time, move the "clear finished"
      action to the SDB FIS generation instead of the register read to mimick
      how the other shadow registers work, which always just report the last
      reported value from a FIS, and not the most current values which may
      not have been reported by a FIS yet.
      
      Lastly and more simply, SATA 3.2 section 13.6.4.2 (and later sections)
      all specify that the Interrupt bit for the SDB FIS should always be set
      to one for NCQ commands. That's currently the only time we generate this
      FIS, so set it on all the time.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1435767578-32743-16-git-send-email-jsnow@redhat.com
      7c649ac5
    • J
      qtest/ahci: halted ncq migration test · 8146d7dc
      John Snow 提交于
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1435767578-32743-15-git-send-email-jsnow@redhat.com
      8146d7dc