Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 3b8c1761f0e1523622e008836d01a6544b1c21ab
      
https://github.com/qemu/qemu/commit/3b8c1761f0e1523622e008836d01a6544b1c21ab
  Author: Igor Mammedov <imamm...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M blockdev.c
    M exec.c
    M include/qemu/queue.h
    M net/filter.c

  Log Message:
  -----------
  qtail: clean up direct access to tqe_prev field

instead of accessing tqe_prev field dircetly outside
of queue.h use macros to check if element is in list
and make sure that afer element is removed from list
tqe_prev field could be used to do the same check.

Signed-off-by: Igor Mammedov <imamm...@redhat.com>
Message-Id: <1469450832-84343-1-git-send-email-imamm...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 9cd1883c0d01813c47e0153459068f22895f4ade
      
https://github.com/qemu/qemu/commit/9cd1883c0d01813c47e0153459068f22895f4ade
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/qemu-sockets.c

  Log Message:
  -----------
  util/qemu-sockets: revert Yoda Conditions to normal

Follow CODING_STYLE

Cc: Daniel P. Berrange <berra...@redhat.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: Paolo Bonzini <pbonz...@redhat.com>

Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1469703004-14800-1-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 260150512156b475e923b853b39c354f6ddd764e
      
https://github.com/qemu/qemu/commit/260150512156b475e923b853b39c354f6ddd764e
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/qemu-sockets.c

  Log Message:
  -----------
  util: fix some coding style issue

Fix some coding style issues found in removing NonBlockingConnectHandler.

Cc: Daniel P. Berrange <berra...@redhat.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: Paolo Bonzini <pbonz...@redhat.com>

Reviwed-by: Daniel P. Berrange <berra...@redhat.com>
Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1469696074-12744-3-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 4b7e69509df2fcbfdab8c62c294dbfcfdab8a6e1
      
https://github.com/qemu/qemu/commit/4b7e69509df2fcbfdab8c62c294dbfcfdab8a6e1
  Author: Sergey Fedorov <serge.f...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c

  Log Message:
  -----------
  tcg: Pass last_tb by value to tb_find_fast()

This is a small clean up. tb_find_fast() is a final consumer of this
variable so no need to pass it by reference. 'last_tb' is always updated
by subsequent cpu_loop_exec_tb() in cpu_exec().

This change also simplifies calling cpu_exec_nocache() in
cpu_handle_exception().

Signed-off-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Message-Id: <20160715175852.30749-3-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 89a16b1e4294e3664667a151c2f70c84dfac6fd9
      
https://github.com/qemu/qemu/commit/89a16b1e4294e3664667a151c2f70c84dfac6fd9
  Author: Sergey Fedorov <serge.f...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c
    M translate-all.c

  Log Message:
  -----------
  tcg: Prepare safe tb_jmp_cache lookup out of tb_lock

Ensure atomicity of CPU's 'tb_jmp_cache' access for future translation
block lookup out of 'tb_lock'.

Note that this patch does *not* make CPU's TLB invalidation safe if it
is done from some other thread while the CPU is in its execution loop.

Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
Signed-off-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
Message-Id: <20160715175852.30749-4-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 118b07308a8cedc16ef63d7ab243a95f1701db40
      
https://github.com/qemu/qemu/commit/118b07308a8cedc16ef63d7ab243a95f1701db40
  Author: Sergey Fedorov <serge.f...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c
    M translate-all.c

  Log Message:
  -----------
  tcg: Prepare safe access to tb_flushed out of tb_lock

Ensure atomicity and ordering of CPU's 'tb_flushed' access for future
translation block lookup out of 'tb_lock'.

This field can only be touched from another thread by tb_flush() in user
mode emulation. So the only access to be sequential atomic is:
 * a single write in tb_flush();
 * reads/writes out of 'tb_lock'.

In future, before enabling MTTCG in system mode, tb_flush() must be safe
and this field becomes unnecessary.

Signed-off-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
Message-Id: <20160715175852.30749-5-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 6d21e4208f382dd8ca1f7995a6dd9ea7ca281163
      
https://github.com/qemu/qemu/commit/6d21e4208f382dd8ca1f7995a6dd9ea7ca281163
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c
    M include/exec/exec-all.h
    M translate-all.c

  Log Message:
  -----------
  tcg: Prepare TB invalidation for lockless TB lookup

When invalidating a translation block, set an invalid flag into the
TranslationBlock structure first.  It is also necessary to check whether
the target TB is still valid after acquiring 'tb_lock' but before calling
tb_add_jump() since TB lookup is to be performed out of 'tb_lock' in
future. Note that we don't have to check 'last_tb'; an already invalidated
TB will not be executed anyway and it is thus safe to patch it.

Suggested-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 2e1ae44a4f4a6149fbb9dc812243522f07284700
      
https://github.com/qemu/qemu/commit/2e1ae44a4f4a6149fbb9dc812243522f07284700
  Author: Alex Bennée <alex.ben...@linaro.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M translate-all.c

  Log Message:
  -----------
  tcg: set up tb->page_addr before insertion

This ensures that if we find the TB on the slow path that tb->page_addr
is correctly set before being tested.

Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
Reviewed-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Message-Id: <20160715175852.30749-9-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 518615c6503ad78d3bb67ddf1cd848c4a41de02e
      
https://github.com/qemu/qemu/commit/518615c6503ad78d3bb67ddf1cd848c4a41de02e
  Author: Alex Bennée <alex.ben...@linaro.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c

  Log Message:
  -----------
  tcg: cpu-exec: remove tb_lock from the hot-path

