1. 05 7月, 2016 31 次提交
  2. 04 7月, 2016 9 次提交
    • P
      Merge remote-tracking branch 'remotes/berrange/tags/pull-qcrypto-2016-07-04-1' into staging · 0d7e96c9
      Peter Maydell 提交于
      Merge qcrypto 2016/07/04 v1
      
      # gpg: Signature made Mon 04 Jul 2016 15:54:26 BST
      # gpg:                using RSA key 0xBE86EBB415104FDF
      # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>"
      # gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>"
      # Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF
      
      * remotes/berrange/tags/pull-qcrypto-2016-07-04-1:
        crypto: allow default TLS priority to be chosen at build time
        crypto: add support for TLS priority string override
        crypto: implement sha224, sha384, sha512 and ripemd160 hashes
        crypto: switch hash code to use nettle/gcrypt directly
        crypto: rename OUT to out in xts test to avoid clash on MinGW
        crypto: fix handling of iv generator hash defaults
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      0d7e96c9
    • G
      Revert "bios: Add fast variant of SeaBIOS for use with -kernel on x86." · 3b1154ff
      Gerd Hoffmann 提交于
      This reverts commit 4e04ab6a.
      
      Also remove pc-bios/bios-fast.bin.
      
      Commit was merged by mistake.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3b1154ff
    • D
      crypto: allow default TLS priority to be chosen at build time · a1c5e949
      Daniel P. Berrange 提交于
      Modern gnutls can use a global config file to control the
      crypto priority settings for TLS connections. For example
      the priority string "@SYSTEM" instructs gnutls to find the
      priority setting named "SYSTEM" in the global config file.
      
      Latest gnutls GIT codebase gained the ability to reference
      multiple priority strings in the config file, with the first
      one that is found to existing winning. This means it is now
      possible to configure QEMU out of the box with a default
      priority of "@QEMU,SYSTEM", which says to look for the
      settings "QEMU" first, and if not found, use the "SYSTEM"
      settings.
      
      To make use of this facility, we introduce the ability to
      set the QEMU default priority at build time via a new
      configure argument.  It is anticipated that distro vendors
      will set this when building QEMU to a suitable value for
      use with distro crypto policy setup. eg current Fedora
      would run
      
       ./configure --tls-priority=@SYSTEM
      
      while future Fedora would run
      
       ./configure --tls-priority=@QEMU,SYSTEM
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a1c5e949
    • D
      crypto: add support for TLS priority string override · 13f12430
      Daniel P. Berrange 提交于
      The gnutls default priority is either "NORMAL" (most historical
      versions of gnutls) which is a built-in label in gnutls code,
      or "@SYSTEM" (latest gnutls on Fedora at least) which refers
      to an admin customizable entry in a gnutls config file.
      
      Regardless of which default is used by a distro, they are both
      global defaults applying to all applications using gnutls. If
      a single application on the system needs to use a weaker set
      of crypto priorities, this potentially forces the weakness onto
      all applications. Or conversely if a single application wants a
      strong default than all others, it can't do this via the global
      config file.
      
      This adds an extra parameter to the tls credential object which
      allows the mgmt app / user to explicitly provide a priority
      string to QEMU when configuring TLS.
      
      For example, to use the "NORMAL" priority, but disable SSL 3.0
      one can now configure QEMU thus:
      
        $QEMU -object tls-creds-x509,id=tls0,dir=/home/berrange/qemutls,\
                      priority="NORMAL:-VERS-SSL3.0" \
              ..other args...
      
      If creating tls-creds-anon, whatever priority the user specifies
      will always have "+ANON-DH" appended to it, since that's mandatory
      to make the anonymous credentials work.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      13f12430
    • D
      crypto: implement sha224, sha384, sha512 and ripemd160 hashes · 9164b897
      Daniel P. Berrange 提交于
      Wire up the nettle and gcrypt hash backends so that they can
      support the sha224, sha384, sha512 and ripemd160 hash algorithms.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      9164b897
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160704' into staging · 3173a1fd
      Peter Maydell 提交于
      target-arm queue:
       * fix semihosting SYS_HEAPINFO call for A64 guests
       * fix crash if guest tries to write to ROM on imx boards
       * armv7m_nvic: fix crash for debugger reads from some registers
       * virt: mark PCIe host controller as dma-coherent in the DT
       * add data-driven register API
       * Xilinx Zynq: add devcfg device model
       * m25p80: fix various bugs
       * ast2400: add SMC controllers and SPI flash slaves
      
      # gpg: Signature made Mon 04 Jul 2016 13:17:34 BST
      # gpg:                using RSA key 0x3C2525ED14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * remotes/pmaydell/tags/pull-target-arm-20160704: (23 commits)
        ast2400: create SPI flash slaves
        ast2400: add SPI flash slaves
        ast2400: add SMC controllers (FMC and SPI)
        m25p80: qdev-ify drive property
        m25p80: change cur_addr to 32 bit integer
        m25p80: avoid out of bounds accesses
        m25p80: do not put iovec on the stack
        ssi: change ssi_slave_init to be a realize ops
        xilinx_zynq: Connect devcfg to the Zynq machine model
        dma: Add Xilinx Zynq devcfg device model
        register: Add block initialise helper
        register: QOMify
        register: Define REG and FIELD macros
        register: Add Memory API glue
        register: Add Register API
        bitops: Add MAKE_64BIT_MASK macro
        hw/arm/virt: mark the PCIe host controller as DMA coherent in the DT
        armv7m_nvic: Use qemu_get_cpu(0) instead of current_cpu
        memory: Assert that memory_region_init_rom_device() ops aren't NULL
        imx: Use memory_region_init_rom() for ROMs
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3173a1fd
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-seabios-20160704-1' into staging · 9b9611c8
      Peter Maydell 提交于
      seabios: update from 1.9.1 to 1.9.3
      
      # gpg: Signature made Mon 04 Jul 2016 10:29:47 BST
      # gpg:                using RSA key 0x4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/pull-seabios-20160704-1:
        seabios: update binaries from 1.9.1 to 1.9.3
        seabios: update 128k config
        bios: Add fast variant of SeaBIOS for use with -kernel on x86.
        seabios: update submodule from 1.9.1 to 1.9.3
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9b9611c8
    • C
      ast2400: create SPI flash slaves · e1ad9bc4
      Cédric Le Goater 提交于
      A set of SPI flash slaves is attached under the flash controllers of
      the palmetto platform. "n25q256a" flash modules are used for the BMC
      and "mx25l25635e" for the host. These types are common in the
      OpenPower ecosystem.
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Message-id: 1467138270-32481-9-git-send-email-clg@kaod.org
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e1ad9bc4
    • C
      ast2400: add SPI flash slaves · 924ed163
      Cédric Le Goater 提交于
      Each controller on the ast2400 has a memory range on which it maps its
      flash module slaves. Each slave is assigned a memory segment for its
      mapping that can be changed at bootime with the Segment Address
      Register. This is not supported in the current implementation so we
      are using the defaults provided by the specs.
      
      Each SPI flash slave can then be accessed in two modes: Command and
      User. When in User mode, accesses to the memory segment of the slaves
      are translated in SPI transfers. When in Command mode, the HW
      generates the SPI commands automatically and the memory segment is
      accessed as if doing a MMIO. Other SPI controllers call that mode
      linear addressing mode.
      
      For this purpose, we are adding below each crontoller an array of
      structs gathering for each SPI flash module, a segment rank, a
      MemoryRegion to handle the memory accesses and the associated SPI
      slave device, which should be a m25p80.
      
      Only the User mode is supported for now but we are preparing ground
      for the Command mode. The framework is sufficient to support Linux.
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Message-id: 1467138270-32481-8-git-send-email-clg@kaod.org
      [PMM: Use g_new0() rather than g_malloc0()]
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      924ed163