qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 4f8260: memory: Do not update coalesced IO ra


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 4f8260: memory: Do not update coalesced IO range in the ca...
Date: Mon, 11 Mar 2019 19:05:25 +0000 (UTC)

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 4f8260248c68e4599a5ce9d8d98ea9d8853f649b
      
https://github.com/qemu/qemu/commit/4f8260248c68e4599a5ce9d8d98ea9d8853f649b
  Author: Jagannathan Raman <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M memory.c

  Log Message:
  -----------
  memory: Do not update coalesced IO range in the case of NOP

Do not add/del coalesced IO ranges in the case where the
same FlatRanges are present in both old and new FlatViews

Fixes: 3ac7d43a6fbb ("memory: update coalesced_range on transaction_commit")
Signed-off-by: Jagannathan Raman <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 97575f928fe95515a4855487b233506e75675f66
      
https://github.com/qemu/qemu/commit/97575f928fe95515a4855487b233506e75675f66
  Author: Paolo Bonzini <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/vfio/Kconfig

  Log Message:
  -----------
  vfio-pci: enable by default

CONFIG_VFIO_PCI was not "default y" - and once you do that, it is also
important to disable it if PCI is not there.

Reported-by: Alex Williamson <address@hidden>
Tested-by: Alex Williamson <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: fcfd1bcc30c33795ca66b2f4f6c5bb4438e62865
      
https://github.com/qemu/qemu/commit/fcfd1bcc30c33795ca66b2f4f6c5bb4438e62865
  Author: David Abdurachmanov <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/riscv/Kconfig

  Log Message:
  -----------
  riscv/Kconfig: enable PCI_DEVICES

Re-enable PCI_DEVICES for RISC-V.
The patch is based on other <arch>/Kconfig.

