qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 7df953: intel_iommu: Add support for translat


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 7df953: intel_iommu: Add support for translation for devic...
Date: Thu, 22 Oct 2015 06:00:09 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 7df953bd456da45f761064974820ab5c3fd7b2aa
      
https://github.com/qemu/qemu/commit/7df953bd456da45f761064974820ab5c3fd7b2aa
  Author: Knut Omang <address@hidden>
  Date:   2015-10-18 (Sun, 18 Oct 2015)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/pci-host/q35.c
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: Add support for translation for devices behind bridges

- Use a hash table indexed on bus pointers to store information about buses
  instead of using the bus numbers.
  Bus pointers are stored in a new VTDBus struct together with the vector
  of device address space pointers indexed by devfn.
- The bus number is still used for lookup for selective SID based invalidate,
  in which case the bus number is lazily resolved from the bus hash table and
  cached in a separate index.

Signed-off-by: Knut Omang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 794e8f301a17953efa78ab7538019ec43c59e82a
      
https://github.com/qemu/qemu/commit/794e8f301a17953efa78ab7538019ec43c59e82a
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-10-21 (Wed, 21 Oct 2015)

  Changed paths:
    M exec.c
    A include/qemu/mmap-alloc.h
    M util/Makefile.objs
    A util/mmap-alloc.c
    M util/oslib-posix.c

  Log Message:
  -----------
  exec: factor out duplicate mmap code

Anonymous and file-backed RAM allocation are now almost exactly the same.

Reduce code duplication by moving RAM mmap code out of oslib-posix.c and
exec.c.

Reported-by: Marc-André Lureau <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>

Tested-by: Thibaut Collet <address@hidden>


  Commit: 052bd52fa978d3f04bc476137ad6e1b9a697f9bd
      
https://github.com/qemu/qemu/commit/052bd52fa978d3f04bc476137ad6e1b9a697f9bd
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-10-21 (Wed, 21 Oct 2015)

  Changed paths:
    M net/net.c

  Log Message:
  -----------
  net: don't set native endianness

commit 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991
    vhost-net: tell tap backend about the vnet endianness
makes vhost net always try to set LE - even if that matches the
native endian-ness.

This makes it fail on older kernels on x86 without TUNSETVNETLE support.

To fix, make qemu_set_vnet_le/qemu_set_vnet_be skip the
ioctl if it matches the host endian-ness.

Reported-by: Marcel Apfelbaum <address@hidden>
Cc: Greg Kurz <address@hidden>
Cc: address@hidden
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Marcel Apfelbaum <address@hidden>


  Commit: 2ce68e4cf5be9b5176a3c3c372948d6340724d2d
      
https://github.com/qemu/qemu/commit/2ce68e4cf5be9b5176a3c3c372948d6340724d2d
  Author: Igor Mammedov <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost-backend.c
    M hw/virtio/vhost-user.c
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost-backend.h
    M include/hw/virtio/vhost.h
    M stubs/Makefile.objs
    A stubs/vhost.c

  Log Message:
  -----------
  vhost: add vhost_has_free_slot() interface

it will allow for other parts of QEMU check if it's safe
to map memory region during hotplug/runtime.
That way hotplug path will have a chance to cancel
hotplug operation instead of crashing in vhost_commit().

Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 3fad87881e55aaff659408dcf25fa204f89a7896
      
https://github.com/qemu/qemu/commit/3fad87881e55aaff659408dcf25fa204f89a7896
  Author: Igor Mammedov <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/mem/pc-dimm.c

  Log Message:
  -----------
  pc-dimm: add vhost slots limit check before commiting to hotplug

it allows safely cancel memory hotplug if vhost backend
doesn't support necessary amount of memory slots and prevents
QEMU crashing in vhost due to hitting vhost limit on amount
of supported memory ranges.

Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: aebf81680bf49c5953d7ae9ebb7b98c0f4dad8f3
      
https://github.com/qemu/qemu/commit/aebf81680bf49c5953d7ae9ebb7b98c0f4dad8f3
  Author: Igor Mammedov <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost.c

  Log Message:
  -----------
  vhost: fail backend intialization early

Don't initialize vhost backend if memslots number exceeds the supported
limit. This prevents failures down the road when backend
is actually started.

[MST: rewrite commit log]

Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 22de58fe152d68b248bc14efd7affe72286079e5
      