Lock contention in the hot path of moving between existing patched
TranslationBlocks is the main drag in multithreaded performance. This
patch pushes the tb_lock() usage down to the two places that really need
it:

  - code generation (tb_gen_code)
  - jump patching (tb_add_jump)

The rest of the code doesn't really need to hold a lock as it is either
using per-CPU structures, atomically updated or designed to be used in
concurrent read situations (qht_lookup).

To keep things simple I removed the #ifdef CONFIG_USER_ONLY stuff as the
locks become NOPs anyway until the MTTCG work is completed.

Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
Reviewed-by: Richard Henderson <r...@twiddle.net>
Reviewed-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>

Message-Id: <20160715175852.30749-10-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 74d356dd48b64eaa2a6104ac1493ca64cb31fa16
      
https://github.com/qemu/qemu/commit/74d356dd48b64eaa2a6104ac1493ca64cb31fa16
  Author: Sergey Fedorov <serge.f...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c

  Log Message:
  -----------
  tcg: Avoid bouncing tb_lock between tb_gen_code() and tb_add_jump()

Signed-off-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
Message-Id: <20160715175852.30749-11-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: bd2710d5da06ad7706d4864f65b3f0c9f7cb4d7f
      
https://github.com/qemu/qemu/commit/bd2710d5da06ad7706d4864f65b3f0c9f7cb4d7f
  Author: Sergey Fedorov <serge.f...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c

  Log Message:
  -----------
  tcg: Merge tb_find_slow() and tb_find_fast()

These functions are not too big and can be merged together. This makes
locking scheme more clear and easier to follow.

Signed-off-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
Message-Id: <20160715175852.30749-12-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: b34de45fc40d01c14b31d3a682e284180a2ed8c5
      
https://github.com/qemu/qemu/commit/b34de45fc40d01c14b31d3a682e284180a2ed8c5
  Author: Sergey Fedorov <serge.f...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpu-exec.c

  Log Message:
  -----------
  tcg: rename tb_find_physical()

In fact, this function does not exactly perform a lookup by physical
address as it is descibed for comment on get_page_addr_code(). Thus
it may be a bit confusing to have "physical" in it's name. So rename it
to tb_htable_lookup() to better reflect its actual functionality.

Signed-off-by: Sergey Fedorov <serge.f...@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedo...@linaro.org>
Message-Id: <20160715175852.30749-13-sergey.fedo...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 5b1b6dbd94e2e2e98920f886cb32fcf4a1520b50
      
https://github.com/qemu/qemu/commit/5b1b6dbd94e2e2e98920f886cb32fcf4a1520b50
  Author: Fam Zheng <f...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M rules.mak

  Log Message:
  -----------
  rules.mak: Don't extract libs from .mo-libs in link command

For module build, .mo objects are passed to LINK and consumed in
process-archive-undefs. The reason behind that is documented in the
comment above process-archive-undefs.

Similarly, extract-libs should be called with .mo filtered out too.
Otherwise, the .mo-libs are added to the link command incorrectly,
spoiling the purpose of modularization.

Currently we don't have any .mo-libs usage, but it will be used soon
when we modularize more multi-source objects, like sdl and gtk.

Reported-by: Colin Lord <cl...@redhat.com>
Signed-off-by: Fam Zheng <f...@redhat.com>
Message-Id: <1469600777-30413-2-git-send-email-f...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 490ab15a4948f9150fae781fc421becce9221b32
      
https://github.com/qemu/qemu/commit/490ab15a4948f9150fae781fc421becce9221b32
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M include/qemu/timer.h

  Log Message:
  -----------
  timer: update comments

The comments is outdated. The patch has following changes:
1. tense correction.
2. all clock time value is returned in nanoseconds, so, they are same in
precision.
3. virtual clock doesn't use cpu cycles.

Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1469790338-28990-2-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 1d45cea5496fe509f0b66f01b876067e68a5faa0
      
https://github.com/qemu/qemu/commit/1d45cea5496fe509f0b66f01b876067e68a5faa0
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpus.c

  Log Message:
  -----------
  cpus: rename local variable to meaningful one

The function actually returns monotonic time value in nanosecond,
the "ticks" is not suitable.

Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc  Peter Crosthwaite <crosthwaite.pe...@gmail.com>
Cc: Richard Henderson <r...@twiddle.net>
Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1469790338-28990-3-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: d90f3cca87844ea797a1c96b88758478ac575e1f
      
https://github.com/qemu/qemu/commit/d90f3cca87844ea797a1c96b88758478ac575e1f
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M cpus.c

  Log Message:
  -----------
  cpus: update comments

The returned value of cpu_get_clock() is plused with the offset,
so it is the time elapsed in virtual machine when vm is active.

Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc  Peter Crosthwaite <crosthwaite.pe...@gmail.com>
Cc: Richard Henderson <r...@twiddle.net>
Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1469790338-28990-4-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: dc0a3e448c24d6811a5806058bdacc2c2775c92f
      
https://github.com/qemu/qemu/commit/dc0a3e448c24d6811a5806058bdacc2c2775c92f
  Author: Colin Lord <cdlo...@illinois.edu>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M qemu-options.hx

  Log Message:
  -----------
  help: Update help to remove misleading display information

Updates the help messages to remove misleading information about SDL
being the normal display used.

