From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-28.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38090C433FE for ; Tue, 8 Dec 2020 19:39:38 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A03B423AFB for ; Tue, 8 Dec 2020 19:39:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A03B423AFB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:38238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmipk-0000S2-KO for qemu-devel@archiver.kernel.org; Tue, 08 Dec 2020 14:39:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmikH-0004i7-7r for qemu-devel@nongnu.org; Tue, 08 Dec 2020 14:33:58 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:24930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kmik5-0004dW-8C for qemu-devel@nongnu.org; Tue, 08 Dec 2020 14:33:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607456023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ahhecsOJorg2dnuWJbUFaxgETOzpHP4j/zRrz/IH2t0=; b=ag3qDXJaFwtBzdJKPjNpfE+rnuODE6NhpxZHw4jkY2bG1agTcNgRwi+mhIr3h4vrGiPBG2 fMnE4UYmjraAozwifCQcivzZwPIBEtDQAImJhr3NeNz5AafemFAhcbl5kzL59QmkMpcSoY jGroMghaNpfSt6X8N5QZUkZAIfBwGKo= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-384-EeBl56uXOUikae4QgnxKhQ-1; Tue, 08 Dec 2020 14:33:40 -0500 X-MC-Unique: EeBl56uXOUikae4QgnxKhQ-1 Received: by mail-wm1-f69.google.com with SMTP id d16so947951wmd.1 for ; Tue, 08 Dec 2020 11:33:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding; bh=ahhecsOJorg2dnuWJbUFaxgETOzpHP4j/zRrz/IH2t0=; b=ilBy1Mqd7VXrXEWt1ldfIz7lmCoa5VVLEuwvt0EtQaobeJm4ZqkTTHi8JEivp0jZNW L4KRYb5f1/FBi35KwzukTTQWW3MHgnL91KQJZzhUw06aX9ZXKGTv9bwro/X4lKzP5rMJ QTV76E0wZj9TVZZTXc70v+08SPcTDwMPHtD5pwBXRyt5oU+vchrxORm3LMXWSIq0IKDR g5ycNFzXNvn0WbJniJmSZPvjzjDuHPblKNDZR/ZnWznkGpd2JOjQhHSU5MlXZGp6LrXJ 9MXjymr75h3BE43uCezDZjmQ3RXyrW6TWfSTT5Vnq/Yqzisl+/yKklbE6cJd7J9ahKwi QhFQ== X-Gm-Message-State: AOAM530LqHVPh0SbIBJkRgVF4OVofwhfWx8BkJ6u6miaxGsn+QJNEfRP 8Uusoox33rQFZNOf2fZA8PkymV/GKUaX94iHFyPWg+5e7hhFLXFQ7MZ/FaaA/ma4o6n1old1DGL 1A3FfSWkU4FTAMDw61FNYvGhYXgRWkw0Wx2vZU4Uu92W7nFCvkKwb1srz4hAV X-Received: by 2002:a5d:60cb:: with SMTP id x11mr27042406wrt.0.1607456017370; Tue, 08 Dec 2020 11:33:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqITGtH7HsSKPHvKxjpQ8tn98V8vOsn3JiASusXM0NrXCD6Inpn3MpZMMxnbHR1cTLNJEVdA== X-Received: by 2002:a5d:60cb:: with SMTP id x11mr27042377wrt.0.1607456017011; Tue, 08 Dec 2020 11:33:37 -0800 (PST) Received: from redhat.com (bzq-79-176-44-197.red.bezeqint.net. [79.176.44.197]) by smtp.gmail.com with ESMTPSA id d9sm14484702wrc.87.2020.12.08.11.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 11:33:36 -0800 (PST) Date: Tue, 8 Dec 2020 14:33:33 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL 00/66] pc,pci,virtio: fixes, cleanups Message-ID: <20201208193307.646726-1-mst@redhat.com> MIME-Version: 1.0 X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The following changes since commit 553032db17440f8de011390e5a1cfddd13751b0b: Update version for v5.2.0 release (2020-12-08 15:55:19 +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 023e57b93a24f2e7901cf460a45cb5058fa23549: hw/virtio-pci Added AER capability. (2020-12-08 13:48:58 -0500) ---------------------------------------------------------------- pc,pci,virtio: fixes, cleanups Lots of fixes, cleanups. CPU hot-unplug improvements. A new AER property for virtio devices, adding a dummy AER capability. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Alex Chen (1): vhost-user-scsi: Fix memleaks in vus_proc_req() Andrew (2): hw/virtio-pci Added counter for pcie capabilities offsets. hw/virtio-pci Added AER capability. Cornelia Huck (1): hw: add compat machines for 6.0 Erich-McMillan (1): hw/i386/pc: add max combined fw size as machine configuration option Eugenio Pérez (5): memory: Rename memory_region_notify_one to memory_region_notify_iommu_one memory: Add IOMMUTLBEvent memory: Add IOMMU_NOTIFIER_DEVIOTLB_UNMAP IOMMUTLBNotificationType intel_iommu: Skip page walking on device iotlb invalidations memory: Skip bad range assertion if notifier is DEVIOTLB_UNMAP type Igor Mammedov (7): acpi: cpuhp: introduce 'firmware performs eject' status/control bits x86: acpi: introduce AcpiPmInfo::smi_on_cpu_unplug tests/acpi: allow expected files change x86: acpi: let the firmware handle pending "CPU remove" events in SMM tests/acpi: update expected files x86: ich9: factor out "guest_cpu_hotplug_features" x86: ich9: let firmware negotiate 'CPU hot-unplug with SMI' feature Jiahui Cen (2): fw_cfg: Refactor extra pci roots addition hw/arm/virt: Write extra pci roots into fw_cfg John Levon (1): virtio: reset device on bad guest index in virtio_load() Juan Quintela (26): failover: fix indentantion failover: Use always atomics for primary_should_be_hidden failover: primary bus is only used once, and where it is set failover: Remove unused parameter failover: Remove external partially_hotplugged property failover: qdev_device_add() returns err or dev set failover: Rename bool to failover_primary_hidden failover: g_strcmp0() knows how to handle NULL failover: Remove primary_device_opts failover: remove standby_id variable failover: Remove primary_device_dict failover: Remove memory leak failover: simplify virtio_net_find_primary() failover: should_be_hidden() should take a bool failover: Rename function to hide_device() failover: virtio_net_connect_failover_devices() does nothing failover: Rename to failover_find_primary_device() failover: simplify qdev_device_add() failover case failover: simplify qdev_device_add() failover: make sure that id always exist failover: remove failover_find_primary_device() error parameter failover: split failover_find_primary_device_id() failover: We don't need to cache primary_device_id anymore failover: Caller of this two functions already have primary_dev failover: simplify failover_unplug_primary failover: Remove primary_dev member Marc-André Lureau (8): libvhost-user: replace qemu/bswap.h with glibc endian.h libvhost-user: replace qemu/memfd.h usage libvhost-user: remove qemu/compiler.h usage libvhost-user: drop qemu/osdep.h dependency libvhost-user: make it a meson subproject libvhost-user: check memfd API libvhost-user: add a simple link test without glib .gitlab-ci: add build-libvhost-user Stefan Hajnoczi (4): contrib/vhost-user-blk: avoid g_return_val_if() input validation contrib/vhost-user-gpu: avoid g_return_val_if() input validation contrib/vhost-user-input: avoid g_return_val_if() input validation block/export: avoid g_return_val_if() input validation Yubo Miao (7): acpi/gpex: Extract two APIs from acpi_dsdt_add_pci acpi: Extract crs build form acpi_build.c acpi/gpex: Build tables for pxb acpi: Align the size to 128k unit-test: The files changed. unit-test: Add testcase for pxb unit-test: Add the binary file and clear diff.h Zenghui Yu (1): pcie_aer: Fix help message of pcie_aer_inject_error command docs/specs/acpi_cpu_hotplug.txt | 19 +- contrib/vhost-user-gpu/vugpu.h | 2 +- hw/virtio/virtio-pci.h | 4 + include/exec/memory.h | 40 +-- include/hw/acpi/aml-build.h | 22 ++ include/hw/acpi/cpu.h | 2 + include/hw/arm/virt.h | 1 + include/hw/boards.h | 3 + include/hw/i386/pc.h | 5 + include/hw/nvram/fw_cfg.h | 9 + include/hw/pci-host/gpex.h | 1 + include/hw/qdev-core.h | 28 +- include/hw/virtio/virtio-net.h | 9 +- include/qemu/vhost-user-server.h | 2 +- .../libvhost-user/libvhost-user-glib.h | 0 .../libvhost-user/libvhost-user.h | 0 block/export/vhost-user-blk-server.c | 6 +- contrib/vhost-user-blk/vhost-user-blk.c | 7 +- contrib/vhost-user-gpu/vhost-user-gpu.c | 4 +- contrib/vhost-user-input/main.c | 7 +- contrib/vhost-user-scsi/vhost-user-scsi.c | 5 +- hw/acpi/aml-build.c | 285 ++++++++++++++++++++ hw/acpi/cpu.c | 26 +- hw/arm/smmu-common.c | 13 +- hw/arm/smmuv3.c | 13 +- hw/arm/virt-acpi-build.c | 31 ++- hw/arm/virt.c | 18 +- hw/core/machine.c | 3 + hw/core/qdev.c | 19 +- hw/i386/acpi-build.c | 298 +-------------------- hw/i386/intel_iommu.c | 92 ++++--- hw/i386/pc.c | 74 +++-- hw/i386/pc_piix.c | 14 +- hw/i386/pc_q35.c | 13 +- hw/i386/pc_sysfw.c | 15 +- hw/isa/lpc_ich9.c | 16 +- hw/misc/tz-mpc.c | 32 ++- hw/net/virtio-net.c | 298 ++++++++------------- hw/nvram/fw_cfg.c | 23 ++ hw/pci-host/gpex-acpi.c | 166 ++++++++---- hw/ppc/spapr.c | 17 +- hw/ppc/spapr_iommu.c | 15 +- hw/s390x/s390-pci-inst.c | 27 +- hw/s390x/s390-virtio-ccw.c | 14 +- hw/virtio/vhost.c | 2 +- hw/virtio/virtio-iommu.c | 30 ++- hw/virtio/virtio-pci.c | 20 +- hw/virtio/virtio.c | 15 +- softmmu/memory.c | 29 +- softmmu/qdev-monitor.c | 41 +-- .../libvhost-user/libvhost-user-glib.c | 10 +- .../libvhost-user/libvhost-user.c | 126 +++++---- subprojects/libvhost-user/link-test.c | 45 ++++ tests/qtest/bios-tables-test.c | 58 +++- tests/vhost-user-bridge.c | 2 +- tools/virtiofsd/fuse_virtio.c | 2 +- .gitlab-ci.yml | 11 + contrib/libvhost-user/meson.build | 4 - contrib/vhost-user-blk/meson.build | 3 +- contrib/vhost-user-gpu/meson.build | 3 +- contrib/vhost-user-input/meson.build | 3 +- contrib/vhost-user-scsi/meson.build | 3 +- hmp-commands.hx | 4 +- hw/acpi/trace-events | 2 + meson.build | 7 +- subprojects/libvhost-user/meson.build | 36 +++ tests/data/acpi/pc/DSDT | Bin 5060 -> 5065 bytes tests/data/acpi/pc/DSDT.acpihmat | Bin 6385 -> 6390 bytes tests/data/acpi/pc/DSDT.bridge | Bin 6919 -> 6924 bytes tests/data/acpi/pc/DSDT.cphp | Bin 5524 -> 5529 bytes tests/data/acpi/pc/DSDT.dimmpxm | Bin 6714 -> 6719 bytes tests/data/acpi/pc/DSDT.hpbridge | Bin 5021 -> 5026 bytes tests/data/acpi/pc/DSDT.hpbrroot | Bin 3079 -> 3084 bytes tests/data/acpi/pc/DSDT.ipmikcs | Bin 5132 -> 5137 bytes tests/data/acpi/pc/DSDT.memhp | Bin 6419 -> 6424 bytes tests/data/acpi/pc/DSDT.numamem | Bin 5066 -> 5071 bytes tests/data/acpi/pc/DSDT.roothp | Bin 5256 -> 5261 bytes tests/data/acpi/q35/DSDT | Bin 7796 -> 7801 bytes tests/data/acpi/q35/DSDT.acpihmat | Bin 9121 -> 9126 bytes tests/data/acpi/q35/DSDT.bridge | Bin 7814 -> 7819 bytes tests/data/acpi/q35/DSDT.cphp | Bin 8260 -> 8265 bytes tests/data/acpi/q35/DSDT.dimmpxm | Bin 9450 -> 9455 bytes tests/data/acpi/q35/DSDT.ipmibt | Bin 7871 -> 7876 bytes tests/data/acpi/q35/DSDT.memhp | Bin 9155 -> 9160 bytes tests/data/acpi/q35/DSDT.mmio64 | Bin 8927 -> 8932 bytes tests/data/acpi/q35/DSDT.numamem | Bin 7802 -> 7807 bytes tests/data/acpi/q35/DSDT.tis | Bin 8402 -> 8407 bytes tests/data/acpi/virt/DSDT.pxb | Bin 0 -> 7802 bytes tests/meson.build | 3 +- tools/virtiofsd/meson.build | 3 +- 90 files changed, 1302 insertions(+), 858 deletions(-) rename {contrib => subprojects}/libvhost-user/libvhost-user-glib.h (100%) rename {contrib => subprojects}/libvhost-user/libvhost-user.h (100%) rename {contrib => subprojects}/libvhost-user/libvhost-user-glib.c (93%) rename {contrib => subprojects}/libvhost-user/libvhost-user.c (96%) create mode 100644 subprojects/libvhost-user/link-test.c delete mode 100644 contrib/libvhost-user/meson.build create mode 100644 subprojects/libvhost-user/meson.build create mode 100644 tests/data/acpi/virt/DSDT.pxb