https://github.com/qemu/qemu/commit/22de58fe152d68b248bc14efd7affe72286079e5
  Author: Cornelia Huck <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    A docs/virtio-migration.txt

  Log Message:
  -----------
  virtio: add some migration doc

Try to cover the basics of virtio migration.

Signed-off-by: Cornelia Huck <address@hidden>
Reviewed-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Jason Wang <address@hidden>


  Commit: 751bcc3981d80594a3943166401af15b76781a5b
      
https://github.com/qemu/qemu/commit/751bcc3981d80594a3943166401af15b76781a5b
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: probe for memfd

Check if memfd_create() is part of system libc.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 1842bdfdbac2ec46f2934d8914c874db83dd1344
      
https://github.com/qemu/qemu/commit/1842bdfdbac2ec46f2934d8914c874db83dd1344
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    A linux-headers/asm-arm/unistd.h
    M linux-headers/asm-arm64/kvm.h
    A linux-headers/asm-arm64/unistd.h
    A linux-headers/asm-mips/unistd.h
    A linux-headers/asm-powerpc/unistd.h
    A linux-headers/asm-s390/unistd.h
    A linux-headers/asm-x86/unistd.h
    A linux-headers/asm-x86/unistd_32.h
    A linux-headers/asm-x86/unistd_64.h
    A linux-headers/asm-x86/unistd_x32.h
    M scripts/update-linux-headers.sh

  Log Message:
  -----------
  linux-headers: add unistd.h

New syscalls are not yet widely distributed. Add them to qemu
linux-headers include directory. Update based on v4.3-rc3 kernel headers.

Exclude mips for now, which is more problematic due to extra header
inclusion and probably unnecessary here.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: e2792004580e42b86345d141493b1f12ba358fd8
      
https://github.com/qemu/qemu/commit/e2792004580e42b86345d141493b1f12ba358fd8
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M util/Makefile.objs

  Log Message:
  -----------
  build-sys: split util-obj- on multi-lines

Make it easier to add new unrelated units with shorter lines.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: f04cf9239addd12d6be9e7ff137262755e3680d3
      
https://github.com/qemu/qemu/commit/f04cf9239addd12d6be9e7ff137262755e3680d3
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    A include/qemu/memfd.h
    M util/Makefile.objs
    A util/memfd.c

  Log Message:
  -----------
  util: add linux-only memfd fallback

Implement memfd_create() fallback if not available in system libc.
memfd_create() is still not included in glibc today, atlhough it's been
available since Linux 3.17 in Oct 2014.

memfd has numerous advantages over traditional shm/mmap for ipc memory
sharing with fd handler, which we are going to make use of for
vhost-user logging memory in following patches.

The next patches are going to introduce helpers to use best practices of
memfd usage and provide some compatibility fallback. memfd.c is thus
temporarily useless and eventually empty if memfd_create() is provided
by the system.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: d3592199ba3db504c6585115b9531b4cf7c50a0d
      
https://github.com/qemu/qemu/commit/d3592199ba3db504c6585115b9531b4cf7c50a0d
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M include/qemu/memfd.h
    M util/memfd.c

  Log Message:
  -----------
  util: add memfd helpers

Add qemu_memfd_alloc/free() helpers.

The function helps to allocate and seal shared memory.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 35f9b6ef3acc9d0546c395a566b04e63ca84e302
      
https://github.com/qemu/qemu/commit/35f9b6ef3acc9d0546c395a566b04e63ca84e302
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M util/memfd.c

  Log Message:
  -----------
  util: add fallback for qemu_memfd_alloc()

Add an open/unlink/mmap fallback for system that do not support
memfd (only available since 3.17, ~1y ago).

This patch may require additional SELinux policies to work for enforced
systems, but should fail gracefully in this case.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 636f4dddfe48ccabaf5198bba440354d6a268d62
      
https://github.com/qemu/qemu/commit/636f4dddfe48ccabaf5198bba440354d6a268d62
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost.c

  Log Message:
  -----------
  vhost: document log resizing

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: c2bea314f6a2870b847c79e2e11263c5f9334db7
      
https://github.com/qemu/qemu/commit/c2bea314f6a2870b847c79e2e11263c5f9334db7
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost-backend.c
    M hw/virtio/vhost-user.c
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost-backend.h

  Log Message:
  -----------
  vhost: add vhost_set_log_base op

