qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 86946a: glib-compat.h: add new thread API emu


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 86946a: glib-compat.h: add new thread API emulation on top...
Date: Wed, 11 Jun 2014 10:30:07 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 86946a2d835614050b90bc8e5c82982fe45deff2
      
https://github.com/qemu/qemu/commit/86946a2d835614050b90bc8e5c82982fe45deff2
  Author: Michael Tokarev <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M coroutine-gthread.c
    M include/glib-compat.h
    M trace/simple.c

  Log Message:
  -----------
  glib-compat.h: add new thread API emulation on top of pre-2.31 API

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: Michael Tokarev <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
[Use GOnce to support lazy initialization; introduce CompatGMutex
 and CompatGCond.  - Paolo]
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 2a0c46da967e5dc8cfe73b1b6fe7a1600c04f461
      
https://github.com/qemu/qemu/commit/2a0c46da967e5dc8cfe73b1b6fe7a1600c04f461
  Author: Michael Tokarev <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M libcacard/vscclient.c

  Log Message:
  -----------
  vscclient: use glib thread primitives not qemu

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: Michael Tokarev <address@hidden>
Reviewed-by: Alon Levy <address@hidden>
Tested-by: Alon Levy <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: fd25c0e6dd1ed2aa932fa7ef814b32457bf270fd
      
https://github.com/qemu/qemu/commit/fd25c0e6dd1ed2aa932fa7ef814b32457bf270fd
  Author: Michael Tokarev <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M libcacard/Makefile
    M libcacard/event.c
    M libcacard/vreader.c

  Log Message:
  -----------
  libcacard: replace qemu thread primitives with glib ones

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: Michael Tokarev <address@hidden>
Reviewed-by: Alon Levy <address@hidden>
Tested-by: Alon Levy <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: ae9b65e873ac189154429a2488add46c33bfe651
      
https://github.com/qemu/qemu/commit/ae9b65e873ac189154429a2488add46c33bfe651
  Author: Michael Tokarev <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M libcacard/Makefile

  Log Message:
  -----------
  libcacard: actually use symbols file

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: Michael Tokarev <address@hidden>
Reviewed-by: Alon Levy <address@hidden>
Tested-by: Alon Levy <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 471f7e30a4acb898a50383516e27bca5521ff542
      
https://github.com/qemu/qemu/commit/471f7e30a4acb898a50383516e27bca5521ff542
  Author: Paolo Bonzini <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M docs/ccid.txt

  Log Message:
  -----------
  libcacard: improve documentation

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 <address@hidden>
Reviewed-by: Alon Levy <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 18e588b197545412cad65f0b07e13c161cac4bea
      
https://github.com/qemu/qemu/commit/18e588b197545412cad65f0b07e13c161cac4bea
  Author: Rick Liu <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: duplicate/incorrect order of -lrt

'-lrt' flag duplication/incorrect order
would cause 'undefined reference to clock_gettime' error during compilation 
time.

Before fix:
... -o qemu-bridge-helper qemu-bridge-helper.o    -lrt -pthread -lgthread-2.0 
-lrt -lglib-2.0
After fix:
... -o qemu-bridge-helper qemu-bridge-helper.o    -pthread -lgthread-2.0 -lrt 
-lglib-2.0

Reference:
http://hi.baidu.com/sanitywolf/item/7a8b69c1e76dd220a0b50ab1

Signed-off-by: Rick Liu <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 99519e677bd605a681a805b0c759ae886d1d5712
      
https://github.com/qemu/qemu/commit/99519e677bd605a681a805b0c759ae886d1d5712
  Author: Cornelia Huck <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: unset interfering variables

The check for big or little endianness relies on grep reporting
match/non-match on the generated binary. If the user specified
--binary-files=without-match in their GREP_OPTIONS, this will fail.

Let's follow what autoconf does and unset GREP_OPTIONS and CLICOLOR_FORCE
at the beginning of the script.

Reported-by: Eugene (jno) Dvurechenski <address@hidden>
Suggested-by: Markus Armbruster <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 1c33ac5716af0840d8a2c568a47bcbee51946d69
      
https://github.com/qemu/qemu/commit/1c33ac5716af0840d8a2c568a47bcbee51946d69
  Author: Fam Zheng <address@hidden>
  Date:   2014-06-10 (Tue, 10 Jun 2014)

  Changed paths:
    M rules.mak

  Log Message:
  -----------
  rules.mak: Rewrite unnest-vars

The macro unnest-vars is the most important, complicated but hard to
track magic in QEMU's build system.

Rewrite it in a (hopefully) clearer way, with more comments, to make it
easier to understand and maintain.

Remove DSO_CFLAGS and module-objs-m that are not used.

A bonus fix of this version is, per object variables are properly
protected in save-objs and load-objs, before including sub-dir
Makefile.objs, just as nested variables are. So the occasional same
object name from different directory levels won't step on each other's
foot.

Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e
      
https://github.com/qemu/qemu/commit/c5cb1afc4675bf5ff66e7a149d2a8cffba2eaa9e
  Author: Peter Maydell <address@hidden>
  Date:   2014-06-11 (Wed, 11 Jun 2014)

  Changed paths:
    M configure
    M coroutine-gthread.c
    M docs/ccid.txt
    M include/glib-compat.h
    M libcacard/Makefile
    M libcacard/event.c
    M libcacard/vreader.c
    M libcacard/vscclient.c
    M rules.mak
    M trace/simple.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/bonzini/configure' into staging

* remotes/bonzini/configure:
  rules.mak: Rewrite unnest-vars
  configure: unset interfering variables
  configure: duplicate/incorrect order of -lrt
  libcacard: improve documentation
  libcacard: actually use symbols file
  libcacard: replace qemu thread primitives with glib ones
  vscclient: use glib thread primitives not qemu
  glib-compat.h: add new thread API emulation on top of pre-2.31 API

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/b780bf8eff43...c5cb1afc4675

reply via email to

[Prev in Thread] Current Thread [Next in Thread]