[PULL v2 00/17] virtio, pc: fixes, features

Michael S. Tsirkin posted 17 patches 4 years, 3 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch failed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200122064907.512501-1-mst@redhat.com
Maintainers: Richard Henderson <rth@twiddle.net>, Igor Mammedov <imammedo@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Greg Kurz <groug@kaod.org>, Thomas Huth <thuth@redhat.com>, Fam Zheng <fam@euphon.net>, Laurent Vivier <lvivier@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>
There is a newer version of this series
docs/specs/acpi_cpu_hotplug.txt   |  89 ++++++++++++++++++++++++++------
include/hw/pci-host/q35.h         |  10 ++++
include/hw/virtio/vhost-vsock.h   |   2 +
hw/9pfs/virtio-9p-device.c        |   1 +
hw/acpi/cpu.c                     |  18 +++++++
hw/i386/acpi-build.c              |   1 -
hw/i386/pc.c                      |   4 +-
hw/pci-host/q35.c                 |  84 +++++++++++++++++++++++++++---
hw/scsi/virtio-scsi.c             |   6 +++
hw/virtio/vhost-vsock.c           |  12 ++++-
hw/virtio/vhost.c                 |  39 +++++++-------
tests/qtest/bios-tables-test.c    |  23 +++++++--
tests/qtest/q35-test.c            | 105 ++++++++++++++++++++++++++++++++++++++
hw/acpi/trace-events              |   1 +
tests/data/acpi/q35/DSDT          | Bin 7879 -> 7869 bytes
tests/data/acpi/q35/DSDT.acpihmat | Bin 9203 -> 9193 bytes
tests/data/acpi/q35/DSDT.bridge   | Bin 7896 -> 7886 bytes
tests/data/acpi/q35/DSDT.cphp     | Bin 8342 -> 8332 bytes
tests/data/acpi/q35/DSDT.dimmpxm  | Bin 9532 -> 9522 bytes
tests/data/acpi/q35/DSDT.ipmibt   | Bin 7954 -> 7944 bytes
tests/data/acpi/q35/DSDT.memhp    | Bin 9238 -> 9228 bytes
tests/data/acpi/q35/DSDT.mmio64   | Bin 9009 -> 8999 bytes
tests/data/acpi/q35/DSDT.numamem  | Bin 7885 -> 7875 bytes
23 files changed, 344 insertions(+), 51 deletions(-)
[PULL v2 00/17] virtio, pc: fixes, features
Posted by Michael S. Tsirkin 4 years, 3 months ago
Changes from v1:
    - add a missing expected file

