qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS
@ 2012-06-07 21:50 Harsh Prateek Bora
  2012-06-07 21:50 ` [Qemu-devel] [PATCH 1/2] trace/simple.c: fix deprecated glib2 interface Harsh Prateek Bora
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Harsh Prateek Bora @ 2012-06-07 21:50 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial; +Cc: Harsh Prateek Bora, stefanha, aneesh.kumar

Minor fixes:
============

1) glib2 deprecated g_atomic_int_exchange_and_add in favour of g_atomic_int_add
   since ver 2.30 and therefore build breaks with newer glib2 library.
2) Configure needs to report appropriate error on missing libraries for VirtFS.

Harsh Prateek Bora (2):
  trace/simple.c: fix deprecated glib2 interface
  configure: report appropriate error on missing library

 configure      |    3 ++-
 trace/simple.c |    5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
1.7.10.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PATCH 1/2] trace/simple.c: fix deprecated glib2 interface
  2012-06-07 21:50 [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Harsh Prateek Bora
@ 2012-06-07 21:50 ` Harsh Prateek Bora
  2012-06-07 21:50 ` [Qemu-devel] [PATCH 2/2] configure: report appropriate error on missing library Harsh Prateek Bora
  2012-06-08 10:02 ` [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Harsh Prateek Bora @ 2012-06-07 21:50 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial; +Cc: Harsh Prateek Bora, stefanha, aneesh.kumar


Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
---
 trace/simple.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/trace/simple.c b/trace/simple.c
index 33ae486..b4a3c6e 100644
--- a/trace/simple.c
+++ b/trace/simple.c
@@ -161,8 +161,11 @@ static void trace(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3,
     }
 
     timestamp = get_clock();
-
+#if GLIB_CHECK_VERSION(2, 30, 0)
+    idx = g_atomic_int_add((gint *)&trace_idx, 1) % TRACE_BUF_LEN;
+#else
     idx = g_atomic_int_exchange_and_add((gint *)&trace_idx, 1) % TRACE_BUF_LEN;
+#endif
     trace_buf[idx] = (TraceRecord){
         .event = event,
         .timestamp_ns = timestamp,
-- 
1.7.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PATCH 2/2] configure: report appropriate error on missing library
  2012-06-07 21:50 [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Harsh Prateek Bora
  2012-06-07 21:50 ` [Qemu-devel] [PATCH 1/2] trace/simple.c: fix deprecated glib2 interface Harsh Prateek Bora
@ 2012-06-07 21:50 ` Harsh Prateek Bora
  2012-06-08 10:02 ` [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Harsh Prateek Bora @ 2012-06-07 21:50 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial; +Cc: Harsh Prateek Bora, stefanha, aneesh.kumar


Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
---
 configure |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 76dd57f..e8f0172 100755
--- a/configure
+++ b/configure
@@ -2915,7 +2915,8 @@ if test "$softmmu" = yes ; then
       tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)"
     else
       if test "$virtfs" = yes; then
-        feature_not_found "virtfs"
+        echo "VirtFS is supported only on Linux and requires libcap-devel and libattr-devel"
+        exit 1
       fi
       virtfs=no
     fi
-- 
1.7.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS
  2012-06-07 21:50 [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Harsh Prateek Bora
  2012-06-07 21:50 ` [Qemu-devel] [PATCH 1/2] trace/simple.c: fix deprecated glib2 interface Harsh Prateek Bora
  2012-06-07 21:50 ` [Qemu-devel] [PATCH 2/2] configure: report appropriate error on missing library Harsh Prateek Bora
@ 2012-06-08 10:02 ` Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2012-06-08 10:02 UTC (permalink / raw)
  To: Harsh Prateek Bora; +Cc: qemu-trivial, qemu-devel, aneesh.kumar

On Fri, Jun 08, 2012 at 03:20:41AM +0530, Harsh Prateek Bora wrote:
> Minor fixes:
> ============
> 
> 1) glib2 deprecated g_atomic_int_exchange_and_add in favour of g_atomic_int_add
>    since ver 2.30 and therefore build breaks with newer glib2 library.
> 2) Configure needs to report appropriate error on missing libraries for VirtFS.
> 
> Harsh Prateek Bora (2):
>   trace/simple.c: fix deprecated glib2 interface
>   configure: report appropriate error on missing library
> 
>  configure      |    3 ++-
>  trace/simple.c |    5 ++++-
>  2 files changed, 6 insertions(+), 2 deletions(-)
> 
> -- 
> 1.7.10.2
> 

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-08 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 21:50 [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Harsh Prateek Bora
2012-06-07 21:50 ` [Qemu-devel] [PATCH 1/2] trace/simple.c: fix deprecated glib2 interface Harsh Prateek Bora
2012-06-07 21:50 ` [Qemu-devel] [PATCH 2/2] configure: report appropriate error on missing library Harsh Prateek Bora
2012-06-08 10:02 ` [Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).