Signed-off-by: Colin Lord <cdlo...@illinois.edu>
Message-Id: <1471030248-21637-1-git-send-email-cdlo...@illinois.edu>
Reviewed-by: Markus Armbruster <arm...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 64eb7491d314dea6185c56d9b8feaa60bc3e1ce2
      
https://github.com/qemu/qemu/commit/64eb7491d314dea6185c56d9b8feaa60bc3e1ce2
  Author: Hervé Poussineau <hpous...@reactos.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: print register names in debug prints

Modify lsi_reg_readb function to have a single exit point. Debug print can now
contain the returned value.

Signed-off-by: Hervé Poussineau <hpous...@reactos.org>
Message-Id: <1471505489-1221-2-git-send-email-hpous...@reactos.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Hervé Poussineau <hpous...@reactos.org>


  Commit: 85a20bc4206689dc27668a14b170837a9cbaa0c4
      
https://github.com/qemu/qemu/commit/85a20bc4206689dc27668a14b170837a9cbaa0c4
  Author: Hervé Poussineau <hpous...@reactos.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: do not exit QEMU if reading invalid register

When guest accesses invalid register, return 0xff instead of exiting.
Also add a log when reading or writing invalid registers.

Signed-off-by: Hervé Poussineau <hpous...@reactos.org>
Message-Id: <1471505489-1221-3-git-send-email-hpous...@reactos.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Hervé Poussineau <hpous...@reactos.org>


  Commit: a8632434c7e998be1ffe77871a8fc7ab98049cf0
      
https://github.com/qemu/qemu/commit/a8632434c7e998be1ffe77871a8fc7ab98049cf0
  Author: Hervé Poussineau <hpous...@reactos.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: implement I/O memory space for Memory Move instructions

Memory Move instructions can read/write data either from PCI memory or from PCI 
I/O.
Implement second case.

Windows 98 now works with LSI 53C810A adapter.

Signed-off-by: Hervé Poussineau <hpous...@reactos.org>
Message-Id: <1471505489-1221-4-git-send-email-hpous...@reactos.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Hervé Poussineau <hpous...@reactos.org>


  Commit: 98f62e3d5d7cd25b025f8410005cc3898dfa16e9
      
https://github.com/qemu/qemu/commit/98f62e3d5d7cd25b025f8410005cc3898dfa16e9
  Author: Hervé Poussineau <hpous...@reactos.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: never set DMA FIFO Empty (DFE) bit in DSTAT register

53C895A datasheet says:
"This bit (DFE) is a pure status bit and will not cause an interrupt"

This bit is already auto-generated in lsi_read_reg when reading the DSTAT 
register.

This fixes IBM RS/6000 7020 firmware, which is:
- resetting the adapter
- enabling all interrupt sources (including DIP, ie interrupts from DSTAT)
- waiting for ISTAT0 to become 0 (including DIP=0, ie no interrupt coming from 
DSTAT)

Signed-off-by: Hervé Poussineau <hpous...@reactos.org>
Message-Id: <1471505489-1221-5-git-send-email-hpous...@reactos.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Hervé Poussineau <hpous...@reactos.org>


  Commit: b1ed728a61183cba0ed0c78885c8f7ee0c42d87b
      
https://github.com/qemu/qemu/commit/b1ed728a61183cba0ed0c78885c8f7ee0c42d87b
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M MAINTAINERS

  Log Message:
  -----------
  MAINTAINERS: add myself as stubs maintainers

Let's just remove some files from the pool of unmaintained files.
I am obviously not going to send pull requests only for stubs/, but
I will ack them if maintainers want that.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 48b6206305b8d56524ac2ee347b68e6e0a528559
      
https://github.com/qemu/qemu/commit/48b6206305b8d56524ac2ee347b68e6e0a528559
  Author: Rony Weng <ronyw...@synology.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/scsi-disk.c

  Log Message:
  -----------
  scsi-disk: change disk serial length from 20 to 36

Openstack Cinder assigns volume a 36 characters uuid as serial.
QEMU will shrinks the uuid to 20 characters, which does not match
the original uuid.

Note that there is no limit to the length of the serial number in
the SCSI spec.  20 was copy-pasted from virtio-blk which in turn was
copy-pasted from ATA; 36 is even more arbitrary.  However, bumping it
up too much might cause issues (e.g. 252 seems to make sense because
then the maximum amount of returned data is 256; but who knows there's
no off-by-one somewhere for such a nicely rounded number).

Signed-off-by: Rony Weng <ronyw...@synology.com>
Message-Id: <1472457138-23386-1-git-send-email-ronyw...@synology.com>
Cc: qemu-sta...@nongnu.org
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 7f61f4690dd153be98900a2a508b88989e692753
      
https://github.com/qemu/qemu/commit/7f61f4690dd153be98900a2a508b88989e692753
  Author: Prasad J Pandit <p...@fedoraproject.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/vmw_pvscsi.c

  Log Message:
  -----------
  vmw_pvscsi: check page count while initialising descriptor rings

Vmware Paravirtual SCSI emulation uses command descriptors to
process SCSI commands. These descriptors come with their ring
buffers. A guest could set the page count for these rings to
an arbitrary value, leading to infinite loop or OOB access.
Add check to avoid it.

Reported-by: Tom Victor <vv474172...@gmail.com>
Signed-off-by: Prasad J Pandit <p...@fedoraproject.org>
Message-Id: <1472626169-12989-1-git-send-email-ppan...@redhat.com>
Cc: qemu-sta...@nongnu.org
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: cf2bce203a45d7437029d108357fb23fea0967b6
      
