qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL 00/23] TCG and misc patches for 2.7 hard freeze from 2016-07-18
Date: Mon, 18 Jul 2016 13:54:41 +0200	[thread overview]
Message-ID: <ffbd1b13-bf32-5cb0-1109-a8528258ce47@redhat.com> (raw)
In-Reply-To: <CAFEAcA8LqLSfAH9wMqahkWuxAquemCJnVXj=JQxp2ObY4T1TfQ@mail.gmail.com>



On 18/07/2016 13:51, Peter Maydell wrote:
> On 18 July 2016 at 10:27, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> The following changes since commit 6b92bbfe812746fe7841a24c24e6460f5359ce72:
>>
>>   Merge remote-tracking branch 'remotes/mcayland/tags/qemu-openbios-signed' into staging (2016-07-15 16:56:08 +0100)
>>
>> are available in the git repository at:
>>
>>   git://github.com/bonzini/qemu.git tags/for-upstream
>>
>> for you to fetch changes up to 6e5532eb16b1fcc7b6d5a15bc5fc0089c1f776f0:
>>
>>   block/iscsi: allow caching of the allocation map (2016-07-18 11:19:47 +0200)
>>
>> ----------------------------------------------------------------
>> * tb_lock-less
>> * two old patches from prospective GSoC students
>> * i386 -kernel device tree support
>> * Coverity fix
>> * memory usage improvement from Peter
>> * checkpatch fix
>> * g_path_get_dirname cleanup
>> * caching of block status for iSCSI
>>
> 
> Hi. I'm afraid this fails to build on 32-bit:
> 
> In file included from /home/petmay01/qemu/include/qemu/osdep.h:36:0,
>                  from /home/petmay01/qemu/exec.c:19:
> /home/petmay01/qemu/include/exec/exec-all.h: In function 'tb_mark_invalid':
> /home/petmay01/qemu/include/qemu/compiler.h:85:23: error: size of
> array 'qemu_build_bug_on__265' is negative
>      typedef char glue(qemu_build_bug_on__,__LINE__)[(x)?-1:1]
> __attribute__((unused));
>                        ^
> /home/petmay01/qemu/include/qemu/compiler.h:50:21: note: in definition
> of macro 'xglue'
>  #define xglue(x, y) x ## y
>                      ^
> /home/petmay01/qemu/include/qemu/compiler.h:85:18: note: in expansion
> of macro 'glue'
>      typedef char glue(qemu_build_bug_on__,__LINE__)[(x)?-1:1]
> __attribute__((unused));
>                   ^
> /home/petmay01/qemu/include/qemu/atomic.h:63:5: note: in expansion of
> macro 'QEMU_BUILD_BUG_ON'
>      QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *)); \
>      ^
> /home/petmay01/qemu/include/exec/exec-all.h:265:5: note: in expansion
> of macro 'atomic_set'
>      atomic_set(&tb->pc, pc);
>      ^
> /home/petmay01/qemu/include/qemu/compiler.h:85:23: error: size of
> array 'qemu_build_bug_on__266' is negative
>      typedef char glue(qemu_build_bug_on__,__LINE__)[(x)?-1:1]
> __attribute__((unused));
>                        ^
> /home/petmay01/qemu/include/qemu/compiler.h:50:21: note: in definition
> of macro 'xglue'
>  #define xglue(x, y) x ## y
>                      ^
> /home/petmay01/qemu/include/qemu/compiler.h:85:18: note: in expansion
> of macro 'glue'
>      typedef char glue(qemu_build_bug_on__,__LINE__)[(x)?-1:1]
> __attribute__((unused));
>                   ^
> /home/petmay01/qemu/include/qemu/atomic.h:63:5: note: in expansion of
> macro 'QEMU_BUILD_BUG_ON'
>      QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *)); \
>      ^
> /home/petmay01/qemu/include/exec/exec-all.h:266:5: note: in expansion
> of macro 'atomic_set'
>      atomic_set(&tb->cs_base, cs_base);
>      ^
> 
> Looks like an attempt to do an atomic op on a larger-than-host-pointer type.

Hmm, atomic_set should be acceptable even on 64-bit.  I'll fix that up,
atomics are not necessary here because there's always a smp_wmb afterwards.

Paolo

  reply	other threads:[~2016-07-18 11:54 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-18  9:27 [Qemu-devel] [PULL 00/23] TCG and misc patches for 2.7 hard freeze from 2016-07-18 Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 01/23] use g_path_get_dirname instead of dirname Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 02/23] Changed malloc to g_malloc, free to g_free in bsd-user/qemu.h Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 03/23] hw/i386: add device tree support Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 04/23] compiler: never omit assertions if using a static analysis tool Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 05/23] megasas: remove useless check for cmd->frame Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 06/23] checkpatch: consider git extended headers valid patches Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 07/23] exec: avoid realloc in phys_map_node_reserve Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 08/23] cpu-exec: Move down some declarations in cpu_exec() Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 09/23] util/qht: Document memory ordering assumptions Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 10/23] tcg: Pass last_tb by value to tb_find_fast() Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 11/23] tcg: Prepare safe tb_jmp_cache lookup out of tb_lock Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 12/23] tcg: Prepare safe access to tb_flushed " Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 13/23] target-i386: Remove redundant HF_SOFTMMU_MASK Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 14/23] tcg: Introduce tb_mark_invalid() and tb_is_invalid() Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 15/23] tcg: Prepare TB invalidation for lockless TB lookup Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 16/23] tcg: set up tb->page_addr before insertion Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 17/23] tcg: cpu-exec: remove tb_lock from the hot-path Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 18/23] tcg: Avoid bouncing tb_lock between tb_gen_code() and tb_add_jump() Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 19/23] tcg: Merge tb_find_slow() and tb_find_fast() Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 20/23] tcg: rename tb_find_physical() Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 21/23] Move README to markdown Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 22/23] block/iscsi: fix rounding in iscsi_allocationmap_set Paolo Bonzini
2016-07-18  9:27 ` [Qemu-devel] [PULL 23/23] block/iscsi: allow caching of the allocation map Paolo Bonzini
2016-07-18 11:51 ` [Qemu-devel] [PULL 00/23] TCG and misc patches for 2.7 hard freeze from 2016-07-18 Peter Maydell
2016-07-18 11:54   ` Paolo Bonzini [this message]
2016-07-18 11:57     ` Peter Maydell
2016-07-18 11:59       ` Paolo Bonzini
2016-07-18 12:50         ` Peter Maydell
2016-07-18 13:22           ` Paolo Bonzini
2016-07-18 13:41             ` Peter Maydell
2016-07-18 13:59               ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ffbd1b13-bf32-5cb0-1109-a8528258ce47@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).