1. 10 6月, 2014 6 次提交
    • P
      libcacard: improve documentation · 471f7e30
      Paolo Bonzini 提交于
      Using the file-backed smartcard backend is black magic, but it can
      be useful if your only smartcard bricks itself if it is accessed
      the wrong way too many times.
      
      Complete the documentation to include the art of creating certificates
      and using them with QEMU, based on Ray Strode's useful tutorial at
      https://blogs.gnome.org/halfline/2013/09/08/another-smartcard-post/
      but with ccid-card-emulated or vscclient instead of SPICE.
      
      Cc: Ray Strode <rstrode@redhat.com>
      Reviewed-by: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      471f7e30
    • M
      libcacard: actually use symbols file · ae9b65e8
      Michael Tokarev 提交于
      libtool has an argument for .syms file, which is -export-symbols.
      There's no argument `-export-syms', and it looks like at least on
      linux, -export-syms is just ignored.  Use the correct argument,
      -export-symbols, to actually get the right export list.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NAlon Levy <alevy@redhat.com>
      Tested-by: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      ae9b65e8
    • M
      libcacard: replace qemu thread primitives with glib ones · fd25c0e6
      Michael Tokarev 提交于
      Replace QemuMutex with GMutex and QemuCond with GCond
      (with corresponding function changes), to make libcacard
      independent of qemu internal functions.
      
      After this step, none of libcacard internals use any
      qemu-provided symbols.  Maybe it's a good idea to
      stop including qemu-common.h internally too.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NAlon Levy <alevy@redhat.com>
      Tested-by: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fd25c0e6
    • M
      vscclient: use glib thread primitives not qemu · 2a0c46da
      Michael Tokarev 提交于
      Use glib-provided thread primitives in vscclient instead of
      qemu ones, and do not use qemu sockets in there (open-code
      call to WSAStartup() for windows to initialize things).
      
      This way, vscclient becomes more stand-alone, independent on
      qemu internals.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NAlon Levy <alevy@redhat.com>
      Tested-by: NAlon Levy <alevy@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      2a0c46da
    • M
      glib-compat.h: add new thread API emulation on top of pre-2.31 API · 86946a2d
      Michael Tokarev 提交于
      Thread API changed in glib-2.31 significantly.  Before that version,
      conditionals and mutexes were only allocated dynamically, using
      _new()/_free() interface.  in 2.31 and up, they're allocated statically
      as regular variables, and old interface is deprecated.
      
      (Note: glib docs says the new interface is available since version
      2.32, but it was actually introduced in version 2.31).
      
      Create the new interface using old primitives, by providing non-opaque
      definitions of the base types (GCond and GMutex) using GOnces.
      
      Replace #ifdeffery around GCond and GMutex in trace/simple.c and
      coroutine-gthread.c too because it does not work anymore with the new
      glib-compat.h.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      [Use GOnce to support lazy initialization; introduce CompatGMutex
       and CompatGCond.  - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      86946a2d
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140609-1' into staging · 7721a304
      Peter Maydell 提交于
      ```-------------------------------------------------------------
      target-arm queue:
       * support -bios option in vexpress boards
       * register the Cortex-A57 impdef system registers
       * fix handling of UXN bit in ARMv8 page tables
       * complete support of crypto insns in A32/T32
       * implement CRC and crypto insns in A64
       * fix bugs in generic timer control register
      ```
      
      -------------------------------------------------------------
      
      # gpg: Signature made Mon 09 Jun 2014 16:08:26 BST using RSA key ID 14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      
      * remotes/pmaydell/tags/pull-target-arm-20140609-1:
        target-arm: Delete unused iwmmxt_msadb helper
        target-arm: Fix errors in writes to generic timer control registers
        target-arm: A64: Implement two-register SHA instructions
        target-arm: A64: Implement 3-register SHA instructions
        target-arm: A64: Implement AES instructions
        target-arm: A32/T32: Mask CRC value in calling code, not helper
        target-arm: A64: Implement CRC instructions
        target-arm: VFPv4 implies half-precision extension
        target-arm: Clean up handling of ARMv8 optional feature bits
        target-arm: Remove unnecessary setting of feature bits
        target-arm: arm_any_initfn() should never set ARM_FEATURE_AARCH64
        target-arm: A64: Use PMULL feature bit for PMULL
        target-arm: add support for v8 VMULL.P64 instruction
        target-arm: Allow 3reg_wide undefreq to encode more bad size options
        target-arm: add support for v8 SHA1 and SHA256 instructions
        target-arm: Correct handling of UXN bit in ARMv8 LPAE page tables
        target-arm: Prepare cpreg writefns/readfns for EL3/SecExt
        target-arm/cpu64.c: Actually register Cortex-A57 impdef registers
        vexpress: Add support for the -bios flag to provide firmware
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7721a304
  2. 09 6月, 2014 34 次提交