[PULL 00/24] virtio, pci, pc: fixes, features

Michael S. Tsirkin posted 24 patches 4 years, 4 months ago
Test asan failed
Test checkpatch failed
Test FreeBSD failed
Test docker-mingw@fedora failed
Test docker-clang@ubuntu failed
Test docker-quick@centos7 failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20191219132621.16595-1-mst@redhat.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Markus Armbruster <armbru@redhat.com>, Amit Shah <amit@kernel.org>, Paolo Bonzini <pbonzini@redhat.com>, Max Reitz <mreitz@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Eduardo Habkost <ehabkost@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Richard Henderson <rth@twiddle.net>, Eric Blake <eblake@redhat.com>, Fam Zheng <fam@euphon.net>
There is a newer version of this series
docs/interop/vhost-user.json            |  31 ++++
qapi/machine.json                       | 180 ++++++++++++++++++-
hw/acpi/hmat.h                          |  42 +++++
include/hw/pci/pci_host.h               |   4 +-
include/hw/virtio/virtio.h              |  18 ++
include/sysemu/numa.h                   |  63 +++++++
contrib/vhost-user-blk/vhost-user-blk.c | 108 +++++++-----
hw/acpi/hmat.c                          | 268 ++++++++++++++++++++++++++++
hw/block/virtio-blk.c                   |   9 +-
hw/char/virtio-serial-bus.c             |   8 +
hw/core/machine.c                       |  65 +++++++
hw/core/numa.c                          | 297 ++++++++++++++++++++++++++++++++
hw/i386/acpi-build.c                    |   5 +
hw/i386/intel_iommu.c                   |   7 +-
hw/input/virtio-input.c                 |   5 +-
hw/pci/pci_host.c                       |  25 +--
hw/scsi/vhost-user-scsi.c               |  24 +++
hw/scsi/virtio-scsi.c                   |   9 +-
hw/virtio/vhost-user.c                  |   8 +-
hw/virtio/virtio-balloon.c              |   7 +
hw/virtio/virtio-mmio.c                 |  14 ++
hw/virtio/virtio-pci.c                  |  14 +-
hw/virtio/virtio.c                      |  63 +++++--
tests/bios-tables-test.c                |  44 +++++
tests/numa-test.c                       | 213 +++++++++++++++++++++++
docs/interop/vhost-user.rst             |  32 ++++
hw/acpi/Kconfig                         |   7 +-
hw/acpi/Makefile.objs                   |   1 +
qemu-options.hx                         |  95 +++++++++-
tests/data/acpi/pc/APIC.acpihmat        | Bin 0 -> 128 bytes
tests/data/acpi/pc/DSDT.acpihmat        | Bin 0 -> 6455 bytes
tests/data/acpi/pc/HMAT.acpihmat        | Bin 0 -> 280 bytes
tests/data/acpi/pc/SRAT.acpihmat        | Bin 0 -> 280 bytes
tests/data/acpi/q35/APIC.acpihmat       | Bin 0 -> 128 bytes
tests/data/acpi/q35/DSDT.acpihmat       | Bin 0 -> 9203 bytes
tests/data/acpi/q35/HMAT.acpihmat       | Bin 0 -> 280 bytes
tests/data/acpi/q35/SRAT.acpihmat       | Bin 0 -> 280 bytes
37 files changed, 1558 insertions(+), 108 deletions(-)
create mode 100644 hw/acpi/hmat.h
create mode 100644 hw/acpi/hmat.c
create mode 100644 tests/data/acpi/pc/APIC.acpihmat
create mode 100644 tests/data/acpi/pc/DSDT.acpihmat
create mode 100644 tests/data/acpi/pc/HMAT.acpihmat
create mode 100644 tests/data/acpi/pc/SRAT.acpihmat
create mode 100644 tests/data/acpi/q35/APIC.acpihmat
create mode 100644 tests/data/acpi/q35/DSDT.acpihmat
create mode 100644 tests/data/acpi/q35/HMAT.acpihmat
create mode 100644 tests/data/acpi/q35/SRAT.acpihmat
[PULL 00/24] virtio, pci, pc: fixes, features
Posted by Michael S. Tsirkin 4 years, 4 months ago
The following changes since commit b0ca999a43a22b38158a222233d3f5881648bb4f:

  Update version for v4.2.0 release (2019-12-12 16:45:57 +0000)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream

for you to fetch changes up to d4fbea918a37c0586f1a0e15ac6ef04c9fc7b96b:

  vhost-user-scsi: reset the device if supported (2019-12-19 08:25:35 -0500)

----------------------------------------------------------------
virtio, pci, pc: fixes, features

Bugfixes all over the place.
HMAT support.
New flags for vhost-user-blk utility.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

----------------------------------------------------------------
Jean-Philippe Brucker (1):
      virtio-mmio: Clear v2 transport state on soft reset

Liu Jingqi (5):
      numa: Extend CLI to provide memory latency and bandwidth information
      numa: Extend CLI to provide memory side cache information
      hmat acpi: Build Memory Proximity Domain Attributes Structure(s)
      hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s)
      hmat acpi: Build Memory Side Cache Information Structure(s)

Michael Roth (1):
      virtio-pci: disable vring processing when bus-mastering is disabled

Michael S. Tsirkin (5):
      virtio: add ability to delete vq through a pointer
      virtio: make virtio_delete_queue idempotent
      virtio-input: convert to new virtio_delete_queue
      virtio: update queue size on guest write
      ACPI: add expected files for HMAT tests (acpihmat)

Micky Yun Chan (1):
      Implement backend program convention command for vhost-user-blk

Pan Nengyuan (2):
      virtio-balloon: fix memory leak while attach virtio-balloon device
      virtio-serial-bus: fix memory leak while attach virtio-serial-bus

Philippe Mathieu-Daudé (2):
      hw/pci/pci_host: Remove redundant PCI_DPRINTF()
      hw/pci/pci_host: Let pci_data_[read/write] use unsigned 'size' argument

Raphael Norwitz (2):
      vhost-user: add VHOST_USER_RESET_DEVICE to reset devices
      vhost-user-scsi: reset the device if supported

Stefan Hajnoczi (1):
      virtio: don't enable notifications during polling

Tao Xu (3):
      numa: Extend CLI to provide initiator information for numa nodes
      tests/numa: Add case for QMP build HMAT
      tests/bios-tables-test: add test cases for ACPI HMAT

Yi Sun (1):
      intel_iommu: fix bug to read DMAR_RTADDR_REG

 docs/interop/vhost-user.json            |  31 ++++
 qapi/machine.json                       | 180 ++++++++++++++++++-
 hw/acpi/hmat.h                          |  42 +++++
 include/hw/pci/pci_host.h               |   4 +-
 include/hw/virtio/virtio.h              |  18 ++
 include/sysemu/numa.h                   |  63 +++++++
 contrib/vhost-user-blk/vhost-user-blk.c | 108 +++++++-----
 hw/acpi/hmat.c                          | 268 ++++++++++++++++++++++++++++
 hw/block/virtio-blk.c                   |   9 +-
 hw/char/virtio-serial-bus.c             |   8 +
 hw/core/machine.c                       |  65 +++++++
 hw/core/numa.c                          | 297 ++++++++++++++++++++++++++++++++
 hw/i386/acpi-build.c                    |   5 +
 hw/i386/intel_iommu.c                   |   7 +-
 hw/input/virtio-input.c                 |   5 +-
 hw/pci/pci_host.c                       |  25 +--
 hw/scsi/vhost-user-scsi.c               |  24 +++
 hw/scsi/virtio-scsi.c                   |   9 +-
 hw/virtio/vhost-user.c                  |   8 +-
 hw/virtio/virtio-balloon.c              |   7 +
 hw/virtio/virtio-mmio.c                 |  14 ++
 hw/virtio/virtio-pci.c                  |  14 +-
 hw/virtio/virtio.c                      |  63 +++++--
 tests/bios-tables-test.c                |  44 +++++
 tests/numa-test.c                       | 213 +++++++++++++++++++++++
 docs/interop/vhost-user.rst             |  32 ++++
 hw/acpi/Kconfig                         |   7 +-
 hw/acpi/Makefile.objs                   |   1 +
 qemu-options.hx                         |  95 +++++++++-
 tests/data/acpi/pc/APIC.acpihmat        | Bin 0 -> 128 bytes
 tests/data/acpi/pc/DSDT.acpihmat        | Bin 0 -> 6455 bytes
 tests/data/acpi/pc/HMAT.acpihmat        | Bin 0 -> 280 bytes
 tests/data/acpi/pc/SRAT.acpihmat        | Bin 0 -> 280 bytes
 tests/data/acpi/q35/APIC.acpihmat       | Bin 0 -> 128 bytes
 tests/data/acpi/q35/DSDT.acpihmat       | Bin 0 -> 9203 bytes
 tests/data/acpi/q35/HMAT.acpihmat       | Bin 0 -> 280 bytes
 tests/data/acpi/q35/SRAT.acpihmat       | Bin 0 -> 280 bytes
 37 files changed, 1558 insertions(+), 108 deletions(-)
 create mode 100644 hw/acpi/hmat.h
 create mode 100644 hw/acpi/hmat.c
 create mode 100644 tests/data/acpi/pc/APIC.acpihmat
 create mode 100644 tests/data/acpi/pc/DSDT.acpihmat
 create mode 100644 tests/data/acpi/pc/HMAT.acpihmat
 create mode 100644 tests/data/acpi/pc/SRAT.acpihmat
 create mode 100644 tests/data/acpi/q35/APIC.acpihmat
 create mode 100644 tests/data/acpi/q35/DSDT.acpihmat
 create mode 100644 tests/data/acpi/q35/HMAT.acpihmat
 create mode 100644 tests/data/acpi/q35/SRAT.acpihmat