Split VHOST_SET_LOG_BASE call in a seperate function callback, so that
type safety works and more arguments can be added in the next patches.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 1be0ac2109fbaca6e730ac578f0564507d173e2d
      
https://github.com/qemu/qemu/commit/1be0ac2109fbaca6e730ac578f0564507d173e2d
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost-user.c
    M include/hw/virtio/vhost-backend.h

  Log Message:
  -----------
  vhost-user: add vhost_user_requires_shm_log()

Check if the backend has VHOST_USER_PROTOCOL_F_LOG_SHMFD feature and
require a shared log.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 15324404f68cde561d0eeee3d18a7b203f57f095
      
https://github.com/qemu/qemu/commit/15324404f68cde561d0eeee3d18a7b203f57f095
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost.h

  Log Message:
  -----------
  vhost: alloc shareable log

If the backend is requires it, allocate shareable memory.

vhost_log_get() now uses 2 globals "vhost_log" and "vhost_log_shm", that
way there is a common non-shareable log and a common shareable one.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 9a78a5dd272a190d262b5ba5d4721ab93d48c564
      
https://github.com/qemu/qemu/commit/9a78a5dd272a190d262b5ba5d4721ab93d48c564
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost-backend.c
    M hw/virtio/vhost-user.c
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost-backend.h

  Log Message:
  -----------
  vhost-user: send log shm fd along with log_base

Send the shm for the dirty pages logging if the backend supports
VHOST_USER_PROTOCOL_F_LOG_SHMFD. Wait for a reply to make sure
the old log is no longer used.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: d2fc4402cb152d3e526f736d7d53dbd050ef8794
      
https://github.com/qemu/qemu/commit/d2fc4402cb152d3e526f736d7d53dbd050ef8794
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost-user.c
    M hw/virtio/vhost.c

  Log Message:
  -----------
  vhost-user: add a migration blocker

If VHOST_USER_PROTOCOL_F_LOG_SHMFD is not announced, block vhost-user
migration. The blocker is removed in vhost_dev_cleanup().

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 21e704256dea24baf93b169f5d7b0e7fe684bd15
      
https://github.com/qemu/qemu/commit/21e704256dea24baf93b169f5d7b0e7fe684bd15
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/net/vhost_net.c
    M hw/scsi/vhost-scsi.c
    M hw/virtio/vhost-backend.c
    M hw/virtio/vhost-user.c
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost-backend.h
    M include/hw/virtio/vhost.h

  Log Message:
  -----------
  vhost: use a function for each call

Replace the generic vhost_call() by specific functions for each
function call to help with type safety and changing arguments.

While doing this, I found that "unsigned long long" and "uint64_t" were
used interchangeably and causing compilation warnings, using uint64_t
instead, as the vhost & protocol specifies.

Signed-off-by: Marc-André Lureau <address@hidden>
[Fix enum usage and MQ - Thibaut Collet]
Signed-off-by: Thibaut Collet <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: c62b91e5804e7d2b1e8e253fc4031b4ea67a11f7
      
https://github.com/qemu/qemu/commit/c62b91e5804e7d2b1e8e253fc4031b4ea67a11f7
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M docs/specs/vhost-user.txt

  Log Message:
  -----------
  vhost-user: document migration log

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 69b32a6ce4e1a6096a496996fcda833eb54e81b9
      
https://github.com/qemu/qemu/commit/69b32a6ce4e1a6096a496996fcda833eb54e81b9
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M net/vhost-user.c
    M trace-events

  Log Message:
  -----------
  net: add trace_vhost_user_event

Replace error_report() and use tracing instead. It's not an error to get
a connection or a disconnection, so silence this and trace it instead.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: f6f56291de879827766d17b172465d4377ad2c11
      
https://github.com/qemu/qemu/commit/f6f56291de879827766d17b172465d4377ad2c11
  Author: Thibaut Collet <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/net/vhost_net.c
    M net/vhost-user.c

  Log Message:
  -----------
  vhost user: add support of live migration

Some vhost user backends are able to support live migration.
To provide this service the following features must be added:
1. Add the VIRTIO_NET_F_GUEST_ANNOUNCE capability to vhost-net when netdev
   backend is vhost-user.