https://github.com/qemu/qemu/commit/cf2bce203a45d7437029d108357fb23fea0967b6
  Author: Prasad J Pandit <p...@fedoraproject.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/mptconfig.c

  Log Message:
  -----------
  scsi: mptconfig: fix an assert expression

When LSI SAS1068 Host Bus emulator builds configuration page
headers, mptsas_config_pack() should assert that the size
fits in a byte.  However, the size is expressed in 32-bit
units, so up to 1020 bytes fit.  The assertion was only
allowing replies up to 252 bytes, so fix it.

Suggested-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Prasad J Pandit <p...@fedoraproject.org>
Message-Id: <1472645167-30765-2-git-send-email-ppan...@redhat.com>
Cc: qemu-sta...@nongnu.org
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 65a8e1f6413a0f6f79894da710b5d6d43361d27d
      
https://github.com/qemu/qemu/commit/65a8e1f6413a0f6f79894da710b5d6d43361d27d
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/mptconfig.c

  Log Message:
  -----------
  scsi: mptconfig: fix misuse of MPTSAS_CONFIG_PACK

These issues cause respectively a QEMU crash and a leak of 2 bytes of
stack.  They were discovered by VictorV of 360 Marvel Team.

Reported-by: Tom Victor <i-tangtian...@360.cm>
Cc: qemu-sta...@nongnu.org
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 6a7b47a786bb16d36ad6f1733138d4aeb233bb3d
      
https://github.com/qemu/qemu/commit/6a7b47a786bb16d36ad6f1733138d4aeb233bb3d
  Author: Eduardo Habkost <ehabk...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M scripts/kvm/vmxcap

  Log Message:
  -----------
  vmxcap: Show raw MSR value

This will be helpful to allow checking of bits that are not in
the 'bits' table yet.

Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Message-Id: <1472181025-10889-2-git-send-email-ehabk...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 349cb2fbfdcbc9f6770389f3b69422e8c441042d
      
https://github.com/qemu/qemu/commit/349cb2fbfdcbc9f6770389f3b69422e8c441042d
  Author: Eduardo Habkost <ehabk...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M scripts/kvm/vmxcap

  Log Message:
  -----------
  vmxcap: Add TSC scaling bit

Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Message-Id: <1472181025-10889-3-git-send-email-ehabk...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 173134467a585c66c43467c71b834cd0b488cf46
      
https://github.com/qemu/qemu/commit/173134467a585c66c43467c71b834cd0b488cf46
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M docs/rcu.txt

  Log Message:
  -----------
  doc/rcu: fix typo

Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1472696479-3619-1-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 517b3d40166f18e321e964e5fe0d6260e92b2121
      
https://github.com/qemu/qemu/commit/517b3d40166f18e321e964e5fe0d6260e92b2121
  Author: Lin Ma <l...@suse.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M qemu-char.c
    M qemu-options.hx

  Log Message:
  -----------
  chardev: Add 'help' option to print all available chardev backend types

Signed-off-by: Lin Ma <l...@suse.com>
Message-Id: <20160816171352.17021-1-...@suse.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 74460f3431104a7c13c407e79aee18e64dffa91d
      
https://github.com/qemu/qemu/commit/74460f3431104a7c13c407e79aee18e64dffa91d
  Author: Thomas Huth <th...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M MAINTAINERS

  Log Message:
  -----------
  MAINTAINERS: Fix wildcard for scsi headers

get_maintainer.pl currently thinks that the scsi headers are
currrently unmaintained. So let's fix the corresponding wildcard
expression.

Signed-off-by: Thomas Huth <th...@redhat.com>
Message-Id: <1473106301-23102-1-git-send-email-th...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: a2feb3483e11a389bc93a5bbd40815d6cfdfb07f
      
https://github.com/qemu/qemu/commit/a2feb3483e11a389bc93a5bbd40815d6cfdfb07f
  Author: Thomas Huth <th...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M MAINTAINERS

  Log Message:
  -----------
  MAINTAINERS: Add some header files to the PC chipset section

These header files obviously belong to the PC chipset (since
their names match the other .c files in this section).

Signed-off-by: Thomas Huth <th...@redhat.com>
Message-Id: <1473111075-25311-1-git-send-email-th...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 49adc5d3f8c6bb75e55ebfeab109c5c37dea65e8
      
https://github.com/qemu/qemu/commit/49adc5d3f8c6bb75e55ebfeab109c5c37dea65e8
  Author: Prasad J Pandit <p...@fedoraproject.org>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/vmw_pvscsi.c

  Log Message:
  -----------
  scsi: pvscsi: limit loop to fetch SG list

In PVSCSI paravirtual SCSI bus, pvscsi_convert_sglist can take a very
long time or go into an infinite loop due to two different bugs:

1) the request descriptor data length is defined to be 64 bit. While
building SG list from a request descriptor, it gets truncated to 32bit
in routine 'pvscsi_convert_sglist'. This could lead to an infinite loop
situation large 'dataLen' values when data_length is cast to uint32_t and
chunk_size becomes always zero.  Fix this by removing the incorrect cast.

2) pvscsi_get_next_sg_elem can be called arbitrarily many times if the
element has a zero length.  Get out of the loop early when this happens,
by introducing an upper limit on the number of SG list elements.

Reported-by: Li Qiang <liqiang...@360.cn>
Signed-off-by: Prasad J Pandit <p...@fedoraproject.org>
Message-Id: <1473108643-12983-1-git-send-email-ppan...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: a3b6e2bb71e6495a44f24e2296ab4feb4b6d4818
      
