From patchwork Wed Jul 8 17:25:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 278244 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=-10.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED 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 891FDC433E0 for ; Wed, 8 Jul 2020 21:32:06 +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 39804206DF for ; Wed, 8 Jul 2020 21:32:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="f+bJ6iwn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 39804206DF 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]:37054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtHfh-0004Za-3W for qemu-devel@archiver.kernel.org; Wed, 08 Jul 2020 17:32:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtHb1-0007Lq-Qu for qemu-devel@nongnu.org; Wed, 08 Jul 2020 17:27:15 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:28871 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jtHay-0001uE-4X for qemu-devel@nongnu.org; Wed, 08 Jul 2020 17:27:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594243631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uBT8eRmgazDE8HmBR8SE0wg5tL1h7e2ESNuR88aZYgE=; b=f+bJ6iwnCoZlm09Gcdc0Kf1+70kP3v7wyvF3X2EKR3bwoOlOuMbiVe9FQ1WKJF6UhTheQE 5JPMVUlNjQqlyV1D9vqCHpAjNhLWMC4FkOOsLXNNEWcCJerdg3vOhYyRbLk5q8ienbnfhy /Rg2PAdixtZD9bqK6Hl9LS1510tSbLs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-PNjo1Q4UPjO1gMvK3OAGsw-1; Wed, 08 Jul 2020 13:25:44 -0400 X-MC-Unique: PNjo1Q4UPjO1gMvK3OAGsw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 92645107B7C6 for ; Wed, 8 Jul 2020 17:25:43 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5418B119DED for ; Wed, 8 Jul 2020 17:25:43 +0000 (UTC) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL v2 00/52] Misc patches for QEMU 5.1 soft freeze Date: Wed, 8 Jul 2020 13:25:39 -0400 Message-Id: <20200708172542.25012-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=205.139.110.61; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/07 17:25:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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_H2=-1, 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The following changes since commit eb2c66b10efd2b914b56b20ae90655914310c925: Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2020-07-06' into staging (2020-07-07 19:47:26 +0100) are available in the Git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to 392f34e59755f99d69586a63e0f5d80a7ef67f94: apic: Report current_count via 'info lapic' (2020-07-08 10:01:08 -0400) ---------------------------------------------------------------- * Make checkpatch say 'qemu' instead of 'kernel' (Aleksandar) * Fix PSE guests with emulated NPT (Alexander B. #1) * Fix leak (Alexander B. #2) * HVF fixes (Roman, Cameron) * New Sapphire Rapids CPUID bits (Cathy) * cpus.c and softmmu/ cleanups (Claudio) * TAP driver tweaks (Daniel, Havard) * object-add bugfix and testcases (Eric A.) * Fix Coverity MIN_CONST and MAX_CONST (Eric B.) * "info lapic" improvement (Jan) * SSE fixes (Joseph) * "-msg guest-name" option (Mario) * support for AMD nested live migration (myself) * Small i386 TCG fixes (myself) * improved error reporting for Xen (myself) * fix "-cpu host -overcommit cpu-pm=on" (myself) * Add accel/Kconfig (Philippe) * KVM API cleanup (Philippe) * iscsi sense handling fixes (Yongji) * Misc bugfixes ---------------------------------------------------------------- v1->v2: add TCG stub for "target/i386: fix IEEE SSE floating-point exception raising" remove "cpu-timers, icount: new modules" due to s390 failures remove "chardev/tcp: fix error message double free error" which was merged independently add "apic: Report current_count via 'info lapic'" fix semantic conflict Aleksandar Markovic (1): checkpatch: Change occurences of 'kernel' to 'qemu' in user messages Alexander Boettcher (1): tcg/svm: use host cr4 during NPT page table walk Alexander Bulekov (1): pc: fix leak in pc_system_flash_cleanup_unused Cameron Esfahani (1): i386: hvf: Make long mode enter and exit clearer Cathy Zhang (2): target/i386: Add SERIALIZE cpu feature target/i386: Enable TSX Suspend Load Address Tracking feature Claudio Fontana (2): softmmu: move softmmu only files from root cpu-throttle: new module, extracted from cpus.c Daniel P. Berrangé (1): scripts: improve message when TAP based tests fail Eric Auger (3): qom: Introduce object_property_try_add_child() tests/qmp-cmd-test: Add qmp/object-add-duplicate-id tests/qmp-cmd-test: Add qmp/object-add-failure-modes Eric Blake (1): coverity: provide Coverity-friendly MIN_CONST and MAX_CONST Havard Skinnemoen (1): tests: Inject test name also when the test fails Jan Kiszka (1): apic: Report current_count via 'info lapic' Joseph Myers (2): target/i386: set SSE FTZ in correct floating-point state target/i386: fix IEEE SSE floating-point exception raising Luwei Kang (1): target/i386: Correct the warning message of Intel PT Mario Smarduch (1): util/qemu-error: prepend guest name to error message to identify affected VM owner Paolo Bonzini (7): KVM: add support for AMD nested live migration Makefile: simplify MINIKCONF rules target/i386: remove gen_io_end target/i386: implement undocumented "smsw r32" behavior KVM: x86: believe what KVM says about WAITPKG target/i386: sev: provide proper error reporting for query-sev-capabilities target/i386: sev: fail query-sev-capabilities if QEMU cannot use SEV Philippe Mathieu-Daudé (16): hw/core/null-machine: Do not initialize unused chardev backends MAINTAINERS: Fix KVM path expansion glob MAINTAINERS: Add an 'overall' entry for accelerators MAINTAINERS: Cover the HAX accelerator stub Makefile: Remove dangerous EOL trailing backslash Makefile: Write MINIKCONF variables as one entry per line accel/Kconfig: Extract accel selectors into their own config accel/Kconfig: Add the TCG selector accel/tcg: Add stub for probe_access() cpus: Move CPU code from exec.c to cpus-common.c accel/kvm: Let kvm_check_extension use global KVM state accel/kvm: Simplify kvm_check_extension() accel/kvm: Simplify kvm_check_extension_list() target/i386/kvm: Simplify get_para_features() target/i386/kvm: Simplify kvm_get_mce_cap_supported() target/i386/kvm: Simplify kvm_get_supported_[feature]_msrs() Roman Bolshakov (7): i386: hvf: Set env->eip in macvm_set_rip() i386: hvf: Move synchronize functions to sysemu i386: hvf: Add hvf_cpu_synchronize_pre_loadvm() i386: hvf: Move Guest LMA reset to macvm_set_cr0() i386: hvf: Don't duplicate register reset i386: hvf: Clean up synchronize functions MAINTAINERS: Add Cameron as HVF co-maintainer Thomas Huth (1): softmmu/vl: Remove the check for colons in -accel parameters Xie Yongji (2): iscsi: handle check condition status in retry loop iscsi: return -EIO when sense fields are meaningless Kconfig | 4 + Kconfig.host | 7 - MAINTAINERS | 29 +- Makefile | 12 +- Makefile.target | 7 +- accel/Kconfig | 9 + accel/kvm/kvm-all.c | 72 +-- accel/stubs/tcg-stub.c | 7 + block/iscsi.c | 22 +- cpus-common.c | 18 + exec.c | 22 - hw/core/null-machine.c | 5 + hw/hyperv/hyperv.c | 2 +- hw/i386/kvm/clock.c | 2 +- hw/i386/kvm/i8254.c | 4 +- hw/i386/kvm/ioapic.c | 2 +- hw/i386/pc_sysfw.c | 5 + hw/intc/apic.c | 18 - hw/intc/apic_common.c | 19 + hw/intc/arm_gic_kvm.c | 2 +- hw/intc/openpic_kvm.c | 2 +- hw/intc/xics_kvm.c | 2 +- hw/s390x/s390-stattrib-kvm.c | 2 +- include/hw/core/cpu.h | 37 -- include/hw/i386/apic_internal.h | 1 + include/qemu/error-report.h | 2 + include/qemu/main-loop.h | 5 + include/qemu/osdep.h | 21 +- include/qom/object.h | 26 +- include/sysemu/cpu-throttle.h | 68 +++ include/sysemu/hvf.h | 2 +- include/sysemu/hw_accel.h | 13 + include/sysemu/kvm.h | 2 +- migration/migration.c | 1 + migration/ram.c | 1 + qemu-options.hx | 12 +- qom/object.c | 21 +- qom/object_interfaces.c | 7 +- scripts/checkpatch.pl | 6 +- scripts/tap-driver.pl | 2 +- softmmu/Makefile.objs | 11 + arch_init.c => softmmu/arch_init.c | 0 balloon.c => softmmu/balloon.c | 0 softmmu/cpu-throttle.c | 122 ++++ cpus.c => softmmu/cpus.c | 107 +--- ioport.c => softmmu/ioport.c | 0 memory.c => softmmu/memory.c | 0 memory_mapping.c => softmmu/memory_mapping.c | 0 qtest.c => softmmu/qtest.c | 0 softmmu/vl.c | 14 +- target/arm/kvm.c | 18 +- target/arm/kvm32.c | 2 +- target/arm/kvm64.c | 15 +- target/i386/Makefile.objs | 1 + target/i386/cpu.c | 13 +- target/i386/cpu.h | 10 + target/i386/excp_helper.c | 4 +- target/i386/fpu_helper.c | 37 +- target/i386/gdbstub.c | 1 + target/i386/helper.c | 6 +- target/i386/helper.h | 1 + target/i386/hvf/hvf.c | 137 +---- target/i386/hvf/vmx.h | 17 +- target/i386/kvm.c | 143 +++-- target/i386/kvm_i386.h | 1 + target/i386/machine.c | 31 +- target/i386/monitor.c | 10 +- target/i386/ops_sse.h | 28 +- target/i386/sev-stub.c | 3 +- target/i386/sev.c | 27 +- target/i386/sev_i386.h | 2 +- target/i386/svm.h | 1 + target/i386/svm_helper.c | 7 +- target/i386/tcg-stub.c | 25 + target/i386/translate.c | 36 +- target/mips/kvm.c | 4 +- target/ppc/kvm.c | 34 +- target/s390x/cpu_models.c | 3 +- target/s390x/kvm.c | 30 +- tests/Makefile.include | 2 +- tests/qtest/qmp-cmd-test.c | 109 +++- tests/tcg/i386/Makefile.target | 4 + tests/tcg/i386/test-i386-sse-exceptions.c | 813 +++++++++++++++++++++++++++ util/qemu-error.c | 7 + 84 files changed, 1750 insertions(+), 587 deletions(-) create mode 100644 Kconfig create mode 100644 accel/Kconfig create mode 100644 include/sysemu/cpu-throttle.h rename arch_init.c => softmmu/arch_init.c (100%) rename balloon.c => softmmu/balloon.c (100%) create mode 100644 softmmu/cpu-throttle.c rename cpus.c => softmmu/cpus.c (95%) rename ioport.c => softmmu/ioport.c (100%) rename memory.c => softmmu/memory.c (100%) rename memory_mapping.c => softmmu/memory_mapping.c (100%) rename qtest.c => softmmu/qtest.c (100%) create mode 100644 target/i386/tcg-stub.c create mode 100644 tests/tcg/i386/test-i386-sse-exceptions.c