2. Provide a nop receive callback to vhost-user.
   This callback is called by:
    *  qemu_announce_self after a migration to send fake RARP to avoid network
       outage for peers talking to the migrated guest.
   - For guest with GUEST_ANNOUNCE capabilities, guest already sends GARP
     when the bit VIRTIO_NET_S_ANNOUNCE is set.
     => These packets must be discarded.
   - For guest without GUEST_ANNOUNCE capabilities, migration termination
     is notified when the guest sends packets.
     => These packets can be discarded.
    * virtio_net_tx_bh with a dummy boot to send fake bootp/dhcp request.
      BIOS guest manages virtio driver to send 4 bootp/dhcp request in case of
      dummy boot.
      => These packets must be discarded.

Signed-off-by: Thibaut Collet <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 3e866365e1eb6bcfa2d01c21debb05b9e47a47f7
      
https://github.com/qemu/qemu/commit/3e866365e1eb6bcfa2d01c21debb05b9e47a47f7
  Author: Thibaut Collet <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M docs/specs/vhost-user.txt
    M hw/net/vhost_net.c
    M hw/virtio/vhost-user.c
    M include/hw/virtio/vhost-backend.h
    M include/net/vhost_net.h
    M net/vhost-user.c

  Log Message:
  -----------
  vhost user: add rarp sending after live migration for legacy guest

A new vhost user message is added to allow QEMU to ask to vhost user backend to
broadcast a fake RARP after live migration for guest without GUEST_ANNOUNCE
capability.

This new message is sent only if the backend supports the new
VHOST_USER_PROTOCOL_F_RARP protocol feature.
The payload of this new message is the MAC address of the guest (not known by
the backend). The MAC address is copied in the first 6 bytes of a u64 to avoid
to create a new payload message type.

This new message has no equivalent ioctl so a new callback is added in the
userOps structure to send the request.

Upon reception of this new message the vhost user backend must generate and
broadcast a fake RARP request to notify the migration is terminated.

Signed-off-by: Thibaut Collet <address@hidden>
[Rebased and fixed checkpatch errors - Marc-André]
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: de1372d466fb4a7bed13f64f50bff14aaa4a5931
      
https://github.com/qemu/qemu/commit/de1372d466fb4a7bed13f64f50bff14aaa4a5931
  Author: Thibaut Collet <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost-user.c

  Log Message:
  -----------
  vhost-user: use an enum helper for features mask

The VHOST_USER_PROTOCOL_FEATURE_MASK will be automatically updated when
adding new features to the enum.

Signed-off-by: Thibaut Collet <address@hidden>
[Adapted from mailing list discussion - Marc-André]
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 31190ed781a81d2de65cea405e4cb3441ab929fc
      
https://github.com/qemu/qemu/commit/31190ed781a81d2de65cea405e4cb3441ab929fc
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost.c
    M include/qemu/memfd.h
    M util/memfd.c

  Log Message:
  -----------
  vhost: add migration block if memfd failed

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: cf72b57f894dd47c32750cf51de1d195a19c5e48
      
https://github.com/qemu/qemu/commit/cf72b57f894dd47c32750cf51de1d195a19c5e48
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M tests/vhost-user-test.c

  Log Message:
  -----------
  vhost-user-test: move wait_for_fds() out

This function is a precondition for most vhost-user tests.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 82755ff202e96ad9bc74c1268481f96e50907ae1
      
https://github.com/qemu/qemu/commit/82755ff202e96ad9bc74c1268481f96e50907ae1
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M tests/vhost-user-test.c

  Log Message:
  -----------
  vhost-user-test: remove useless static check

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: ae31fb5491493c82fface26f7902da7130b70575
      
https://github.com/qemu/qemu/commit/ae31fb5491493c82fface26f7902da7130b70575
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M tests/vhost-user-test.c

  Log Message:
  -----------
  vhost-user-test: wrap server in TestServer struct

In the coming patches, a test will use several servers
simultaneously. Wrap the server in a struct, out of the global scope.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 704b216887ef4a6c0fe981206bd6d43f3b6863cd
      
https://github.com/qemu/qemu/commit/704b216887ef4a6c0fe981206bd6d43f3b6863cd
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M tests/vhost-user-test.c

  Log Message:
  -----------
  vhost-user-test: learn to tweak various qemu arguments

