Trivial patches for 2014-03-15
Here's another pull request for the trivial-patches queue. This time it does not include Peter's shifts-to-sign-bit patchset, but I'd hope to get it included in the next few days.
All the changes appears to be fine for 2.0 (including the shifts-to-sign-bit series actually).
Please consider applying for 2.0.
Thanks,
/mjt
The following changes since commit 03d51428e2da0188a0adea00cbd713cc1e967e7a:
Merge remote-tracking branch 'remotes/bonzini/scsi-next' into staging (2014-03-14 18:17:25 +0000)
are available in the git repository at:
git://git.corpit.ru/qemu.git tags/trivial-patches-2014-03-15
for you to fetch changes up to 9c749e4dbe65e61e159ad822a4110167c2c108fe:
FSL eTSEC: Fix typo in rx ring (2014-03-15 13:54:18 +0400)
----------------------------------------------------------------
trivial patches for 2014-03-15
----------------------------------------------------------------
Alex Bennée (4):
.travis.yml: add a new build target with non-core devlibs .travis.yml: re-enable lttng user space trace test .travis.yml: trivial whitespace fixup .travis.yml: add IRC notifications for build failures
Cole Robinson (1):
scripts/make-release: Don't distribute .git directories
Fabien Chouteau (1):
FSL eTSEC: Fix typo in rx ring
Gabriel L. Somlo (1):
Add qga/qapi-generated to .gitignore
Laszlo Ersek (1):
sasl: Avoid 'Could not find keytab file' in syslog
Sebastian Huber (1):
hw/timer/grlib_gptimer: Avoid integer overflows
Stefan Weil (4):
misc: Fix typos in comments
tests: Fix 'make test' for i686 hosts (build regression)
audio: Add 'static' attributes to several variables
configure: Don't use __int128_t for clang versions before 3.2
.gitignore | 1 + .travis.yml | 53 +++++++++++++++++++++++++++------------------- configure | 5 +++++ hw/audio/fmopl.c | 6 +++--- hw/intc/arm_gic_kvm.c | 2 +- hw/net/fsl_etsec/rings.c | 8 +++---- hw/timer/grlib_gptimer.c | 4 ++-- qemu.sasl | 4 +++- scripts/make-release | 2 +- target-arm/helper.c | 2 +- target-ppc/int_helper.c | 2 +- tests/tcg/test_path.c | 13 +++++++----- 12 files changed, 61 insertions(+), 41 deletions(-)
[Qemu-devel] [PULL 05/13] .travis.yml: add IRC notifications for build failures
From: Alex Bennée <[email protected]>
I'm trying to avoid spamming the IRC channel (not overly likely as builds take a while). So failure will always be reported but if the build continues to work then the IRC notifications will be quiet.
Note any GitHub based repository with Travis enabled will use this notification. If it proves to be too spammy we may want to ask users not to use Travis themselves although this seems sub-optimal.
--- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+)
.travis.yml +6 -0
@@ -4,6 +4,12 @@ python: compiler: - gcc - clang +notifications: + irc: + channels: + - "irc.oftc.net#qemu" + on_success: change + on_failure: always env: global: - TEST_CMD="make check"
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 01/13] sasl: Avoid 'Could not find keytab file' in syslog
In reply to Michael TokarevFrom: Laszlo Ersek <[email protected]>
The "keytab" specification in "qemu.sasl" only makes sense if "gssapi" is selected in "mech_list". Even if the latter is not done (ie. "gssapi" is not selected), the cyrus-sasl library tries to open the specified keytab file, although nothing has a use for it outside the gssapi backend.
Since the default keytab file "/etc/qemu/krb5.tab" is usually absent, the cyrus-sasl library emits a warning to syslog at startup, which tends to annoy users (who didn't ask for gssapi in the first place).
Comment out the keytab specification per default.
"qemu-doc.texi" already correctly explains how to use "mech_list: gssapi" together with "keytab:".
See also:
- upstream libvirt commit fe772f24,
- Red Hat Bugzilla <https://bugzilla.redhat.com/show_bug.cgi?id=1018434>.
--- qemu.sasl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
qemu.sasl +3 -1
@@ -22,7 +22,9 @@ mech_list: digest-md5 # Some older builds of MIT kerberos on Linux ignore this option & # instead need KRB5_KTNAME env var. # For modern Linux, and other OS, this should be sufficient -keytab: /etc/qemu/krb5.tab +# +# There is no default value here, uncomment if you need this +#keytab: /etc/qemu/krb5.tab # If using digest-md5 for username/passwds, then this is the file # containing the passwds. Use 'saslpasswd2 -a qemu [username]'
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 04/13] .travis.yml: trivial whitespace fixup
In reply to Michael TokarevFrom: Alex Bennée <[email protected]>
Purely cosmetic but satisfies my OCD.
--- .travis.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-)
.travis.yml +17 -17
@@ -14,23 +14,23 @@ env: - GUI_PKGS="libgtk-3-dev libvte-2.90-dev libsdl1.2-dev libpng12-dev libpixman-1-dev" - EXTRA_PKGS="" matrix: - - TARGETS=alpha-softmmu,alpha-linux-user - - TARGETS=arm-softmmu,arm-linux-user - - TARGETS=aarch64-softmmu,aarch64-linux-user - - TARGETS=cris-softmmu - - TARGETS=i386-softmmu,x86_64-softmmu - - TARGETS=lm32-softmmu - - TARGETS=m68k-softmmu - - TARGETS=microblaze-softmmu,microblazeel-softmmu - - TARGETS=mips-softmmu,mips64-softmmu,mips64el-softmmu,mipsel-softmmu - - TARGETS=moxie-softmmu - - TARGETS=or32-softmmu, - - TARGETS=ppc-softmmu,ppc64-softmmu,ppcemb-softmmu - - TARGETS=s390x-softmmu - - TARGETS=sh4-softmmu,sh4eb-softmmu - - TARGETS=sparc-softmmu,sparc64-softmmu - - TARGETS=unicore32-softmmu - - TARGETS=xtensa-softmmu,xtensaeb-softmmu + - TARGETS=alpha-softmmu,alpha-linux-user + - TARGETS=arm-softmmu,arm-linux-user + - TARGETS=aarch64-softmmu,aarch64-linux-user + - TARGETS=cris-softmmu + - TARGETS=i386-softmmu,x86_64-softmmu + - TARGETS=lm32-softmmu + - TARGETS=m68k-softmmu + - TARGETS=microblaze-softmmu,microblazeel-softmmu + - TARGETS=mips-softmmu,mips64-softmmu,mips64el-softmmu,mipsel-softmmu + - TARGETS=moxie-softmmu + - TARGETS=or32-softmmu, + - TARGETS=ppc-softmmu,ppc64-softmmu,ppcemb-softmmu + - TARGETS=s390x-softmmu + - TARGETS=sh4-softmmu,sh4eb-softmmu + - TARGETS=sparc-softmmu,sparc64-softmmu + - TARGETS=unicore32-softmmu + - TARGETS=xtensa-softmmu,xtensaeb-softmmu before_install: - git submodule update --init --recursive - sudo apt-get update -qq
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 02/13] .travis.yml: add a new build target with non-core devlibs
In reply to Michael TokarevFrom: Alex Bennée <[email protected]>
The current builds don't include all the features which are auto-detected and then disabled when the appropriate test packages don't exist. I've added another target that enables all known additional packages for increased coverage. I didn't add it to the core package list to reduce build time.
--- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+)
.travis.yml +4 -0
@@ -46,6 +46,10 @@ matrix: - env: TARGETS=i386-softmmu,x86_64-softmmu EXTRA_CONFIG="--enable-debug --enable-tcg-interpreter" compiler: gcc + # All the extra -dev packages + - env: TARGETS=i386-softmmu,x86_64-softmmu + EXTRA_PKGS="libaio-dev libcap-ng-dev libattr1-dev libbrlapi-dev uuid-dev libusb-1.0.0-dev" + compiler: gcc # Currently configure doesn't force --disable-pie - env: TARGETS=i386-softmmu,x86_64-softmmu EXTRA_CONFIG="--enable-gprof --enable-gcov --disable-pie"
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 03/13] .travis.yml: re-enable lttng user space trace test
In reply to Michael TokarevFrom: Alex Bennée <[email protected]>
This build was disabled while the lttng tracing was broken. Stefan has recently submitted a pull request with it re-enabled.
--- .travis.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
.travis.yml +4 -5
@@ -69,8 +69,7 @@ matrix: EXTRA_CONFIG="--enable-trace-backend=ftrace" TEST_CMD="" compiler: gcc - # This disabled make check for the ftrace backend which needs more setting up - # Currently broken on 12.04 due to mis-packaged liburcu and changed API, will be pulled. - #- env: TARGETS=i386-softmmu,x86_64-softmmu - # EXTRA_PKGS="liblttng-ust-dev liburcu-dev" - # EXTRA_CONFIG="--enable-trace-backend=ust" + - env: TARGETS=i386-softmmu,x86_64-softmmu + EXTRA_PKGS="liblttng-ust-dev liburcu-dev" + EXTRA_CONFIG="--enable-trace-backend=ust" + compiler: gcc
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 13/13] FSL eTSEC: Fix typo in rx ring
In reply to Michael TokarevFrom: Fabien Chouteau <[email protected]>
--- hw/net/fsl_etsec/rings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/net/fsl_etsec/rings.c +2 -2
@@ -592,7 +592,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)/* TODO: Broadcast and Multicast */ -if (bd.flags |BD_INTERRUPT ) { +if (bd.flags &BD_INTERRUPT ) {/* Set RXFx */ etsec->regs[RSTAT ].value |=1 << (7 - ring_nbr);
@@ -601,7 +601,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr) } }else { -if (bd.flags |BD_INTERRUPT ) { +if (bd.flags &BD_INTERRUPT ) {/* Set IEVENT */ ievent_set (etsec,IEVENT_RXB ); }
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 08/13] misc: Fix typos in comments
In reply to Michael TokarevFrom: Stefan Weil <[email protected]>
Codespell found and fixed these new typos:
* doesnt -> doesn't
* funtion -> function
* perfomance -> performance
* remaing -> remaining
A coding style issue (line too long) was fixed manually.
--- hw/intc/arm_gic_kvm.c | 2 +- hw/net/fsl_etsec/rings.c | 4 ++-- target-arm/helper.c | 2 +- target-ppc/int_helper.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
hw/intc/arm_gic_kvm.c +1 -1
@@ -148,7 +148,7 @@ typedef void (*vgic_translate_fn)(GICState *s, int irq, int cpu, uint32_t *field, bool to_kernel);/* synthetic translate function used for clear/set registers to completely -* clear a setting using a clear-register before setting the remaing bits +* clear a setting using a clear-register before setting the remaining bits * using a set-register */ static void translate_clear (GICState *s,int irq,int cpu,uint32_t *field,bool to_kernel)
hw/net/fsl_etsec/rings.c +2 -2
@@ -195,8 +195,8 @@ static void process_tx_fcb(eTSEC *etsec)/* if packet is IP4 and IP checksum is requested */ if (flags &FCB_TX_IP && flags &FCB_TX_CIP ) { -/* do IP4 checksum (TODO This funtion does TCP/UDP checksum but not sure -* if it also does IP4 checksum. */ +/* do IP4 checksum (TODO This function does TCP/UDP checksum +* but not sure if it also does IP4 checksum.) */ net_checksum_calculate (etsec->tx_buffer +8 , etsec->tx_buffer_len -8 ); }
target-arm/helper.c +1 -1
@@ -488,7 +488,7 @@ static const ARMCPRegInfo v6_cp_reginfo[] = {static CPAccessResult pmreg_access (CPUARMState *env,const ARMCPRegInfo *ri) { -/* Perfomance monitor registers user accessibility is controlled +/* Performance monitor registers user accessibility is controlled * by PMUSERENR. */ if (arm_current_pl (env) ==0 && !env->cp15.c9_pmuserenr) {
target-ppc/int_helper.c +1 -1
@@ -2216,7 +2216,7 @@ static int bcd_cmp_mag(ppc_avr_t *a, ppc_avr_t *b)uint8_t dig_a =bcd_get_digit (a, i, &invalid);uint8_t dig_b =bcd_get_digit (b, i, &invalid);if (unlikely (invalid)) { -return 0 ;/* doesnt matter */ +return 0 ;/* doesn't matter */ }else if (dig_a > dig_b) {return 1 ; }else if (dig_a < dig_b) {
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 06/13] hw/timer/grlib_gptimer: Avoid integer overflows
In reply to Michael TokarevFrom: Sebastian Huber <[email protected]>
The GPTIMER uses 32-bit registers. Use a 64-bit operation to get the ptimer count, otherwise we end up with a count of 0 for GPTIMER counter values of 0xffffffff.
Use the GPTIMER counter value for tracing to avoid an overflow of the 32-bit value passed to trace_grlib_gptimer_enable().
--- hw/timer/grlib_gptimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/timer/grlib_gptimer.c +2 -2
@@ -106,9 +106,9 @@ static void grlib_gptimer_enable(GPTimer *timer)/* ptimer is triggered when the counter reach 0 but GPTimer is triggered at underflow. Set count + 1 to simulate the GPTimer behavior. */ -trace_grlib_gptimer_enable (timer->id, timer->counter +1 ); +trace_grlib_gptimer_enable (timer->id, timer->counter); -ptimer_set_count (timer->ptimer, timer->counter +1 ); +ptimer_set_count (timer->ptimer, (uint64_t )timer->counter +1 );ptimer_run (timer->ptimer,1 ); }
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 11/13] configure: Don't use __int128_t for clang versions before 3.2
In reply to Michael TokarevFrom: Stefan Weil <[email protected]>
Those versions don't fully support __int128_t.
--- configure | 5 +++++ 1 file changed, 5 insertions(+)
configure +5 -0
@@ -3822,6 +3822,11 @@ fi int128=no cat > $TMPC << EOF +#if defined(__clang_major__) && defined(__clang_minor__) +# if ((__clang_major__ < 3) || (__clang_major__ == 3) && (__clang_minor__ < 2)) +# error __int128_t does not work in CLANG before 3.2 +# endif +#endif __int128_t a; __uint128_t b; int main (void) {
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 07/13] Add qga/qapi-generated to .gitignore
In reply to Michael TokarevFrom: "Gabriel L. Somlo" <[email protected]>
The folder "qga/qapi-generated" shows up after building QEMU, and gets in the way during e.g. "git add ."; Add it to .gitignore to keep it from accidentally ending up in the wrong place.
--- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -21,6 +21,7 @@ libdis* libuser /linux-headers/asm +/qga/qapi-generated /qapi-generated /qapi-types.[ch] /qapi-visit.[ch]
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 10/13] audio: Add 'static' attributes to several variables
In reply to Michael TokarevFrom: Stefan Weil <[email protected]>
--- hw/audio/fmopl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
hw/audio/fmopl.c +3 -3
@@ -223,13 +223,13 @@ static void *cur_chip = NULL; /* current chip point *//* static OPLSAMPLE *bufL,*bufR; */ static OPL_CH *S_CH ;static OPL_CH *E_CH ; -OPL_SLOT *SLOT7_1 ,*SLOT7_2 ,*SLOT8_1 ,*SLOT8_2 ; +static OPL_SLOT *SLOT7_1 , *SLOT7_2 , *SLOT8_1 , *SLOT8_2 ;static INT32 outd[1 ];static INT32 ams;static INT32 vib; -INT32 *ams_table; -INT32 *vib_table; +static INT32 *ams_table; +static INT32 *vib_table;static INT32 amsIncr;static INT32 vibIncr;static INT32 feedback2;/* connect for SLOT 2 */
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 12/13] scripts/make-release: Don't distribute .git directories
In reply to Michael TokarevFrom: Cole Robinson <[email protected]>
[crobinso@localhost qemu-2.0.0-rc0]$ find . -name .git ./dtc/.git
./pixman/.git
This is already done for the rom submodules.
https://bugs.launchpad.net/qemu/+bug/1224414
--- scripts/make-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/make-release +1 -1
@@ -18,7 +18,7 @@ git clone "${src}" ${destination} pushd ${destination} git checkout "v${version}" git submodule update --init -rm -rf .git roms/*/.git +rm -rf .git roms/*/.git dtc/.git pixman/.git popd tar cfj ${destination}.tar.bz2 ${destination} rm -rf ${destination}
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 09/13] tests: Fix 'make test' for i686 hosts (build regression)
In reply to Michael TokarevFrom: Stefan Weil <[email protected]>
'make test' is broken at least since commit baacf04799ace72a9c735dd9306a1ceaf305e7cf. Several source files were moved to util/, and some of them there split, so add the missing prefix and new files to fix the compiler and linker errors.
There remain more issues, but these changes allow running the test on a Linux i686 host.
--- tests/tcg/test_path.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
tests/tcg/test_path.c +8 -5
@@ -1,12 +1,15 @@/* Test path override code */ #define _GNU_SOURCE#include "config-host.h" -#include "iov.c" -#include "cutils.c" -#include "path.c" -#include "trace.c" +#include "util/cutils.c" +#include "util/hexdump.c" +#include "util/iov.c" +#include "util/path.c" +#include "util/qemu-timer-common.c" +#include "trace/control.c" +#include "../trace/generated-events.c" #ifdef CONFIG_TRACE_SIMPLE -#include "../trace/simple.c" +#include "trace/simple.c" #endif #include <stdarg.h>
Signature · 1 line
1.7.10.4
Peter Maydell
AppliedQuoted 18 lines · Michael Tokarev
Here's another pull request for the trivial-patches queue. This time it does not include Peter's shifts-to-sign-bit patchset, but I'd hope to get it included in the next few days.
All the changes appears to be fine for 2.0 (including the shifts-to-sign-bit series actually).
Please consider applying for 2.0.
Thanks,
/mjt
The following changes since commit
03d51428e2da0188a0adea00cbd713cc1e967e7a:Merge remote-tracking branch 'remotes/bonzini/scsi-next' into staging (2014-03-14 18:17:25 +0000)
Quoted 8 lines
are available in the git repository at:
git://git.corpit.ru/qemu.gittags/trivial-patches-2014-03-15for you to fetch changes up to
9c749e4dbe65e61e159ad822a4110167c2c108fe:FSL eTSEC: Fix typo in rx ring (2014-03-15 13:54:18 +0400)
Applied, thanks.
-- PMM