Skip to contentSkip to conversation

Trivial patches for 20 to 26 March 2012

GIT PULL In review Stefan Hajnoczi 4 participants 9 messages Mar 26, 2012 Kbuild

lore
Share & tools
lore
#1 lore raw

PATCH 1/5 vl.c: fix '-cpu ?' segfault

In reply to Stefan Hajnoczi

From: Eduardo Habkost <[email protected]>

Fix stupid copy&paste mistake at commit ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept "optarg" on the cpu_list() call.

---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
vl.c +1 -1
index 112b0e0..0fccf50 100644
@@ -3196,7 +3196,7 @@ int main(int argc, char **argv, char **envp)
     cpudef_init();
 
     if (cpu_model && *cpu_model == '?') {
-        list_cpus(stdout, &fprintf, optarg);
+        list_cpus(stdout, &fprintf, cpu_model);
         exit(0);
     }
 
Signature · 1 line
1.7.9.1
#3 lore raw

PATCH 3/5 qapi: remove print statements from test-qmp-commands

In reply to Stefan Hajnoczi

From: Michael Roth <[email protected]>

This is necessary for nicer make check integration.

---
 test-qmp-commands.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
test-qmp-commands.c +0 -3
index fa5a7bd..60cbf01 100644
@@ -46,7 +46,6 @@ static void test_dispatch_cmd(void)
     resp = qmp_dispatch(QOBJECT(req));
     assert(resp != NULL);
     assert(!qdict_haskey(qobject_to_qdict(resp), "error"));
-    g_print("\nresp: %s\n", qstring_get_str(qobject_to_json(resp)));
 
     qobject_decref(resp);
     QDECREF(req);
@@ -63,7 +62,6 @@ static void test_dispatch_cmd_error(void)
     resp = qmp_dispatch(QOBJECT(req));
     assert(resp != NULL);
     assert(qdict_haskey(qobject_to_qdict(resp), "error"));
-    g_print("\nresp: %s\n", qstring_get_str(qobject_to_json_pretty(resp)));
 
     qobject_decref(resp);
     QDECREF(req);
@@ -92,7 +90,6 @@ static void test_dispatch_cmd_io(void)
     resp = qmp_dispatch(QOBJECT(req));
     assert(resp != NULL);
     assert(!qdict_haskey(qobject_to_qdict(resp), "error"));
-    g_print("\nresp: %s\n", qstring_get_str(qobject_to_json_pretty(resp)));
 
     qobject_decref(resp);
     QDECREF(req);
Signature · 1 line
1.7.9.1
#0 lore raw

The following changes since commit cb1977d308f6e1d6bf398d42e6148187b82456c1:

tcg-sparc: Add debug_frame support. (2012-03-24 19:57:58 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git trivial-patches

for you to fetch changes up to 95b752bc32ccabe48430c0d0062b7c6947d864d0:

trace-events: Fix broken build caused by wrong format specifier (2012-03-26 12:34:20 +0100)

----------------------------------------------------------------
Eduardo Habkost (1):
vl.c: fix '-cpu ?' segfault

Michael Roth (3):
test: remove qemu-ga reference
qapi: remove print statements from test-qmp-commands
test: add test-qmp-commands to make check

Stefan Weil (1):
trace-events: Fix broken build caused by wrong format specifier

 Makefile            |    1 +
 test-qmp-commands.c |    3 ---
 tests/Makefile      |    3 ++-
 trace-events        |    2 +-
 vl.c                |    2 +-
 5 files changed, 5 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.9.1
#2 lore raw

PATCH 2/5 test: remove qemu-ga reference

From: Michael Roth <[email protected]>

This was added by mistake a while back.

---
 Makefile       |    1 +
 tests/Makefile |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
Makefile +1 -0
index 8d6b558..d8e1f36 100644
@@ -173,6 +173,7 @@ qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
 $(qapi-obj-y): $(GENERATED_HEADERS)
 qapi-dir := $(BUILD_DIR)/qapi-generated
 qemu-ga$(EXESUF): LIBS = $(LIBS_QGA)
+qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir)
 
 gen-out-type = $(subst .,-,$(suffix $@))
 
tests/Makefile +1 -1
index c78ade1..354fdbb 100644
@@ -17,7 +17,7 @@ test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y)
 
 test-qmp-input-visitor.o test-qmp-output-visitor.o \
 test-string-input-visitor.o test-string-output-visitor.o \
-	test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir)
+	test-qmp-commands.o: QEMU_CFLAGS += -I $(qapi-dir)
 
 $(qapi-dir)/test-qapi-types.c $(qapi-dir)/test-qapi-types.h :\
 $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
Signature · 1 line
1.7.9.1
#5 lore raw

PATCH 5/5 trace-events: Fix broken build caused by wrong format specifier

In reply to Stefan Hajnoczi

From: Stefan Weil <[email protected]>

mem is an uint64_t value, so %lx was wrong.

---
 trace-events |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