Add a new macro to make the qemu command line with other
values of memory size, and specific chardev id.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: b181974724e106c62e4d0ecbe085df09b8a482bb
      
https://github.com/qemu/qemu/commit/b181974724e106c62e4d0ecbe085df09b8a482bb
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M tests/vhost-user-test.c

  Log Message:
  -----------
  vhost-user-test: add live-migration test

This test checks that the log fd is given to the migration source, and
mark dirty pages during migration.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: 1d9edff78fa0b294d6084df76da89e20ee93fdab
      
https://github.com/qemu/qemu/commit/1d9edff78fa0b294d6084df76da89e20ee93fdab
  Author: Marc-André Lureau <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M tests/vhost-user-test.c

  Log Message:
  -----------
  vhost-user-test: check ownership during migration

Check that backend source and destination do not have simultaneous
ownership during migration.

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: f8d82b8eb81d3ea29325b4046fafa8ed41e32449
      
https://github.com/qemu/qemu/commit/f8d82b8eb81d3ea29325b4046fafa8ed41e32449
  Author: Eduardo Otubo <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M qemu-seccomp.c

  Log Message:
  -----------
  seccomp: add memfd_create to whitelist

This is used by memfd code.

Signed-off-by: Eduardo Otubo <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Thibaut Collet <address@hidden>


  Commit: e3fce97cf500c61f23df8e0245e08625fc375295
      
https://github.com/qemu/qemu/commit/e3fce97cf500c61f23df8e0245e08625fc375295
  Author: zhanghailiang <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/pci-host/piix.c

  Log Message:
  -----------
  piix: fix resource leak reported by Coverity

config_fd should be closed before return, or there will
be a resource leak error.

Signed-off-by: zhanghailiang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>


  Commit: 25a2a920dddcf72896d94b37b6048a8147bc3198
      
https://github.com/qemu/qemu/commit/25a2a920dddcf72896d94b37b6048a8147bc3198
  Author: Thibaut Collet <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/virtio/vhost.c

  Log Message:
  -----------
  vhost: set the correct queue index in case of migration with multiqueue

When a live migration is started the log address to mark dirty pages is provided
to the vhost backend through the vhost_dev_set_log function.
This function is called for each queue pairs but the queue index is wrongly set:
always set to the first queue pair. Then vhost backend lost descriptor addresses
of the queue pairs greater than 1 and behaviour of the vhost backend is
unpredictable.

The queue index is computed by taking account of the vq_index (to retrieve the
queue pair index) and calling the vhost_get_vq_index method of the backend.

Signed-off-by: Thibaut Collet <address@hidden>
Cc: address@hidden
Acked-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 4884b7bfe962e659c0e20c1d0de6f307d58f09be
      
https://github.com/qemu/qemu/commit/4884b7bfe962e659c0e20c1d0de6f307d58f09be
  Author: Zhu Guihua <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/i386/pc.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M include/hw/i386/pc.h

  Log Message:
  -----------
  i386: keep cpu_model field in MachineState uptodate

Update cpu_model in MachineState for i386, so that the field can be used
for cpu hotplug, instead of using a static variable.

This patch is rebased on the latest master.

Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Marcel Apfelbaum <address@hidden>
Acked-by: Andreas Färber <address@hidden>


  Commit: 3c23402d4032f69af44a87fdb8019ad3229a4f31
      
https://github.com/qemu/qemu/commit/3c23402d4032f69af44a87fdb8019ad3229a4f31
  Author: Laszlo Ersek <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M hw/isa/lpc_ich9.c

  Log Message:
  -----------
  hw/isa/lpc_ich9: inject the SMI on the VCPU that is writing to APM_CNT

Commit 4d00636e97b7 ("ich9: Add the lpc chip", Nov 14 2012) added the
ich9_apm_ctrl_changed() ioport write callback function such that it would
inject the SMI, in response to a write to the APM_CNT register, on the
first CPU, invariably.

Since this register is used by guest code to trigger an SMI synchronously,
the interrupt should be injected on the VCPU that is performing the write.

apm_ioport_writeb() is the .write callback of the "apm_ops"
MemoryRegionOps [hw/isa/apm.c]; it is parametrized to call
ich9_apm_ctrl_changed() by ich9_lpc_init() [hw/isa/lpc_ich9.c], via
apm_init(). Therefore this change affects no other board.