https://github.com/qemu/qemu/commit/a3b6e2bb71e6495a44f24e2296ab4feb4b6d4818
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M default-configs/i386-softmmu.mak
    M default-configs/x86_64-softmmu.mak

  Log Message:
  -----------
  default-configs: remove CONFIG_PAM

The CONFIG_PAM=y setting was added in

  commit c0907c9e6417cb959dfd9ef6873221536ec91351
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   Tue Feb 5 15:06:20 2013 +0100

    hw: move PCI bridges to hw/pci-* or hw/ARCH

but nothing in that commit, nor anything pre-existing,
ever referenced CONFIG_PAM.

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473096320-1638-2-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: dd32222b6ef3c9bd96fb7ea4b7a2029ab0c90620
      
https://github.com/qemu/qemu/commit/dd32222b6ef3c9bd96fb7ea4b7a2029ab0c90620
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M default-configs/arm-softmmu.mak
    M default-configs/ppc-softmmu.mak
    M default-configs/ppc64-softmmu.mak
    M default-configs/sparc64-softmmu.mak

  Log Message:
  -----------
  default-configs: removed obsolete CONFIG_ISA_MMIO

The use of the CONFIG_ISA_MMIO setting was removed in

  commit 61fcb628627ea464dc1954f615ae13edfefd284f
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   Mon Jul 22 15:54:24 2013 +0200

    isa_mmio: delete

but this commit only removed it from some of the default
config files.

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473096320-1638-3-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: e270d00afa58c8a2903ec85db51407abc4e3269d
      
https://github.com/qemu/qemu/commit/e270d00afa58c8a2903ec85db51407abc4e3269d
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M default-configs/i386-softmmu.mak
    M default-configs/x86_64-softmmu.mak

  Log Message:
  -----------
  default-configs: remove CONFIG_PIIX_PCI

The CONFIG_PIIX_PCI=y setting was added in

  commit 70615c38ded2a20ad8282b7dcde95482fc0a7744
  Author: Blue Swirl <blauwir...@gmail.com>
  Date:   Mon Mar 22 20:18:40 2010 +0000

    Compile sound devices only once

but nothing in that commit, nor anything pre-existing,
ever referenced CONFIG_PIIX_PCI.

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473096320-1638-4-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: b72981b910097b31f4d0b9c111a2d2cfd9ee585b
      
https://github.com/qemu/qemu/commit/b72981b910097b31f4d0b9c111a2d2cfd9ee585b
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/ipmi/ipmi_bmc_extern.c

  Log Message:
  -----------
  ipmi: check return of qemu_chr_fe_write() for errors

The continue_send() method in ipmi_bmc_extern.c directly
assigns the return value of qemu_chr_fe_write() to the
variable tracking the I/O buffer offset. This ignores the
possibility that the return value could be -1 and so will
cause I/O go backwards on EAGAIN. Fortunately 'outpos' is
unsigned, so can't go negative - it will become MAX_INT
which will cause the loop to stop, and avoid an accidental
out of bounds array access.

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473170165-540-2-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 7983e829336f68b6df6952dd4b03493b1486fcf5
      
https://github.com/qemu/qemu/commit/7983e829336f68b6df6952dd4b03493b1486fcf5
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/char/sclpconsole-lm.c

  Log Message:
  -----------
  sclpconsolelm: remove bogus check for -EAGAIN

The write_console_data() method in sclpconsole-lm.c checks
whether the return value of qemu_chr_fe_write() has the
value of -EAGAIN and if so then increments the buffer offset
by the value of EAGAIN. Fortunately qemu_chr_fe_write() will
never return EAGAIN directly, rather it returns -1 with
errno set to EAGAIN, so this broken code path was not
reachable. The behaviour on EAGAIN was stil bad though,
causing the write_console_data() to busy_wait repeatedly
calling qemu_chr_fe_write() with no sleep between iters.

Just remove all this loop logic and replace with a call
to qemu_chr_fe_write_all().

Acked-by: Cornelia Huck <cornelia.h...@de.ibm.com>
Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473170165-540-3-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 6ab3fc32ea640026726bc5f9f4db622d0954fb8a
      
https://github.com/qemu/qemu/commit/6ab3fc32ea640026726bc5f9f4db622d0954fb8a
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M backends/rng-egd.c
    M gdbstub.c
    M hw/arm/omap2.c
    M hw/arm/pxa2xx.c
    M hw/arm/strongarm.c
    M hw/char/bcm2835_aux.c
    M hw/char/debugcon.c
    M hw/char/digic-uart.c
    M hw/char/escc.c
    M hw/char/etraxfs_ser.c
    M hw/char/exynos4210_uart.c
    M hw/char/grlib_apbuart.c
    M hw/char/imx_serial.c
    M hw/char/ipoctal232.c
    M hw/char/lm32_juart.c
    M hw/char/lm32_uart.c
    M hw/char/mcf_uart.c
    M hw/char/parallel.c
    M hw/char/pl011.c
    M hw/char/sclpconsole-lm.c
    M hw/char/sclpconsole.c
    M hw/char/sh_serial.c
    M hw/char/spapr_vty.c
    M hw/char/stm32f2xx_usart.c
    M hw/char/virtio-console.c
    M hw/char/xilinx_uartlite.c
    M hw/usb/ccid-card-passthru.c
    M hw/usb/dev-serial.c
    M slirp/slirp.c

  Log Message:
  -----------
  hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all

