1. 04 4月, 2011 3 次提交
  2. 02 4月, 2011 3 次提交
    • R
      libcacard: initial commit · 111a38b0
      Robert Relyea 提交于
      libcacard emulates a Common Access Card (CAC) which is a standard
      for smartcards. It is used by the emulated ccid card introduced in
      a following patch. Docs are available in docs/libcacard.txt
      Signed-off-by: NAlon Levy <alevy@redhat.com>
      
      ---
      
      changes from v24->v25:
       * Fix out of tree builds.
       * Fix build with linux-user targets.
      
      changes from v23->v24: (Jes Sorensen review 2)
       * Makefile.target: use obj-$(CONFIG_*) +=
       * remove unrequired includes, include qemu-common before qemu-thread
        * required adding #define NO_NSPR_10_SUPPORT (harmless)
      
      changes from v22->v23:
       * configure fixes: (reported by Stefan Hajnoczi)
        * test a = b, not a == b (second isn't portable)
        * quote $source_path in case it contains spaces
         - this doesn't really help since there are many other places
           that need similar fixes, not introduced by this patch.
      
      changes from v21->v22:
       * fix configure to not link libcacard if nss not found
          (reported by Stefan Hajnoczi)
       * fix vscclient linkage with simpletrace backend
          (reported by Stefan Hajnoczi)
       * card_7816.c: add missing break in ERROR_DATA_NOT_FOUND
          (reported by William van de Velde)
      
      changes from v20->v21: (Jes Sorensen review)
       * use qemu infrastructure: qemu-thread, qemu-common (qemu_malloc
        and qemu_free), error_report
       * assert instead of ASSERT
       * cosmetic fixes
       * use strpbrk and isspace
       * add --disable-nss --enable-nss here, instead of in the final patch.
       * split vscclient, passthru and docs to following patches.
      
      changes from v19->v20:
       * checkpatch.pl
      
      changes from v15->v16:
      
      Build:
       * don't erase self with distclean
       * fix make clean after make distclean
       * Makefile: make vscclient link quiet
      
      Behavioral:
       * vcard_emul_nss: load coolkey in more situations
       * vscclient:
        * use hton,ntoh
        * send init on connect, only start vevent thread on response
        * read payload after header check, before type switch
        * remove Reconnect
        * update for vscard_common changes, empty Flush implementation
      
      Style/Whitespace:
       * fix wrong variable usage
       * remove unused variable
       * use only C style comments
        * add copyright header
        * fix tabulation
      Signed-off-by: NAlon Levy <alevy@redhat.com>
      
      libcacard: fix out of tree builds
      111a38b0
    • A
      usb-ccid: add CCID bus · 36707144
      Alon Levy 提交于
      A CCID device is a smart card reader. It is a USB device, defined at [1].
      This patch introduces the usb-ccid device that is a ccid bus. Next patches will
      introduce two card types to use it, a passthru card and an emulated card.
      
       [1] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_Rev110.
      Signed-off-by: NAlon Levy <alevy@redhat.com>
      
      ---
      
      changes from v20->v21: (Jes Sorenson review)
       * cosmetic changes - fix multi line comments.
       * reorder fields in USBCCIDState
       * add reference to COPYING
       * add --enable-smartcard and --disable-smartcard here (moved
       from last patch)
      
      changes from v19->v20:
       * checkpatch.pl
      
      changes from v18->v19:
       * merged: ccid.h: add copyright, fix define and remove non C89 comments
       * add qdev.desc
      
      changes from v15->v16:
      
      Behavioral changes:
       * fix abort on client answer after card remove
       * enable migration
       * remove side affect code from asserts
       * return consistent self-powered state
       * mask out reserved bits in ccid_set_parameters
       * add missing abRFU in SetParameters (no affect on linux guest)
      
      whitefixes / comments / consts defines:
       * remove stale comment
       * remove ccid_print_pending_answers if no DEBUG_CCID
       * replace printf's with DPRINTF, remove DEBUG_CCID, add verbosity defines
       * use error_report
       * update copyright (most of the code is not original)
       * reword known bug comment
       * add missing closing quote in comment
       * add missing whitespace on one line
       * s/CCID_SetParameter/CCID_SetParameters/
       * add comments
       * use define for max packet size
      
      Comment for "return consistent self-powered state":
      
      the Configuration Descriptor bmAttributes claims we are self powered,
      but we were returning not self powered to USB_REQ_GET_STATUS control message.
      
      In practice, this message is not sent by a linux 2.6.35.10-74.fc14.x86_64
      guest (not tested on other guests), unless you issue lsusb -v as root (for
      example).
      36707144
    • D
      Implement hcall based RTAS for pSeries machines · 39ac8455
      David Gibson 提交于
      On pSeries machines, operating systems can instantiate "RTAS" (Run-Time
      Abstraction Services), a runtime component of the firmware which implements
      a number of low-level, infrequently used operations.  On logical partitions
      under a hypervisor, many of the RTAS functions require hypervisor
      privilege.  For simplicity, therefore, hypervisor systems typically
      implement the in-partition RTAS as just a tiny wrapper around a hypercall
      which actually implements the various RTAS functions.
      
      This patch implements such a hypercall based RTAS for our emulated pSeries
      machine.  A tiny in-partition "firmware" calls a new hypercall, which
      looks up available RTAS services in a table.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      39ac8455
  3. 22 3月, 2011 3 次提交
  4. 13 3月, 2011 1 次提交
  5. 07 3月, 2011 2 次提交
  6. 23 2月, 2011 1 次提交
  7. 21 2月, 2011 1 次提交
  8. 20 2月, 2011 1 次提交
    • A
      target-i386: set target_phys_bits to 64 · 71deff27
      Aurelien Jarno 提交于
      qemu i386 used to support more than 4GB of RAM through PAE, but it has
      been disabled for an unknown reason. Reenable it.
      
      Note that simply running qemu x86_64 and emulating a 32-bit CPU is not
      a solution to this problem as it is about 15% slower (it needs to
      emulate 64 bit registers even if half of them are not used). On the
      other hand, I haven't seen any measurable impact by switching
      target_phys_bits to 64.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      71deff27
  9. 17 2月, 2011 2 次提交
    • L
      linux-user: Define target alignment size · c2e3dee6
      Laurent Vivier 提交于
      Datatype alignment can be found using following application:
      
      int main(void)
      {
      	printf("alignof(short) %ld\n", __alignof__(short));
      	printf("alignof(int) %ld\n", __alignof__(int));
      	printf("alignof(long) %ld\n", __alignof__(long));
      	printf("alignof(long long) %ld\n", __alignof__(long long));
      }
      
      This patch includes following alignments:
      
      i386
      
         alignof(short) 2
         alignof(int) 4
         alignof(long) 4
         alignof(long long) 8
      
       x86_64
      
         alignof(short) 2
         alignof(int) 4
         alignof(long) 8
         alignof(long long) 8
      
       arm
      
         alignof(short) 2
         alignof(int) 4
         alignof(long) 4
         alignof(long long) 4
      
       m68k (680x0)
      
         alignof(short) 2
         alignof(int) 2
         alignof(long) 2
         alignof(long long) 2
      
       mips
      
         alignof(short) 2
         alignof(int) 4
         alignof(long) 4
         alignof(long long) 8
      
       ppc
      
         alignof(short) 2
         alignof(int) 4
         alignof(long) 4
         alignof(long long) 8
      
      for other targets, use by default (2,4,4,8).
      
      Please, update for your favorite target...
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NRiku Voipio <riku.voipio@nokia.com>
      c2e3dee6
    • P
      linux-user: Support the epoll syscalls · 3b6edd16
      Peter Maydell 提交于
      Support the epoll family of syscalls: epoll_create(), epoll_create1(),
      epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1()
      and epoll_pwait() are later additions, so we have to test separately
      in configure for their presence.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NRiku Voipio <riku.voipio@nokia.com>
      3b6edd16
  10. 14 2月, 2011 1 次提交
    • J
      kvm: Fix race between timer signals and vcpu entry under !IOTHREAD · de758970
      Jan Kiszka 提交于
      Found by Stefan Hajnoczi: There is a race in kvm_cpu_exec between
      checking for exit_request on vcpu entry and timer signals arriving
      before KVM starts to catch them. Plug it by blocking both timer related
      signals also on !CONFIG_IOTHREAD and process those via signalfd.
      
      As this fix depends on real signalfd support (otherwise the timer
      signals only kick the compat helper thread, and the main thread hangs),
      we need to detect the invalid constellation and abort configure.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      CC: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      de758970
  11. 30 1月, 2011 1 次提交
  12. 24 1月, 2011 1 次提交
  13. 23 1月, 2011 1 次提交
  14. 22 1月, 2011 1 次提交
  15. 21 1月, 2011 1 次提交
  16. 15 1月, 2011 17 次提交