ich9_generate_smi() is an unrelated function that is called by the TCO
watchdog; a watchdog is likely in its right to (asynchronously) inject
interrupts on the first CPU only.

This patch allows the combined edk2/OVMF SMM driver stack to work with
multiple VCPUs on TCG, using both qemu-system-i386 and qemu-system-x86_64.

Cc: Paolo Bonzini <address@hidden>
Cc: Gerd Hoffmann <address@hidden>
Cc: Jordan Justen <address@hidden>
Cc: Michael Kinney <address@hidden>
Cc: "Michael S. Tsirkin" <address@hidden>
Signed-off-by: Laszlo Ersek <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>


  Commit: ca3e40e233e87f7b29442311736a82da01c0df7b
      
https://github.com/qemu/qemu/commit/ca3e40e233e87f7b29442311736a82da01c0df7b
  Author: Peter Maydell <address@hidden>
  Date:   2015-10-22 (Thu, 22 Oct 2015)

  Changed paths:
    M configure
    M docs/specs/vhost-user.txt
    A docs/virtio-migration.txt
    M exec.c
    M hw/i386/intel_iommu.c
    M hw/i386/pc.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M hw/isa/lpc_ich9.c
    M hw/mem/pc-dimm.c
    M hw/net/vhost_net.c
    M hw/pci-host/piix.c
    M hw/pci-host/q35.c
    M hw/scsi/vhost-scsi.c
    M hw/virtio/vhost-backend.c
    M hw/virtio/vhost-user.c
    M hw/virtio/vhost.c
    M include/hw/i386/intel_iommu.h
    M include/hw/i386/pc.h
    M include/hw/virtio/vhost-backend.h
    M include/hw/virtio/vhost.h
    M include/net/vhost_net.h
    A include/qemu/memfd.h
    A include/qemu/mmap-alloc.h
    A linux-headers/asm-arm/unistd.h
    A linux-headers/asm-arm64/unistd.h
    A linux-headers/asm-mips/unistd.h
    A linux-headers/asm-powerpc/unistd.h
    A linux-headers/asm-s390/unistd.h
    A linux-headers/asm-x86/unistd.h
    A linux-headers/asm-x86/unistd_32.h
    A linux-headers/asm-x86/unistd_64.h
    A linux-headers/asm-x86/unistd_x32.h
    M net/net.c
    M net/vhost-user.c
    M qemu-seccomp.c
    M scripts/update-linux-headers.sh
    M stubs/Makefile.objs
    A stubs/vhost.c
    M tests/vhost-user-test.c
    M trace-events
    M util/Makefile.objs
    A util/memfd.c
    A util/mmap-alloc.c
    M util/oslib-posix.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

vhost, pc, virtio features, fixes, cleanups

New features:
    VT-d support for devices behind a bridge
    vhost-user migration support

Signed-off-by: Michael S. Tsirkin <address@hidden>

# gpg: Signature made Thu 22 Oct 2015 12:39:19 BST using RSA key ID D28D5469
# gpg: Good signature from "Michael S. Tsirkin <address@hidden>"
# gpg:                 aka "Michael S. Tsirkin <address@hidden>"

* remotes/mst/tags/for_upstream: (37 commits)
  hw/isa/lpc_ich9: inject the SMI on the VCPU that is writing to APM_CNT
  i386: keep cpu_model field in MachineState uptodate
  vhost: set the correct queue index in case of migration with multiqueue
  piix: fix resource leak reported by Coverity
  seccomp: add memfd_create to whitelist
  vhost-user-test: check ownership during migration
  vhost-user-test: add live-migration test
  vhost-user-test: learn to tweak various qemu arguments
  vhost-user-test: wrap server in TestServer struct
  vhost-user-test: remove useless static check
  vhost-user-test: move wait_for_fds() out
  vhost: add migration block if memfd failed
  vhost-user: use an enum helper for features mask
  vhost user: add rarp sending after live migration for legacy guest
  vhost user: add support of live migration
  net: add trace_vhost_user_event
  vhost-user: document migration log
  vhost: use a function for each call
  vhost-user: add a migration blocker
  vhost-user: send log shm fd along with log_base
  ...

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


Compare: https://github.com/qemu/qemu/compare/c1bd8997438f...ca3e40e233e8

reply via email to

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