Signed-off-by: David Abdurachmanov <address@hidden>
Fixes: 82a230d5a303 ("riscv-softmmu.mak: replace CONFIG_* with Kconfig "select" 
directives")
Message-Id: <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 944b96c61072d8b8dd6b253d4b1b80de1442cc1f
      
https://github.com/qemu/qemu/commit/944b96c61072d8b8dd6b253d4b1b80de1442cc1f
  Author: Li Qiang <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M tests/test-qgraph.c

  Log Message:
  -----------
  tests: test-qgraph: fix a memory leak

Spotted by ASAN when 'make check'.

Signed-off-by: Li Qiang <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Fixes: fc281c80202
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 5dc8ab361a6aed42560731eb9b4fdeff01ace948
      
https://github.com/qemu/qemu/commit/5dc8ab361a6aed42560731eb9b4fdeff01ace948
  Author: Stefano Garzarella <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/i386/pc.c

  Log Message:
  -----------
  hw/i386/pc: run the multiboot loader before the PVH loader

Some multiboot images could be in the ELF format. In the current
implementation QEMU fails because we try to load these images
as a PVH image.

In order to fix this issue, we should try multiboot first (we
already check the multiboot magic header before to load it).
If it is not a multiboot image, we can try the PVH loader.

Fixes: ab969087da6 ("pvh: Boot uncompressed kernel using direct boot ABI", 
2019-01-15)
Reported-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefano Garzarella <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: d4cef0c67ca0f7a2749e77360122273541147c55
      
https://github.com/qemu/qemu/commit/d4cef0c67ca0f7a2749e77360122273541147c55
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M block/iscsi.c

  Log Message:
  -----------
  block/iscsi: Restrict Linux-specific code

Some Linux specific code is missing guards, leading to
build failure on OSX:

  $ sudo brew install libiscsi
  $ ./configure && make
  [...]
    CC      block/iscsi.o
  qemu/block/iscsi.c:338:24: error: 'iscsi_aiocb_info' defined but not used 
[-Werror=unused-const-variable=]
   static const AIOCBInfo iscsi_aiocb_info = {
                          ^~~~~~~~~~~~~~~~
  qemu/block/iscsi.c:168:1: error: 'iscsi_schedule_bh' defined but not used 
[-Werror=unused-function]
   iscsi_schedule_bh(IscsiAIOCB *acb)
   ^~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

Add guards to restrict this code for Linux.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 06164cc402e67e64eefb79cd9a00a59d0e0d2fce
      
https://github.com/qemu/qemu/commit/06164cc402e67e64eefb79cd9a00a59d0e0d2fce
  Author: Viktor Prutyanov <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M contrib/elf2dmp/main.c

  Log Message:
  -----------
  contrib/elf2dmp: add kernel start address checking

Before this patch, if elf2dmp failed to find NT kernel PE magic in
allowed virtual address range, then it assumes NULL as NT kernel
address and cause segfault.

This patch fix the problem described above by checking NT kernel address
before futher processing.

Signed-off-by: Viktor Prutyanov <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: fd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381
      
https://github.com/qemu/qemu/commit/fd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381
  Author: Alexey Kardashevskiy <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: Enable werror for git worktrees

The configure script checks multiple times whether it works in a git
repository and it does this by "test -e "${source_path}/.git" in 4 cases
but in one case where it tries to enable werror "-d" is used there which
fails on git worktrees as .git is a file then and not a directory.

This changes the test to "-e" as other occurrences.

Signed-off-by: Alexey Kardashevskiy <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 840159e48c365ca1405e513cc95099bf4f35ad9f
      
https://github.com/qemu/qemu/commit/840159e48c365ca1405e513cc95099bf4f35ad9f
  Author: Paolo Bonzini <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M target/i386/Makefile.objs

  Log Message:
  -----------
  target-i386: add kvm stubs to user-mode emulators

The CPUID code will call kvm_arch_get_supported_cpuid() and, even though
it is undef kvm_enabled() so it never runs for user-mode emulators,
sometimes clang will not optimize it out at -O0.

That could be considered a compiler bug, however at -O0 we give it
a pass and just add the stubs.

Reported-by: Kamil Rytarowski <address@hidden>
Tested-by: Kamil Rytarowski <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: f24c3a79a415042f6dc195f029a2ba7247d14cac
      
https://github.com/qemu/qemu/commit/f24c3a79a415042f6dc195f029a2ba7247d14cac
  Author: Luwei Kang <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/i386/pc.c
    M target/i386/cpu.c
    M target/i386/cpu.h

  Log Message:
  -----------
  i386: extended the cpuid_level when Intel PT is enabled

Intel Processor Trace required CPUID[0x14] but the cpuid_level
have no change when create a kvm guest with
e.g. "-cpu qemu64,+intel-pt".

Signed-off-by: Eduardo Habkost <address@hidden>
Signed-off-by: Luwei Kang <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: d804232dc4a5400494442b04e0a066711f4f5b44
      
https://github.com/qemu/qemu/commit/d804232dc4a5400494442b04e0a066711f4f5b44
  Author: Greg Kurz <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

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

  Log Message:
  -----------
  virtio-scsi: Fix build with gcc 9

Build fails with gcc 9:

  CC      ppc64-softmmu/hw/scsi/virtio-scsi.o
hw/scsi/virtio-scsi.c: In function ‘virtio_scsi_do_tmf’:
hw/scsi/virtio-scsi.c:265:39: error: taking address of packed member of 
‘struct virtio_scsi_ctrl_tmf_req’ may result in an unaligned pointer value 
[-Werror=address-of-packed-member]
  265 |     virtio_tswap32s(VIRTIO_DEVICE(s), &req->req.tmf.subtype);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

All the fields in struct virtio_scsi_ctrl_tmf_req are naturally aligned,
so we could in theory drop QEMU_PACKED. Unfortunately, the header file
is imported from linux which already has the packed attribute. Trying to
fix that in the update-linux-headers.sh script is likely to produce
ugliness. Turn the call to virtio_tswap32s() into an assignment instead.

Signed-off-by: Greg Kurz <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 12dd89f7006dc1208f6310600d98621e8e1ac0e6
      
https://github.com/qemu/qemu/commit/12dd89f7006dc1208f6310600d98621e8e1ac0e6
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: implement basic SBCL functionality

HP-UX checks this register after sending data to the target. If there's no valid
information present, it assumes the client disconnected because the kernel sent
to much data. Implement at least some of the SBCL functionality that is possible
without having a real SCSI bus.

Signed-off-by: Sven Schnelle <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 2265e98b72df477a38271787485e2cd33df212b4
      
https://github.com/qemu/qemu/commit/2265e98b72df477a38271787485e2cd33df212b4
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: check if SIGP bit is already set in Wait reselect

If SIGP is set, the 'Wait for Reselection' command should jump
immediately to the address stored in the second DWORD of the
instruction. This fixes spurious hangs in the HP-UX 11.11
installer when the SIGP bit gets set by the kernel before the
'Wait for Reselection' command is executed by SCRIPTS.

Signed-off-by: Sven Schnelle <address@hidden>
Tested-by: Helge Deller <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: c8350ebd6789c9b7641e84d03fbf0f6dd3aacf60
      
https://github.com/qemu/qemu/commit/c8350ebd6789c9b7641e84d03fbf0f6dd3aacf60
  Author: David Kiarie <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/i386/amd_iommu.c
    M hw/i386/amd_iommu.h

  Log Message:
  -----------
  update copyright notice

Signed-off-by: David Kiarie <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 310b3fe9e50a59f7911f8930bc523a7a0b84bb89
      
https://github.com/qemu/qemu/commit/310b3fe9e50a59f7911f8930bc523a7a0b84bb89
  Author: Paolo Bonzini <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M Makefile.objs
    M Makefile.target
    M trace/Makefile.objs

  Log Message:
  -----------
  build: get rid of target-obj-y

It is possible to specify the trace/ directory already in objs-y;
there is no need to have a separate unnest-vars invocation.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: f72036fad423a5c8135d3ea3c8ad6c4cc3191df4
      
https://github.com/qemu/qemu/commit/f72036fad423a5c8135d3ea3c8ad6c4cc3191df4
  Author: Paolo Bonzini <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M Makefile.objs
    M Makefile.target

  Log Message:
  -----------
  build: remove unnecessary assignments from Makefile.target

It is only necessary to clear block-obj-y because Makefile.objs
uses "+=" instead of "="; fix that and remove the assignment.
The other variables need not be cleared at all.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 74970d35b43036c4dbfaf4c8bef8517c2b1ec6aa
      
https://github.com/qemu/qemu/commit/74970d35b43036c4dbfaf4c8bef8517c2b1ec6aa
  Author: Paolo Bonzini <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M Makefile.target

  Log Message:
  -----------
  build: clean trace/generated-helpers.c

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: b0c214ce4145e35a39362b8a3da88b4908ca7c71
      
https://github.com/qemu/qemu/commit/b0c214ce4145e35a39362b8a3da88b4908ca7c71
  Author: Anthony PERARD <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M accel/accel.c

  Log Message:
  -----------
  accel: Allow to build QEMU without TCG or KVM support

Instead of deny build of QEMU without a default accelerator, simply
report an error when the user haven't passed -accel or -machine accel=
and TCG and KVM isn't builtin.

./configure already check that at least one accelerator is available.

Signed-off-by: Anthony PERARD <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 02cdcc96be77a5fdcb1647eb399efef37c107986
      
https://github.com/qemu/qemu/commit/02cdcc96be77a5fdcb1647eb399efef37c107986
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M util/oslib-posix.c

  Log Message:
  -----------
  oslib-posix: Ignore fcntl("/dev/null", F_SETFL, O_NONBLOCK) failure

Previous to OpenBSD 6.3 [1], fcntl(F_SETFL) is not permitted on
memory devices.
Trying this call sets errno to ENODEV ("not a memory device"):

  19 ENODEV Operation not supported by device.
    An attempt was made to apply an inappropriate function to a device,
    for example, trying to read a write-only device such as a printer.

Do not assert fcntl failures in this specific case (errno set to ENODEV)
on OpenBSD. This fixes:

  $ lm32-softmmu/qemu-system-lm32
  assertion "f != -1" failed: file "util/oslib-posix.c", line 247, function 
"qemu_set_nonblock"
  Abort trap (core dumped)

[1] The fix seems https://github.com/openbsd/src/commit/c2a35b387f9d3c
  "fcntl(F_SETFL) invokes the FIONBIO and FIOASYNC ioctls internally, so
  the memory devices (/dev/null, /dev/zero, etc) need to permit them."

Reviewed-by: Peter Maydell <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 7776ea6b49873ed18a2111e25ed8a6d94bd73db8
      
https://github.com/qemu/qemu/commit/7776ea6b49873ed18a2111e25ed8a6d94bd73db8
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: Disable W^X on OpenBSD

Since OpenBSD 6.0 [1], W^X is enforced by default [2].
TCG requires WX access. Disable W^X if it is available.
This fixes:

  # lm32-softmmu/qemu-system-lm32
  Could not allocate dynamic translator buffer

  # sysctl kern.wxabort=1
  kern.wxabort: 0 -> 1
  # lm32-softmmu/qemu-system-lm32
  mmap: Not supported
  Abort trap (core dumped)
  # gdb -q lm32-softmmu/qemu-system-lm32 qemu-system-lm32.core
  (gdb) bt
  #0  0x000017e3c156c50a in _thread_sys___syscall () at {standard input}:5
  #1  0x000017e3c15e5d7a in *_libc_mmap (addr=Variable "addr" is not 
available.) at /usr/src/lib/libc/sys/mmap.c:47
  #2  0x000017e17d9abc8b in alloc_code_gen_buffer () at 
/usr/src/qemu/accel/tcg/translate-all.c:1064
  #3  0x000017e17d9abd04 in code_gen_alloc (tb_size=0) at 
/usr/src/qemu/accel/tcg/translate-all.c:1112
  #4  0x000017e17d9abe81 in tcg_exec_init (tb_size=0) at 
/usr/src/qemu/accel/tcg/translate-all.c:1149
  #5  0x000017e17d9897e9 in tcg_init (ms=0x17e45e456800) at 
/usr/src/qemu/accel/tcg/tcg-all.c:66
  #6  0x000017e17d9891b8 in accel_init_machine (acc=0x17e3c3f50800, 
ms=0x17e45e456800) at /usr/src/qemu/accel/accel.c:63
  #7  0x000017e17d989312 in configure_accelerator (ms=0x17e45e456800, 