Re: [PULL 00/24] virtio, pci, pc: fixes, features
Posted by Peter Maydell 4 years, 4 months ago
On Thu, 19 Dec 2019 at 13:27, Michael S. Tsirkin <mst@redhat.com> wrote:
>
> The following changes since commit b0ca999a43a22b38158a222233d3f5881648bb4f:
>
>   Update version for v4.2.0 release (2019-12-12 16:45:57 +0000)
>
> are available in the Git repository at:
>
>   git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream
>
> for you to fetch changes up to d4fbea918a37c0586f1a0e15ac6ef04c9fc7b96b:
>
>   vhost-user-scsi: reset the device if supported (2019-12-19 08:25:35 -0500)
>
> ----------------------------------------------------------------
> virtio, pci, pc: fixes, features
>
> Bugfixes all over the place.
> HMAT support.
> New flags for vhost-user-blk utility.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>

Compile failure on OSX:
/Users/pm215/src/qemu-for-merges/hw/core/numa.c:427:20: error: format
specifies type 'unsigned char' but the argument has type 'int'
[-Werror,-Wformat]
                   node->level - 1);
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/Users/pm215/src/qemu-for-merges/include/qapi/error.h:166:35: note:
expanded from macro 'error_setg'
                        (fmt), ## __VA_ARGS__)
                                  ^~~~~~~~~~~
/Users/pm215/src/qemu-for-merges/hw/core/numa.c:440:20: error: format
specifies type 'unsigned char' but the argument has type 'int'
[-Werror,-Wformat]
                   node->level + 1);
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/Users/pm215/src/qemu-for-merges/include/qapi/error.h:166:35: note:
expanded from macro 'error_setg'
                        (fmt), ## __VA_ARGS__)
                                  ^~~~~~~~~~~
2 errors generated.

thanks
-- PMM

Re: [PULL 00/24] virtio, pci, pc: fixes, features
Posted by Michael S. Tsirkin 4 years, 3 months ago
On Fri, Dec 20, 2019 at 06:24:43PM +0000, Peter Maydell wrote:
> On Thu, 19 Dec 2019 at 13:27, Michael S. Tsirkin <mst@redhat.com> wrote:
> >
> > The following changes since commit b0ca999a43a22b38158a222233d3f5881648bb4f:
> >
> >   Update version for v4.2.0 release (2019-12-12 16:45:57 +0000)
> >
> > are available in the Git repository at:
> >
> >   git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream
> >
> > for you to fetch changes up to d4fbea918a37c0586f1a0e15ac6ef04c9fc7b96b:
> >
> >   vhost-user-scsi: reset the device if supported (2019-12-19 08:25:35 -0500)
> >
> > ----------------------------------------------------------------
> > virtio, pci, pc: fixes, features
> >
> > Bugfixes all over the place.
> > HMAT support.
> > New flags for vhost-user-blk utility.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> >
> 
> Compile failure on OSX:
> /Users/pm215/src/qemu-for-merges/hw/core/numa.c:427:20: error: format
> specifies type 'unsigned char' but the argument has type 'int'
> [-Werror,-Wformat]
>                    node->level - 1);
> ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /Users/pm215/src/qemu-for-merges/include/qapi/error.h:166:35: note:
> expanded from macro 'error_setg'
>                         (fmt), ## __VA_ARGS__)
>                                   ^~~~~~~~~~~
> /Users/pm215/src/qemu-for-merges/hw/core/numa.c:440:20: error: format
> specifies type 'unsigned char' but the argument has type 'int'
> [-Werror,-Wformat]
>                    node->level + 1);
> ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /Users/pm215/src/qemu-for-merges/include/qapi/error.h:166:35: note:
> expanded from macro 'error_setg'
>                         (fmt), ## __VA_ARGS__)
>                                   ^~~~~~~~~~~
> 2 errors generated.
> 
> thanks
> -- PMM


