Trivial patches for June 9 to 22 2012
Subsystems (2)
The following changes since commit 47ecbdf07ed2c37bdfd2d77137d01bb319ce13da:
libcacard: build fixes (2012-06-21 20:04:24 +0000)
are available in the git repository at:
git://github.com/stefanha/qemu.git trivial-patches
for you to fetch changes up to 6a69226f22011673dbce99d5e32cfeaad5bff426:
tci: Support INDEX_op_bswap64_i64 (2012-06-22 10:34:21 +0100)
----------------------------------------------------------------
Andreas Färber (2):
Makefile.user: Define CONFIG_USER_ONLY for libuser/
libqtest: Fix socket_accept() to pass address_len
Frédéric Boiteux (1):
Install 'bepo' keymap already included in Qemu source
Peter A. G. Crosthwaite (1):
arm_gic: Send dbg msgs to stderr not stdout
Peter Maydell (1):
Makefile.hw: avoid overly large 'make clean' rm command
Stefan Weil (7):
Makefile: Remove BUILD_DIR from qapi-dir
Makefile: Remove macro qapi-dir
qemu-config: Use QEMU instead of Qemu
checkpatch: Add QEMU specific rule
configure: Fix typo
target-i386: Use QEMU instead of Qemu
tci: Support INDEX_op_bswap64_i64
Makefile | 24 ++++++++++++------------ Makefile.hw | 4 ++-- Makefile.user | 1 + configure | 2 +- hw/arm_gic.c | 2 +- qemu-config.h | 2 +- scripts/checkpatch.pl | 5 +++++ target-i386/cpu.c | 2 +- tci.c | 1 - tests/libqtest.c | 1 + 10 files changed, 25 insertions(+), 19 deletions(-)
Signature · 1 line
1.7.10
PATCH 1/12 Install 'bepo' keymap already included in Qemu source
From: Frédéric Boiteux <[email protected]>
The 'bepo' layout (a french dvorak-like keyboard layout) was added about one year ago, (see commit 2a3c633c1eb8692716220195b6d3fe78b7e411d0), but I missed to declare to install it.
--- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
@@ -250,7 +250,8 @@ distclean: clean KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ ar de en-us fi fr-be hr it lv nl pl ru th \ -common de-ch es fo fr-ca hu ja mk nl-be pt sl tr +common de-ch es fo fr-ca hu ja mk nl-be pt sl tr \ +bepo ifdef INSTALL_BLOBS BLOBS=bios.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
Signature · 1 line
1.7.10
PATCH 2/12 Makefile: Remove BUILD_DIR from qapi-dir
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
qapi-dir does not need an absolute path. All other build directories are relative. When BUILD_DIR is removed, the build output looks better (no long lines with absolute paths when everything else uses short lines):
GEN qapi-generated/qga-qapi-types.c CC qapi-generated/qga-qapi-types.o GEN qapi-generated/qga-qapi-visit.c CC qapi-generated/qga-qapi-visit.o GEN qapi-generated/qga-qmp-marshal.c CC qapi-generated/qga-qmp-marshal.o
Using a relative path also avoids potential problems when BUILD_DIR includes blanks.
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -171,7 +171,7 @@ fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $@") -qapi-dir := $(BUILD_DIR)/qapi-generated +qapi-dir := qapi-generated qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir)
Signature · 1 line
1.7.10
PATCH 3/12 Makefile: Remove macro qapi-dir
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
As qapi-dir was now a constant, it can be replaced by its value.
--- Makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)
Makefile +10 -11
@@ -171,9 +171,8 @@ fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $@") -qapi-dir := qapi-generated qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) -qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir) +qemu-ga$(EXESUF): QEMU_CFLAGS += -I qapi-generated gen-out-type = $(subst .,-,$(suffix $@))
@@ -181,15 +180,15 @@ ifneq ($(wildcard config-host.mak),) include $(SRC_PATH)/tests/Makefile endif -$(qapi-dir)/qga-qapi-types.c $(qapi-dir)/qga-qapi-types.h :\ +qapi-generated/qga-qapi-types.c qapi-generated/qga-qapi-types.h :\ $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") -$(qapi-dir)/qga-qapi-visit.c $(qapi-dir)/qga-qapi-visit.h :\ + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o qapi-generated -p "qga-" < $<, " GEN $@") +qapi-generated/qga-qapi-visit.c qapi-generated/qga-qapi-visit.h :\ $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") -$(qapi-dir)/qga-qmp-commands.h $(qapi-dir)/qga-qmp-marshal.c :\ + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o qapi-generated -p "qga-" < $<, " GEN $@") +qapi-generated/qga-qmp-commands.h qapi-generated/qga-qmp-marshal.c :\ $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -o qapi-generated -p "qga-" < $<, " GEN $@") qapi-types.c qapi-types.h :\ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py
@@ -201,8 +200,8 @@ qmp-commands.h qmp-marshal.c :\ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -m -o "." < $<, " GEN $@") -QGALIB_OBJ=$(addprefix $(qapi-dir)/, qga-qapi-types.o qga-qapi-visit.o qga-qmp-marshal.o) -QGALIB_GEN=$(addprefix $(qapi-dir)/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h) +QGALIB_OBJ=$(addprefix qapi-generated/, qga-qapi-types.o qga-qapi-visit.o qga-qmp-marshal.o) +QGALIB_GEN=$(addprefix qapi-generated/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h) $(QGALIB_OBJ): $(QGALIB_GEN) $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
@@ -226,7 +225,7 @@ clean: rm -f trace-dtrace.h trace-dtrace.h-timestamp rm -f $(foreach f,$(GENERATED_HEADERS),$(f) $(f)-timestamp) rm -f $(foreach f,$(GENERATED_SOURCES),$(f) $(f)-timestamp) - rm -rf $(qapi-dir) + rm -rf qapi-generated $(MAKE) -C tests/tcg clean for d in $(ALL_SUBDIRS) $(QEMULIBS) libcacard; do \ if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
Signature · 1 line
1.7.10
PATCH 4/12 Makefile.user: Define CONFIG_USER_ONLY for libuser/
In reply to Stefan HajnocziFrom: Andreas Färber <[email protected]>
In *-*-user/ build dirs CONFIG_USER_ONLY is defined via config-target.h. In libuser/ it is not defined.
Add it via QEMU_CFLAGS.
--- Makefile.user | 1 + 1 file changed, 1 insertion(+)
Makefile.user +1 -0
@@ -10,6 +10,7 @@ $(call set-vpath, $(SRC_PATH)) QEMU_CFLAGS+=-I.. QEMU_CFLAGS += -I$(SRC_PATH)/include +QEMU_CFLAGS += -DCONFIG_USER_ONLY include $(SRC_PATH)/Makefile.objs
Signature · 1 line
1.7.10
PATCH 5/12 libqtest: Fix socket_accept() to pass address_len
In reply to Stefan HajnocziFrom: Andreas Färber <[email protected]>
accept() expects address_len to point to the length of the sockaddr on input. Initialize it accordingly.
Resolves an assertion due to EFAULT on illumos.
--- tests/libqtest.c | 1 + 1 file changed, 1 insertion(+)
tests/libqtest.c +1 -0
@@ -74,6 +74,7 @@ static int socket_accept(int sock)socklen_t addrlen;int ret; + addrlen =sizeof (addr);do { ret =accept (sock, (struct sockaddr *)&addr, &addrlen); }while (ret ==-1 && errno ==EINTR );
Signature · 1 line
1.7.10
PATCH 6/12 qemu-config: Use QEMU instead of Qemu
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
This new 'Qemu' was recently added.
Replace it by the official all upper case 'QEMU'.
--- qemu-config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-config.h +1 -1
@@ -19,7 +19,7 @@ int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);int qemu_read_config_file (const char *filename); -/* Read default Qemu config files +/* Read default QEMU config files */ int qemu_read_default_config_files (bool userconfig);
Signature · 1 line
1.7.10
PATCH 7/12 checkpatch: Add QEMU specific rule
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
The new rule detects two wrong variants of QEMU.
It was tested with commit b5a8fe5e.
--- scripts/checkpatch.pl | 5 +++++ 1 file changed, 5 insertions(+)
scripts/checkpatch.pl +5 -0
@@ -2849,6 +2849,11 @@ sub process { ERROR("lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr); } } + +# QEMU specific tests + if ($rawline =~ /\b(?:Qemu|QEmu)\b/) { + WARN("use QEMU instead of Qemu or QEmu\n" . $herecurr); + } } # If we have no input at all, then there is nothing to report on
Signature · 1 line
1.7.10
PATCH 8/12 arm_gic: Send dbg msgs to stderr not stdout
In reply to Stefan HajnocziFrom: "Peter A. G. Crosthwaite" <[email protected]>
--- hw/arm_gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm_gic.c +1 -1
@@ -35,7 +35,7 @@#ifdef DEBUG_GIC #define DPRINTF (fmt, ...) \ -do { printf("arm_gic: " fmt , ## __VA_ARGS__); } while (0) +do { fprintf(stderr, "arm_gic: " fmt , ## __VA_ARGS__); } while (0)#else #define DPRINTF (fmt, ...) do {} while(0)#endif
Signature · 1 line
1.7.10
PATCH 9/12 configure: Fix typo
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
The typo did not cause an error because open_by_handle_at was only compared to "yes".
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -2808,7 +2808,7 @@ fi ########################################## # check if we have open_by_handle_at -open_by_hande_at=no +open_by_handle_at=no cat > $TMPC << EOF #include <fcntl.h> #if !defined(AT_EMPTY_PATH)
Signature · 1 line
1.7.10
PATCH 10/12 Makefile.hw: avoid overly large 'make clean' rm command
In reply to Stefan HajnocziFrom: Peter Maydell <[email protected]>
Avoid 'make clean' producing an 'rm' command which has a lot of duplicate 'hw//*.o' arguments, by using $(sort $(dir ..)) rather than $(dir $(sort ..)) so Make's sort function will remove the duplicates for us. We can also remove the double '//' safely because $(dir ..) is guaranteed to return a string ending in '/'.
--- Makefile.hw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile.hw +2 -2
@@ -19,8 +19,8 @@ all: $(hw-obj-y) @true clean: - rm -f $(addsuffix /*.o, $(dir $(sort $(hw-obj-y)))) - rm -f $(addsuffix /*.d, $(dir $(sort $(hw-obj-y)))) + rm -f $(addsuffix *.o, $(sort $(dir $(hw-obj-y)))) + rm -f $(addsuffix *.d, $(sort $(dir $(hw-obj-y)))) # Include automatically generated dependency files -include $(patsubst %.o, %.d, $(hw-obj-y))
Signature · 1 line
1.7.10
PATCH 11/12 target-i386: Use QEMU instead of Qemu
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
This new 'QEmu' was recently added.
Replace it by the official all upper case 'QEMU'.
--- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/cpu.c +1 -1
@@ -1303,7 +1303,7 @@ void x86_cpudef_setup(void) builtin_x86_defs[i].flags =1 ;/* Look for specific "cpudef" models that */ -/* have the QEmu version in .model_id */ +/* have the QEMU version in .model_id */ for (j =0 ; j <ARRAY_SIZE (model_with_versions); j++) {if (strcmp (model_with_versions[j], builtin_x86_defs[i].name) ==0 ) {pstrcpy (builtin_x86_defs[i].model_id,sizeof (builtin_x86_defs[i].model_id),"QEMU Virtual CPU version " );
Signature · 1 line
1.7.10
PATCH 12/12 tci: Support INDEX_op_bswap64_i64
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
Running the Windows 7 (64 bit) boot process needs INDEX_op_bswap64_i64. It was already implemented, but untested. Remove the TODO() statement.
--- tci.c | 1 - 1 file changed, 1 deletion(-)
tci.c +0 -1
@@ -1014,7 +1014,6 @@ tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *cpustate, uint8_t *tb_ptr)#endif #if TCG_TARGET_HAS_bswap64_i64case INDEX_op_bswap64_i64: -TODO (); t0 = *tb_ptr++; t1 =tci_read_r64 (&tb_ptr);tci_write_reg64 (t0,bswap64 (t1));
Signature · 1 line
1.7.10