The following changes since commit 3e08b2b9cb64bff2b73fa9128c0e49bfcde0dd40:

  Merge remote-tracking branch 'remotes/philmd-gitlab/tags/edk2-next-20200121' into staging (2020-01-21 15:29:25 +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 aefcaf9d1b3ebb30981627bd08f595211a648a62:

  i386:acpi: Remove _HID from the SMBus ACPI entry (2020-01-22 01:47:55 -0500)

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

Bugfixes all over the place.
CPU hotplug with secureboot.

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

----------------------------------------------------------------
Corey Minyard (1):
      i386:acpi: Remove _HID from the SMBus ACPI entry

Dr. David Alan Gilbert (2):
      vhost: Add names to section rounded warning
      vhost: Only align sections for vhost-user

Igor Mammedov (8):
      q35: implement 128K SMRAM at default SMBASE address
      tests: q35: MCH: add default SMBASE SMRAM lock test
      acpi: cpuhp: spec: clarify 'CPU selector' register usage and endianness
      acpi: cpuhp: spec: fix 'Command data' description
      acpi: cpuhp: spec: clarify store into 'Command data' when 'Command field' == 0
      acpi: cpuhp: introduce 'Command data 2' field
      acpi: cpuhp: spec: add typical usecases
      acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command

Michael S. Tsirkin (1):
      bios-tables-test: document expected file update

Pan Nengyuan (5):
      virtio-9p-device: fix memleak in virtio_9p_device_unrealize
      virtio-9p-device: convert to new virtio_delete_queue
      virtio-scsi: delete vqs in unrealize to avoid memleaks
      virtio-scsi: convert to new virtio_delete_queue
      vhost-vsock: delete vqs in vhost_vsock_unrealize to avoid memleaks

 docs/specs/acpi_cpu_hotplug.txt   |  89 ++++++++++++++++++++++++++------
 include/hw/pci-host/q35.h         |  10 ++++
 include/hw/virtio/vhost-vsock.h   |   2 +
 hw/9pfs/virtio-9p-device.c        |   1 +
 hw/acpi/cpu.c                     |  18 +++++++
 hw/i386/acpi-build.c              |   1 -
 hw/i386/pc.c                      |   4 +-
 hw/pci-host/q35.c                 |  84 +++++++++++++++++++++++++++---
 hw/scsi/virtio-scsi.c             |   6 +++
 hw/virtio/vhost-vsock.c           |  12 ++++-
 hw/virtio/vhost.c                 |  39 +++++++-------
 tests/qtest/bios-tables-test.c    |  23 +++++++--
 tests/qtest/q35-test.c            | 105 ++++++++++++++++++++++++++++++++++++++
 hw/acpi/trace-events              |   1 +
 tests/data/acpi/q35/DSDT          | Bin 7879 -> 7869 bytes
 tests/data/acpi/q35/DSDT.acpihmat | Bin 9203 -> 9193 bytes
 tests/data/acpi/q35/DSDT.bridge   | Bin 7896 -> 7886 bytes
 tests/data/acpi/q35/DSDT.cphp     | Bin 8342 -> 8332 bytes
 tests/data/acpi/q35/DSDT.dimmpxm  | Bin 9532 -> 9522 bytes
 tests/data/acpi/q35/DSDT.ipmibt   | Bin 7954 -> 7944 bytes
 tests/data/acpi/q35/DSDT.memhp    | Bin 9238 -> 9228 bytes
 tests/data/acpi/q35/DSDT.mmio64   | Bin 9009 -> 8999 bytes
 tests/data/acpi/q35/DSDT.numamem  | Bin 7885 -> 7875 bytes
 23 files changed, 344 insertions(+), 51 deletions(-)


Re: [PULL v2 00/17] virtio, pc: fixes, features
Posted by Peter Maydell 4 years, 3 months ago
On Wed, 22 Jan 2020 at 06:49, Michael S. Tsirkin <mst@redhat.com> wrote:
>
> Changes from v1:
>     - add a missing expected file
>
> The following changes since commit 3e08b2b9cb64bff2b73fa9128c0e49bfcde0dd40:
>
>   Merge remote-tracking branch 'remotes/philmd-gitlab/tags/edk2-next-20200121' into staging (2020-01-21 15:29:25 +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 aefcaf9d1b3ebb30981627bd08f595211a648a62:
>
>   i386:acpi: Remove _HID from the SMBus ACPI entry (2020-01-22 01:47:55 -0500)
>
> ----------------------------------------------------------------
> virtio, pc: fixes, features
>
> Bugfixes all over the place.
> CPU hotplug with secureboot.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.

-- PMM

Re: [PULL v2 00/17] virtio, pc: fixes, features
Posted by no-reply@patchew.org 4 years, 3 months ago
Patchew URL: https://patchew.org/QEMU/20200122064907.512501-1-mst@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20200122064907.512501-1-mst@redhat.com
Subject: [PULL v2 00/17] virtio, pc: fixes, features

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 * [new tag]         patchew/20200122064907.512501-1-mst@redhat.com -> patchew/20200122064907.512501-1-mst@redhat.com
Switched to a new branch 'test'
920a20e i386:acpi: Remove _HID from the SMBus ACPI entry
cd87503 vhost: Only align sections for vhost-user
9ef0893 vhost: Add names to section rounded warning
61681af vhost-vsock: delete vqs in vhost_vsock_unrealize to avoid memleaks
ee96146 virtio-scsi: convert to new virtio_delete_queue
c221c38 virtio-scsi: delete vqs in unrealize to avoid memleaks
4a878a8 virtio-9p-device: convert to new virtio_delete_queue
addbaec virtio-9p-device: fix memleak in virtio_9p_device_unrealize
9a05a8d bios-tables-test: document expected file update
0478609 acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command
5765438 acpi: cpuhp: spec: add typical usecases
23f1ef6 acpi: cpuhp: introduce 'Command data 2' field
aa3f3fa acpi: cpuhp: spec: clarify store into 'Command data' when 'Command field' == 0
a245ce7 acpi: cpuhp: spec: fix 'Command data' description
d310d0d acpi: cpuhp: spec: clarify 'CPU selector' register usage and endianness
b6b3688 tests: q35: MCH: add default SMBASE SMRAM lock test
522df3f q35: implement 128K SMRAM at default SMBASE address

=== OUTPUT BEGIN ===
1/17 Checking commit 522df3f88659 (q35: implement 128K SMRAM at default SMBASE address)
2/17 Checking commit b6b368876a2f (tests: q35: MCH: add default SMBASE SMRAM lock test)
3/17 Checking commit d310d0d464eb (acpi: cpuhp: spec: clarify 'CPU selector' register usage and endianness)
4/17 Checking commit a245ce7de00c (acpi: cpuhp: spec: fix 'Command data' description)
5/17 Checking commit aa3f3fa5fc4e (acpi: cpuhp: spec: clarify store into 'Command data' when 'Command field' == 0)
6/17 Checking commit 23f1ef67a7a0 (acpi: cpuhp: introduce 'Command data 2' field)
7/17 Checking commit 5765438a9869 (acpi: cpuhp: spec: add typical usecases)
8/17 Checking commit 04786095aecf (acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command)
9/17 Checking commit 9a05a8d4907a (bios-tables-test: document expected file update)
WARNING: line over 80 characters
#23: FILE: tests/qtest/bios-tables-test.c:20:
+ * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts

total: 0 errors, 1 warnings, 38 lines checked

Patch 9/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
10/17 Checking commit addbaecb1d51 (virtio-9p-device: fix memleak in virtio_9p_device_unrealize)
11/17 Checking commit 4a878a8af35b (virtio-9p-device: convert to new virtio_delete_queue)
12/17 Checking commit c221c38c4eb0 (virtio-scsi: delete vqs in unrealize to avoid memleaks)
13/17 Checking commit ee961460de93 (virtio-scsi: convert to new virtio_delete_queue)
14/17 Checking commit 61681af92804 (vhost-vsock: delete vqs in vhost_vsock_unrealize to avoid memleaks)
15/17 Checking commit 9ef0893d58b6 (vhost: Add names to section rounded warning)
16/17 Checking commit cd875038bb0f (vhost: Only align sections for vhost-user)
ERROR: trailing whitespace
#49: FILE: hw/virtio/vhost.c:554:
+    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {   $

WARNING: line over 80 characters
#64: FILE: hw/virtio/vhost.c:569:
+        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa, mrs_size,

total: 1 errors, 1 warnings, 43 lines checked

Patch 16/17 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

17/17 Checking commit 920a20e6fd35 (i386:acpi: Remove _HID from the SMBus ACPI entry)
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200122064907.512501-1-mst@redhat.com/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PULL v2 00/17] virtio, pc: fixes, features
Posted by Michael S. Tsirkin 4 years, 3 months ago
On Tue, Jan 21, 2020 at 11:10:10PM -0800, no-reply@patchew.org wrote:
> Patchew URL: https://patchew.org/QEMU/20200122064907.512501-1-mst@redhat.com/
> 
> 
> 
> Hi,
> 
> This series seems to have some coding style problems. See output below for
> more information:
> 
> Type: series
> Message-id: 20200122064907.512501-1-mst@redhat.com
> Subject: [PULL v2 00/17] virtio, pc: fixes, features
> 
> === TEST SCRIPT BEGIN ===
> #!/bin/bash
> git rev-parse base > /dev/null || exit 0
> git config --local diff.renamelimit 0
> git config --local diff.renames True
> git config --local diff.algorithm histogram
> ./scripts/checkpatch.pl --mailback base..
> === TEST SCRIPT END ===
> 
> From https://github.com/patchew-project/qemu
>  * [new tag]         patchew/20200122064907.512501-1-mst@redhat.com -> patchew/20200122064907.512501-1-mst@redhat.com
> Switched to a new branch 'test'
> 920a20e i386:acpi: Remove _HID from the SMBus ACPI entry
> cd87503 vhost: Only align sections for vhost-user
> 9ef0893 vhost: Add names to section rounded warning
> 61681af vhost-vsock: delete vqs in vhost_vsock_unrealize to avoid memleaks
> ee96146 virtio-scsi: convert to new virtio_delete_queue
> c221c38 virtio-scsi: delete vqs in unrealize to avoid memleaks
> 4a878a8 virtio-9p-device: convert to new virtio_delete_queue
> addbaec virtio-9p-device: fix memleak in virtio_9p_device_unrealize
> 9a05a8d bios-tables-test: document expected file update
> 0478609 acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command
> 5765438 acpi: cpuhp: spec: add typical usecases
> 23f1ef6 acpi: cpuhp: introduce 'Command data 2' field
> aa3f3fa acpi: cpuhp: spec: clarify store into 'Command data' when 'Command field' == 0
> a245ce7 acpi: cpuhp: spec: fix 'Command data' description
> d310d0d acpi: cpuhp: spec: clarify 'CPU selector' register usage and endianness
> b6b3688 tests: q35: MCH: add default SMBASE SMRAM lock test
> 522df3f q35: implement 128K SMRAM at default SMBASE address
> 
> === OUTPUT BEGIN ===
> 1/17 Checking commit 522df3f88659 (q35: implement 128K SMRAM at default SMBASE address)
> 2/17 Checking commit b6b368876a2f (tests: q35: MCH: add default SMBASE SMRAM lock test)
> 3/17 Checking commit d310d0d464eb (acpi: cpuhp: spec: clarify 'CPU selector' register usage and endianness)
> 4/17 Checking commit a245ce7de00c (acpi: cpuhp: spec: fix 'Command data' description)
> 5/17 Checking commit aa3f3fa5fc4e (acpi: cpuhp: spec: clarify store into 'Command data' when 'Command field' == 0)
> 6/17 Checking commit 23f1ef67a7a0 (acpi: cpuhp: introduce 'Command data 2' field)
> 7/17 Checking commit 5765438a9869 (acpi: cpuhp: spec: add typical usecases)
> 8/17 Checking commit 04786095aecf (acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command)
> 9/17 Checking commit 9a05a8d4907a (bios-tables-test: document expected file update)
> WARNING: line over 80 characters
> #23: FILE: tests/qtest/bios-tables-test.c:20:
> + * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts
> 
> total: 0 errors, 1 warnings, 38 lines checked
> 
> Patch 9/17 has style problems, please review.  If any of these errors
> are false positives report them to the maintainer, see
> CHECKPATCH in MAINTAINERS.
> 10/17 Checking commit addbaecb1d51 (virtio-9p-device: fix memleak in virtio_9p_device_unrealize)
> 11/17 Checking commit 4a878a8af35b (virtio-9p-device: convert to new virtio_delete_queue)
> 12/17 Checking commit c221c38c4eb0 (virtio-scsi: delete vqs in unrealize to avoid memleaks)
> 13/17 Checking commit ee961460de93 (virtio-scsi: convert to new virtio_delete_queue)
> 14/17 Checking commit 61681af92804 (vhost-vsock: delete vqs in vhost_vsock_unrealize to avoid memleaks)
> 15/17 Checking commit 9ef0893d58b6 (vhost: Add names to section rounded warning)
> 16/17 Checking commit cd875038bb0f (vhost: Only align sections for vhost-user)
> ERROR: trailing whitespace
> #49: FILE: hw/virtio/vhost.c:554:
> +    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {   $
> 
> WARNING: line over 80 characters
> #64: FILE: hw/virtio/vhost.c:569:
> +        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa, mrs_size,
> 
> total: 1 errors, 1 warnings, 43 lines checked
> 
> Patch 16/17 has style problems, please review.  If any of these errors
> are false positives report them to the maintainer, see
> CHECKPATCH in MAINTAINERS.
> 
> 17/17 Checking commit 920a20e6fd35 (i386:acpi: Remove _HID from the SMBus ACPI entry)


This is benighn, will fix with a follow-up patch.

> === OUTPUT END ===
> 
> Test command exited with code: 1
> 
> 
> The full log is available at
> http://patchew.org/logs/20200122064907.512501-1-mst@redhat.com/testing.checkpatch/?type=message.
> ---
> Email generated automatically by Patchew [https://patchew.org/].
> Please send your feedback to patchew-devel@redhat.com