Could you pls check whether the following fixes it?
Thanks!

diff --git a/hw/core/numa.c b/hw/core/numa.c
index 33fda31a4c..747c9680b0 100644
--- a/hw/core/numa.c
+++ b/hw/core/numa.c
@@ -421,7 +421,7 @@ void parse_numa_hmat_cache(MachineState *ms, NumaHmatCacheOptions *node,
             ms->numa_state->hmat_cache[node->node_id][node->level - 1]->size)) {
         error_setg(errp, "Invalid size=%" PRIu64 ", the size of level=%" PRIu8
                    " should be less than the size(%" PRIu64 ") of "
-                   "level=%" PRIu8, node->size, node->level,
+                   "level=%u", node->size, node->level,
                    ms->numa_state->hmat_cache[node->node_id]
                                              [node->level - 1]->size,
                    node->level - 1);
@@ -434,7 +434,7 @@ void parse_numa_hmat_cache(MachineState *ms, NumaHmatCacheOptions *node,
             ms->numa_state->hmat_cache[node->node_id][node->level + 1]->size)) {
         error_setg(errp, "Invalid size=%" PRIu64 ", the size of level=%" PRIu8
                    " should be larger than the size(%" PRIu64 ") of "
-                   "level=%" PRIu8, node->size, node->level,
+                   "level=%u", node->size, node->level,
                    ms->numa_state->hmat_cache[node->node_id]
                                              [node->level + 1]->size,
                    node->level + 1);


Re: [PULL 00/24] virtio, pci, pc: fixes, features
Posted by Michael S. Tsirkin 4 years, 3 months ago
On Fri, Dec 20, 2019 at 06:24:43PM +0000, Peter Maydell wrote:
> On Thu, 19 Dec 2019 at 13:27, Michael S. Tsirkin <mst@redhat.com> wrote:
> >
> > The following changes since commit b0ca999a43a22b38158a222233d3f5881648bb4f:
> >
> >   Update version for v4.2.0 release (2019-12-12 16:45:57 +0000)
> >
> > are available in the Git repository at:
> >
> >   git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream
> >
> > for you to fetch changes up to d4fbea918a37c0586f1a0e15ac6ef04c9fc7b96b:
> >
> >   vhost-user-scsi: reset the device if supported (2019-12-19 08:25:35 -0500)
> >
> > ----------------------------------------------------------------
> > virtio, pci, pc: fixes, features
> >
> > Bugfixes all over the place.
> > HMAT support.
> > New flags for vhost-user-blk utility.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> >
> 
> Compile failure on OSX:
> /Users/pm215/src/qemu-for-merges/hw/core/numa.c:427:20: error: format
> specifies type 'unsigned char' but the argument has type 'int'
> [-Werror,-Wformat]
>                    node->level - 1);
> ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /Users/pm215/src/qemu-for-merges/include/qapi/error.h:166:35: note:
> expanded from macro 'error_setg'
>                         (fmt), ## __VA_ARGS__)
>                                   ^~~~~~~~~~~
> /Users/pm215/src/qemu-for-merges/hw/core/numa.c:440:20: error: format
> specifies type 'unsigned char' but the argument has type 'int'
> [-Werror,-Wformat]
>                    node->level + 1);
> ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> /Users/pm215/src/qemu-for-merges/include/qapi/error.h:166:35: note:
> expanded from macro 'error_setg'
>                         (fmt), ## __VA_ARGS__)
>                                   ^~~~~~~~~~~
> 2 errors generated.
> 
> thanks
> -- PMM


I think I fixed this up, can you try again with
new for_upstream at cd8b62554728373e3dcdbc450a3d76a9ce4e7beb please?