progname=0x7f7fffff07b0 "lm32-softmmu/qemu-system-lm32") at 
/usr/src/qemu/accel/accel.c:111
  #8  0x000017e17d9d8616 in main (argc=1, argv=0x7f7fffff06b8, 
envp=0x7f7fffff06c8) at vl.c:4325

[1] https://www.openbsd.org/faq/upgrade60.html
[2] https://undeadly.org/cgi?action=article&sid=20160527203200

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 1505421a48a75a36d2b421355d11d7c47d76c6d0
      
https://github.com/qemu/qemu/commit/1505421a48a75a36d2b421355d11d7c47d76c6d0
  Author: Zhengui Li <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

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

  Log Message:
  -----------
  scsi-disk: Fix crash if request is invaild or disk is no medium

Qemu will crash with the assertion error that "assert(r->req.aiocb !=
NULL)" in scsi_read_complete if request is invaild or disk is no medium.
The error is below:
qemu-kvm: hw/scsi/scsi_disk.c:299: scsi_read_complete: Assertion
`r->req.aiocb != NULL' failed.

This patch add a funtion scsi_read_complete_noio to fix it.

Signed-off-by: Zhengui Li <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 811a75ba51fccc8b365bafe8d79d6043ce0566e4
      
https://github.com/qemu/qemu/commit/811a75ba51fccc8b365bafe8d79d6043ce0566e4
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: use ldn_le_p()/stn_le_p()

Instead of using the open-coded versions, use the helper already
present as this makes the code easier to read and less error-prone.

Signed-off-by: Sven Schnelle <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>


  Commit: f08ec2b82a7de4f988d4def0f7c1ee69f47ceeee
      
https://github.com/qemu/qemu/commit/f08ec2b82a7de4f988d4def0f7c1ee69f47ceeee
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: use enum type for s->waiting

This makes the code easier to read - no functional change.

Signed-off-by: Sven Schnelle <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>


  Commit: 4ae63d371ef4a1ebc9d07fe88ccfd4981aa1ee4b
      
https://github.com/qemu/qemu/commit/4ae63d371ef4a1ebc9d07fe88ccfd4981aa1ee4b
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: use enum type for s->msg_action

This makes the code easier to read - no functional change.

Signed-off-by: Sven Schnelle <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>


  Commit: 82cf2bcfe67c8802c186cfe3332efe43042e2478
      
https://github.com/qemu/qemu/commit/82cf2bcfe67c8802c186cfe3332efe43042e2478
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c
    M hw/scsi/trace-events

  Log Message:
  -----------
  lsi: use SCSI phase names instead of numbers in trace

This makes trace logs much easier to read, especially for
people who are not fluent in SCSI.

Signed-off-by: Sven Schnelle <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>


  Commit: 07163c99a9870d38d010f3528424525d7f7505b9
      
https://github.com/qemu/qemu/commit/07163c99a9870d38d010f3528424525d7f7505b9
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: return dfifo value

Code was assigning DFIFO, but didn't return the value to users.

Signed-off-by: Sven Schnelle <address@hidden>
Message-Id: <address@hidden>


  Commit: e6c165f364c669b1357f15602ae3bd1d12357135
      
https://github.com/qemu/qemu/commit/e6c165f364c669b1357f15602ae3bd1d12357135
  Author: Sven Schnelle <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M hw/scsi/lsi53c895a.c

  Log Message:
  -----------
  lsi: 810/895A are always little endian

Signed-off-by: Sven Schnelle <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 494d199727ba248c96326b4e1c97f86eb11a5ec7
      
https://github.com/qemu/qemu/commit/494d199727ba248c96326b4e1c97f86eb11a5ec7
  Author: Wei Yang <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M exec.c

  Log Message:
  -----------
  exec.c: refactor function flatview_add_to_dispatch()

flatview_add_to_dispatch() registers page based on the condition of
*section*, which may looks like this:

    |s|PPPPPPP|s|

where s stands for subpage and P for page.

The procedure of this function could be described as:

    - register first subpage
    - register page
    - register last subpage

This means the procedure could be simplified into these three steps
instead of a loop iteration.

This patch refactors the function into three corresponding steps and
adds some comment to clarify it.

Signed-off-by: Wei Yang <address@hidden>
Message-Id: <address@hidden>
[Paolo: move exit before adjustment of remain.offset_within_*,
 otherwise int128_get64 fails when a region is 2^64 bytes long]
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 611dbe46093d901cf01c1b252dd39441b95d1c35
      
https://github.com/qemu/qemu/commit/611dbe46093d901cf01c1b252dd39441b95d1c35
  Author: Li Qiang <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M qom/cpu.c

  Log Message:
  -----------
  qom: cpu: destroy work_mutex in cpu_common_finalize

Commit 376692b9dc6(cpus: protect work list with work_mutex)
initialize a work_mutex in cpu_common_initfn, however forget
to destroy it. This will cause resource leak when hotunplug cpu
or hotplug cpu fails.

Signed-off-by: Li Qiang <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: fd4a5fd4639bb1bfd04144fca85856d825e00ab4
      
https://github.com/qemu/qemu/commit/fd4a5fd4639bb1bfd04144fca85856d825e00ab4
  Author: Daniel P. Berrange <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M chardev/char-socket.c
    M chardev/char.c
    M qapi/char.json
    M qemu-options.hx

  Log Message:
  -----------
  chardev: add support for authorization for TLS clients

Currently any client which can complete the TLS handshake is able to use
a chardev server. The server admin can turn on the 'verify-peer' option
for the x509 creds to require the client to provide a x509
certificate. This means the client will have to acquire a certificate
from the CA before they are permitted to use the chardev server. This is
still a fairly low bar.

This adds a 'tls-authz=OBJECT-ID' option to the socket chardev backend
which takes the ID of a previously added 'QAuthZ' object instance. This
will be used to validate the client's x509 distinguished name. Clients
failing the check will not be permitted to use the chardev server.

For example to setup authorization that only allows connection from a
client whose x509 certificate distinguished name contains 'CN=fred', you
would use:

  $QEMU -object tls-creds-x509,id=tls0,dir=/home/berrange/qemutls,\
                endpoint=server,verify-peer=yes \
        -object authz-simple,id=authz0,identity=CN=laptop.example.com,,\
                O=Example Org,,L=London,,ST=London,,C=GB \
        -chardev socket,host=127.0.0.1,port=9000,server,\
                 tls-creds=tls0,tls-authz=authz0 \
        ...other qemu args...

Signed-off-by: Daniel P. Berrange <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>


  Commit: 328eb60dc1a19448b36eb63901ca0b8f87ed6f57
      
https://github.com/qemu/qemu/commit/328eb60dc1a19448b36eb63901ca0b8f87ed6f57
  Author: Paolo Bonzini <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M scripts/qemu-gdb.py
    M scripts/qemugdb/coroutine.py
    M scripts/qemugdb/mtree.py
    M scripts/qemugdb/tcg.py

  Log Message:
  -----------
  qemugdb: fix licensing

qemu-gdb.py was committed after 2012-01-13, so the notice about
GPL v2-only contributions does not apply.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 377b155bde451d5ac545fbdcdfbf6ca17a4228f5
      
https://github.com/qemu/qemu/commit/377b155bde451d5ac545fbdcdfbf6ca17a4228f5
  Author: Peter Maydell <address@hidden>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M Makefile.objs
    M Makefile.target
    M accel/accel.c
    M block/iscsi.c
    M chardev/char-socket.c
    M chardev/char.c
    M configure
    M contrib/elf2dmp/main.c
    M exec.c
    M hw/i386/amd_iommu.c
    M hw/i386/amd_iommu.h
    M hw/i386/pc.c
    M hw/riscv/Kconfig
    M hw/scsi/lsi53c895a.c
    M hw/scsi/scsi-disk.c
    M hw/scsi/trace-events
    M hw/scsi/virtio-scsi.c
    M hw/vfio/Kconfig
    M memory.c
    M qapi/char.json
    M qemu-options.hx
    M qom/cpu.c
    M scripts/qemu-gdb.py
    M scripts/qemugdb/coroutine.py
    M scripts/qemugdb/mtree.py
    M scripts/qemugdb/tcg.py
    M target/i386/Makefile.objs
    M target/i386/cpu.c
    M target/i386/cpu.h
    M tests/test-qgraph.c
    M trace/Makefile.objs
    M util/oslib-posix.c

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

* allow building QEMU without TCG or KVM support (Anthony)
* update AMD IOMMU copyright (David)
* compilation fixes for GCC and BSDs (Alexey, David, Paolo, Philippe)
* coalesced I/O bugfix (Jagannathan)
* Processor Tracing cpuid fix (Luwei)
* Kconfig fixes (Paolo, David)
* Cleanups (Paolo, Wei)
* PVH vs. multiboot fix (Stefano)
* LSI bugfixes (Sven)
* elf2dmp Coverity fix (Victor)
* scsi-disk fix (Zhengui)
* authorization support for chardev TLS (Daniel)

# gpg: Signature made Mon 11 Mar 2019 16:12:00 GMT
# gpg:                using RSA key BFFBD25F78C7AE83
# gpg: Good signature from "Paolo Bonzini <address@hidden>" [full]
# gpg:                 aka "Paolo Bonzini <address@hidden>" [full]
# 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: (31 commits)
  qemugdb: fix licensing
  chardev: add support for authorization for TLS clients
  qom: cpu: destroy work_mutex in cpu_common_finalize
  exec.c: refactor function flatview_add_to_dispatch()
  lsi: 810/895A are always little endian
  lsi: return dfifo value
  lsi: use SCSI phase names instead of numbers in trace
  lsi: use enum type for s->msg_action
  lsi: use enum type for s->waiting
  lsi: use ldn_le_p()/stn_le_p()
  scsi-disk: Fix crash if request is invaild or disk is no medium
  configure: Disable W^X on OpenBSD
  oslib-posix: Ignore fcntl("/dev/null", F_SETFL, O_NONBLOCK) failure
  accel: Allow to build QEMU without TCG or KVM support
  build: clean trace/generated-helpers.c
  build: remove unnecessary assignments from Makefile.target
  build: get rid of target-obj-y
  update copyright notice
  lsi: check if SIGP bit is already set in Wait reselect
  lsi: implement basic SBCL functionality
  ...

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/c8761809385d...377b155bde45



reply via email to

[Prev in Thread] Current Thread [Next in Thread]