trace-events +1 -1
index 70f059d..db2cd39 100644
@@ -726,7 +726,7 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p"
 # hw/qxl.c
 disable qxl_interface_set_mm_time(int qid, uint32_t mm_time) "%d %d"
 disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u"
-qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %dx%d mem=%lx %d,%d"
+qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%u mem=%" PRIx64 " %u,%u"
 qxl_create_guest_primary_rest(int qid, int32_t stride, uint32_t type, uint32_t flags) "%d %d,%d,%d"
 qxl_destroy_primary(int qid) "%d"
 qxl_enter_vga_mode(int qid) "%d"
Signature · 1 line
1.7.9.1
#4 lore raw

PATCH 4/5 test: add test-qmp-commands to make check

In reply to Stefan Hajnoczi

From: Michael Roth <[email protected]>

All the deps are here but the test was never added to the list of tests for make check

---
 tests/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tests/Makefile +1 -0
index 354fdbb..94ea342 100644
@@ -3,6 +3,7 @@ export SRC_PATH
 CHECKS = check-qdict check-qfloat check-qint check-qstring check-qlist
 CHECKS += check-qjson test-qmp-output-visitor test-qmp-input-visitor
 CHECKS += test-string-input-visitor test-string-output-visitor test-coroutine
+CHECKS += test-qmp-commands
 CHECKS += $(SRC_PATH)/tests/qemu-iotests-quick.sh
 
 check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS)
Signature · 1 line
1.7.9.1
#6 lore raw

Re: [Qemu-devel] [PATCH 5/5] trace-events: Fix broken build caused by wrong format specifier

In reply to Stefan Hajnoczi

Am 26.03.2012 14:07, schrieb Stefan Hajnoczi:

Quoted 5 lines

From: Stefan Weil <[email protected]>

mem is an uint64_t value, so %lx was wrong.

Alon, you replied with an "ACK". Should an Acked-by be inserted here?

Andreas

Quoted 18 lines
---
 trace-events |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
trace-events +1 -1
index 70f059d..db2cd39 100644
@@ -726,7 +726,7 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p"
 # hw/qxl.c
 disable qxl_interface_set_mm_time(int qid, uint32_t mm_time) "%d %d"
 disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u"
-qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %dx%d mem=%lx %d,%d"
+qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%u mem=%" PRIx64 " %u,%u"
 qxl_create_guest_primary_rest(int qid, int32_t stride, uint32_t type, uint32_t flags) "%d %d,%d,%d"
 qxl_destroy_primary(int qid) "%d"
 qxl_enter_vga_mode(int qid) "%d"
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#7 lore raw

Re: [Qemu-devel] [PATCH 5/5] trace-events: Fix broken build caused by wrong format specifier

Quoted 8 lines · Andreas Färber

Am 26.03.2012 14:07, schrieb Stefan Hajnoczi:

Quoted 5 lines

From: Stefan Weil <[email protected]>

mem is an uint64_t value, so %lx was wrong.

Alon, you replied with an "ACK". Should an Acked-by be inserted here?

Yes, should have been verbose, sorry. But I don't think it matters much for this kind of small patch.

Quoted 25 lines

Andreas

Quoted 18 lines
---
 trace-events |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
trace-events +1 -1
index 70f059d..db2cd39 100644
@@ -726,7 +726,7 @@ ppm_save(const char *filename, void *display_surface) "%s surface=%p"
 # hw/qxl.c
 disable qxl_interface_set_mm_time(int qid, uint32_t mm_time) "%d %d"
 disable qxl_io_write_vga(int qid, const char *mode, uint32_t addr, uint32_t val) "%d %s addr=%u val=%u"
-qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %dx%d mem=%lx %d,%d"
+qxl_create_guest_primary(int qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%u mem=%" PRIx64 " %u,%u"
 qxl_create_guest_primary_rest(int qid, int32_t stride, uint32_t type, uint32_t flags) "%d %d,%d,%d"
 qxl_destroy_primary(int qid) "%d"
 qxl_enter_vga_mode(int qid) "%d"
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#8 lore raw
In reply to Stefan Hajnoczi
Quoted 11 lines · Stefan Hajnoczi

The following changes since commit cb1977d308f6e1d6bf398d42e6148187b82456c1:

   tcg-sparc: Add debug_frame support. (2012-03-24 19:57:58 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git trivial-patches

for you to fetch changes up to 95b752bc32ccabe48430c0d0062b7c6947d864d0:

trace-events: Fix broken build caused by wrong format specifier (2012-03-26 12:34:20 +0100)

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 20 lines

----------------------------------------------------------------
Eduardo Habkost (1):
vl.c: fix '-cpu ?' segfault

Michael Roth (3):
test: remove qemu-ga reference
qapi: remove print statements from test-qmp-commands
test: add test-qmp-commands to make check

Stefan Weil (1):
trace-events: Fix broken build caused by wrong format specifier

  Makefile            |    1 +
  test-qmp-commands.c |    3 ---
  tests/Makefile      |    3 ++-
  trace-events        |    2 +-
  vl.c                |    2 +-
  5 files changed, 5 insertions(+), 6 deletions(-)