The qemu_chr_fe_write method will return -1 on EAGAIN if the
chardev backend write would block. Almost no callers of the
qemu_chr_fe_write() method check the return value, instead
blindly assuming data was successfully sent. In most cases
this will lead to silent data loss on interactive consoles,
but in some cases (eg RNG EGD) it'll just cause corruption
of the protocol being spoken.

We unfortunately can't fix the virtio-console code, due to
a bug in the Linux guest drivers, which would cause the
entire Linux kernel to hang if we delay processing of the
incoming data in any way. Fixing this requires first fixing
the guest driver to not hold spinlocks while writing to the
hvc device backend.

Fixes bug: https://bugs.launchpad.net/qemu/+bug/1586756

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473170165-540-4-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 90f998f5f4267a0c22e983f533d19b9de1849283
      
https://github.com/qemu/qemu/commit/90f998f5f4267a0c22e983f533d19b9de1849283
  Author: Daniel P. Berrange <berra...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M qemu-char.c

  Log Message:
  -----------
  char: convert qemu_chr_fe_write to qemu_chr_fe_write_all

The mux chardev was not checking the return value of any
qemu_chr_fe_write() call so would silently loose data
on EAGAIN.

Similarly the qemu_chr_fe_printf method would not check
errors and was not in a position to retry even if it
could check.

Signed-off-by: Daniel P. Berrange <berra...@redhat.com>
Message-Id: <1473170165-540-5-git-send-email-berra...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 421cc3e7e89cb807d3c5f6de486abb2167c8e792
      
https://github.com/qemu/qemu/commit/421cc3e7e89cb807d3c5f6de486abb2167c8e792
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/scsi/megasas.c

  Log Message:
  -----------
  Revert "megasas: remove useless check for cmd->frame"

This reverts commit 8cc46787b5b58f01a11c919c7ff939ed009e27fc.
It turns out that cmd->frame can be NULL and thus the commit
can cause a SIGSEGV

Reported-by: Holger Schranz <hol...@fam-schranz.de>
Cc: qemu-sta...@nongnu.org
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: a952c18683bbfa67f6c508c7417001a0bd1b2b97
      
https://github.com/qemu/qemu/commit/a952c18683bbfa67f6c508c7417001a0bd1b2b97
  Author: Markus Armbruster <arm...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/dma/i8257.c

  Log Message:
  -----------
  i8257: Make device "i8257" unavailable with -device

The ISA DMA controller needs to be wired up to the ISA bus by
isa_bus_dma() to actually work.

Signed-off-by: Markus Armbruster <arm...@redhat.com>
Message-Id: <1472660151-19517-1-git-send-email-arm...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: c2cd627ddb13f62557aaf66305edb03cc3d9612d
      
https://github.com/qemu/qemu/commit/c2cd627ddb13f62557aaf66305edb03cc3d9612d
  Author: Cao jin <caoj.f...@cn.fujitsu.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M exec.c
    M include/sysemu/kvm.h
    M kvm-all.c
    M kvm-stub.c

  Log Message:
  -----------
  kvm-all: drop kvm_setup_guest_memory

kvm_setup_guest_memory only does "madvise to QEMU_MADV_DONTFORK" and
is only called by ram_block_add, which actually is duplicate code.
Bonus: add simple comment for kvm_has_sync_mmu to make life easier.

Suggested-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Cao jin <caoj.f...@cn.fujitsu.com>
Message-Id: <1473662096-32598-1-git-send-email-caoj.f...@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 705ac1ca539ba05ab52c3290ccb45f9e47aa7c5e
      
https://github.com/qemu/qemu/commit/705ac1ca539ba05ab52c3290ccb45f9e47aa7c5e
  Author: Pranith Kumar <bobby.pr...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M include/qemu/atomic.h

  Log Message:
  -----------
  atomics: Remove redundant barrier()'s

Remove the redundant barrier() after the fence as agreed in previous
discussion here:
https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg00489.html

Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Message-Id: <20160824204424.14041-3-bobby.pr...@gmail.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 89943de17c4e276f2c47f05b4604e8816a6a636c
      
https://github.com/qemu/qemu/commit/89943de17c4e276f2c47f05b4604e8816a6a636c
  Author: Pranith Kumar <bobby.pr...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M include/qemu/atomic.h

  Log Message:
  -----------
  atomics: Use __atomic_*_n() variant primitives

Use the __atomic_*_n() primitives which take the value as argument. It
is not necessary to store the value locally before calling the
primitive, hence saving us a stack store and load.

Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Message-Id: <20160829171701.14025-1-bobby.pr...@gmail.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 0cebabd5e8277864ef87b4526cb1c9b3f0c06ee7
      
https://github.com/qemu/qemu/commit/0cebabd5e8277864ef87b4526cb1c9b3f0c06ee7
  Author: Lluís Vilanova <vilan...@ac.upc.edu>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M scripts/checkpatch.pl

  Log Message:
  -----------
  checkpatch: Fix whitespace checks for documentation code blocks

Prevent blank lines in documentation code blocks to be signalled as
incorrect trailing whitespace.

Code blocks in documentation are 4-column aligned, and blank lines in
them should have exactly 4 columns of trailing whitespace to prevent
QEMU's wiki to render them as separate code blocks.

Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu>
Message-Id: <147325254382.22644.5531276787733455773.st...@fimbulvetr.bsc.es>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>

Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu>


  Commit: 0342454f8aa6fc55e515bad26425533e10b58085
      
https://github.com/qemu/qemu/commit/0342454f8aa6fc55e515bad26425533e10b58085
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M pc-bios/linuxboot_dma.bin
    M pc-bios/optionrom/linuxboot_dma.c

  Log Message:
  -----------
  optionrom: do not rely on compiler's bswap optimization

Recent compilers can detect and inline manually-written bswap code,
but GCC 4.2.1 (the last GPLv2 version) cannot and generates really
awful code.  Depending on how the compiler is configured, it might
also not want to generate bswap because it was not in i386.  Using
asm is fine because TCG knows about bswap and all processors with
virtualization extensions also do.

Reported-by: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 78d6a05d2f69cbfa6e95f0a4a24a2c934969913b
      
https://github.com/qemu/qemu/commit/78d6a05d2f69cbfa6e95f0a4a24a2c934969913b
  Author: Dr. David Alan Gilbert <dgilb...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M hw/i386/kvm/apic.c
    M include/sysemu/kvm.h
    M target-i386/kvm.c

  Log Message:
  -----------
  x86/lapic: Load LAPIC state at post_load

Load the LAPIC state during post_load (rather than when the CPU
starts).

This allows an interrupt to be delivered from the ioapic to
the lapic prior to cpu loading, in particular the RTC that starts
ticking as soon as we load it's state.

Fixes a case where Windows hangs after migration due to RTC interrupts
disappearing.

Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Suggested-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 2286459d3ac19eb0697503282ce7830907d055ea
      
https://github.com/qemu/qemu/commit/2286459d3ac19eb0697503282ce7830907d055ea
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M include/hw/ppc/fdt.h

  Log Message:
  -----------
  ppc: do not redefine CPUPPCState

Just include the file that is supposed to bring it in.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 88ca8e80defa4ec92c90054f151212cd32deb359
      
https://github.com/qemu/qemu/commit/88ca8e80defa4ec92c90054f151212cd32deb359
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/Makefile.objs
    A util/bufferiszero.c
    M util/cutils.c

  Log Message:
  -----------
  cutils: Move buffer_is_zero and subroutines to a new file

Signed-off-by: Richard Henderson <r...@twiddle.net>
Message-Id: <1472496380-19706-2-git-send-email-...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 8c70c1b0c79cdfe9cc6e58c793b2b4e41aabede8
      
https://github.com/qemu/qemu/commit/8c70c1b0c79cdfe9cc6e58c793b2b4e41aabede8
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Remove SPLAT macro

This is unused and complicates the vector interface.

Signed-off-by: Richard Henderson <r...@twiddle.net>
Message-Id: <1472496380-19706-3-git-send-email-...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: a1febc4950f2c6232c002f401d7cd409f6fa6a88
      
https://github.com/qemu/qemu/commit/a1febc4950f2c6232c002f401d7cd409f6fa6a88
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M include/qemu/cutils.h
    M migration/ram.c
    M migration/rdma.c
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Export only buffer_is_zero

Since the two users don't make use of the returned offset,
beyond ensuring that the entire buffer is zero, consider the
can_use_buffer_find_nonzero_offset and buffer_find_nonzero_offset
functions internal.

Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Message-Id: <1472496380-19706-4-git-send-email-...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 5e33a8722254f99cbce6ede73adb4b735d94f58f
      
https://github.com/qemu/qemu/commit/5e33a8722254f99cbce6ede73adb4b735d94f58f
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M configure
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Rearrange buffer_is_zero acceleration

Allow selection of several acceleration functions
based on the size and alignment of the buffer.
Do not require ifunc support for AVX2 acceleration.

Signed-off-by: Richard Henderson <r...@twiddle.net>
Message-Id: <1472496380-19706-5-git-send-email-...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 2250d3a293d36ed9d8143d4c3d3e94086c429af4
      
https://github.com/qemu/qemu/commit/2250d3a293d36ed9d8143d4c3d3e94086c429af4
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Remove aarch64 buffer zero checking

The revised integer version is 4 times faster than the neon version
on an AppliedMicro Mustang.  Even with hand scheduling and additional
unrolling I cannot make any neon version run as fast as the integer.

Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 43ff5e01ecba41628f68eb3c62fd49e0405fcca9
      
https://github.com/qemu/qemu/commit/43ff5e01ecba41628f68eb3c62fd49e0405fcca9
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Remove ppc buffer zero checking

For ppc64le, gcc6 does extremely poorly with the Altivec code.
Moreover, on POWER7 and POWER8, a hand-optimized Altivec version
turns out to be no faster than the revised integer version, and
therefore not worth the effort.

Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: efad6682452ec85a898609c885c2721ea12585db
      
https://github.com/qemu/qemu/commit/efad6682452ec85a898609c885c2721ea12585db
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M include/qemu/cutils.h
    M tests/Makefile.include
    A tests/test-bufferiszero.c
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Add test for buffer_is_zero

Signed-off-by: Richard Henderson <r...@twiddle.net>
Message-Id: <1472496380-19706-6-git-send-email-...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 86444f084b23c967d556039b22a67d80a72725ca
      
https://github.com/qemu/qemu/commit/86444f084b23c967d556039b22a67d80a72725ca
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Add SSE4 version

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 083d012a388e7e2a8bfd9144c2c9bcceb29a78fc
      
https://github.com/qemu/qemu/commit/083d012a388e7e2a8bfd9144c2c9bcceb29a78fc
  Author: Richard Henderson <r...@twiddle.net>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M util/bufferiszero.c

  Log Message:
  -----------
  cutils: Add generic prefetch

There's no real knowledge of the cacheline size,
just prefetching one loop ahead.

Signed-off-by: Richard Henderson <r...@twiddle.net>
Message-Id: <1472496380-19706-7-git-send-email-...@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>


  Commit: 8212ff86f4405b6128d89dd1d97ff2d6cfcf9842
      
https://github.com/qemu/qemu/commit/8212ff86f4405b6128d89dd1d97ff2d6cfcf9842
  Author: Peter Maydell <peter.mayd...@linaro.org>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M MAINTAINERS
    M backends/rng-egd.c
    M blockdev.c
    M configure
    M cpu-exec.c
    M cpus.c
    M default-configs/arm-softmmu.mak
    M default-configs/i386-softmmu.mak
    M default-configs/ppc-softmmu.mak
    M default-configs/ppc64-softmmu.mak
    M default-configs/sparc64-softmmu.mak
    M default-configs/x86_64-softmmu.mak
    M docs/rcu.txt
    M exec.c
    M gdbstub.c
    M hw/arm/omap2.c
    M hw/arm/pxa2xx.c
    M hw/arm/strongarm.c
    M hw/char/bcm2835_aux.c
    M hw/char/debugcon.c
    M hw/char/digic-uart.c
    M hw/char/escc.c
    M hw/char/etraxfs_ser.c
    M hw/char/exynos4210_uart.c
    M hw/char/grlib_apbuart.c
    M hw/char/imx_serial.c
    M hw/char/ipoctal232.c
    M hw/char/lm32_juart.c
    M hw/char/lm32_uart.c
    M hw/char/mcf_uart.c
    M hw/char/parallel.c
    M hw/char/pl011.c
    M hw/char/sclpconsole-lm.c
    M hw/char/sclpconsole.c
    M hw/char/sh_serial.c
    M hw/char/spapr_vty.c
    M hw/char/stm32f2xx_usart.c
    M hw/char/virtio-console.c
    M hw/char/xilinx_uartlite.c
    M hw/dma/i8257.c
    M hw/i386/kvm/apic.c
    M hw/ipmi/ipmi_bmc_extern.c
    M hw/scsi/lsi53c895a.c
    M hw/scsi/megasas.c
    M hw/scsi/mptconfig.c
    M hw/scsi/scsi-disk.c
    M hw/scsi/vmw_pvscsi.c
    M hw/usb/ccid-card-passthru.c
    M hw/usb/dev-serial.c
    M include/exec/exec-all.h
    M include/hw/ppc/fdt.h
    M include/qemu/atomic.h
    M include/qemu/cutils.h
    M include/qemu/queue.h
    M include/qemu/timer.h
    M include/sysemu/kvm.h
    M kvm-all.c
    M kvm-stub.c
    M migration/ram.c
    M migration/rdma.c
    M net/filter.c
    M pc-bios/linuxboot_dma.bin
    M pc-bios/optionrom/linuxboot_dma.c
    M qemu-char.c
    M qemu-options.hx
    M rules.mak
    M scripts/checkpatch.pl
    M scripts/kvm/vmxcap
    M slirp/slirp.c
    M target-i386/kvm.c
    M tests/Makefile.include
    A tests/test-bufferiszero.c
    M translate-all.c
    M util/Makefile.objs
    A util/bufferiszero.c
    M util/cutils.c
    M util/qemu-sockets.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging

* minor patches here and there
* MTTCG: lock-free TB lookup
* SCSI: bugfixes for MPTSAS, MegaSAS, LSI53c, vmw_pvscsi
* buffer_is_zero rewrite (except for one patch)
* chardev: qemu_chr_fe_write checks
* checkpatch improvement for markdown preformatted text
* default-configs cleanups
* atomics cleanups

# gpg: Signature made Tue 13 Sep 2016 18:14:30 BST
# gpg:                using RSA key 0xBFFBD25F78C7AE83
# gpg: Good signature from "Paolo Bonzini <bonz...@gnu.org>"
# gpg:                 aka "Paolo Bonzini <pbonz...@redhat.com>"
# Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
#      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83

* remotes/bonzini/tags/for-upstream: (58 commits)
  cutils: Add generic prefetch
  cutils: Add SSE4 version
  cutils: Add test for buffer_is_zero
  cutils: Remove ppc buffer zero checking
  cutils: Remove aarch64 buffer zero checking
  cutils: Rearrange buffer_is_zero acceleration
  cutils: Export only buffer_is_zero
  cutils: Remove SPLAT macro
  cutils: Move buffer_is_zero and subroutines to a new file
  ppc: do not redefine CPUPPCState
  x86/lapic: Load LAPIC state at post_load
  optionrom: do not rely on compiler's bswap optimization
  checkpatch: Fix whitespace checks for documentation code blocks
  atomics: Use __atomic_*_n() variant primitives
  atomics: Remove redundant barrier()'s
  kvm-all: drop kvm_setup_guest_memory
  i8257: Make device "i8257" unavailable with -device
  Revert "megasas: remove useless check for cmd->frame"
  char: convert qemu_chr_fe_write to qemu_chr_fe_write_all
  hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all
  ...

Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>

 Conflicts:
        cpus.c
        tests/Makefile.include


Compare: https://github.com/qemu/qemu/compare/507e4ddc3abf...8212ff86f440

Reply via email to