From nobody Mon May 6 22:15:25 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617290965; cv=none; d=zohomail.com; s=zohoarc; b=AL0tXt+Dk1+e7ju1z64jQT2vp014w5II4cCH4ehPNgG4Sw1nNFrZX0ezl+5Bw7ryXuj/E0PaBwP6kegoHvMVvRJLNlTlDZCGl4bX/niDkL82ag2LZVV8S4M/oNEMtZzij4Bu+IF6aFYIxN107GcbCjWOO2Hs/6BspKMoAj3OKqo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617290965; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eouiSVEHA2DpldbG4KgKOboFwtCaoy3z9k7jDn2b9vI=; b=cQKLazta+szsW9uYLWR8XA3PQPD11OAEkXvxjdt44hIjLomXT5hAaSmDfFeft7+JtgXNmGXQbD21zoNwI8jExWk99oS5FLnL74Sv3GdLKZRk0xZxT1hnwP+bX/8Gjnqx4QIvF3xcNA2F2jewn9QO4Dvla/LDDFc7iFO78GnPd6c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1617290965591354.4422572767261; Thu, 1 Apr 2021 08:29:25 -0700 (PDT) Received: from localhost ([::1]:59120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRzG8-0000Dx-HS for importer@patchew.org; Thu, 01 Apr 2021 11:29:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRz7g-0007zp-Ck for qemu-devel@nongnu.org; Thu, 01 Apr 2021 11:20:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:34062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRz7d-0005OY-Ld for qemu-devel@nongnu.org; Thu, 01 Apr 2021 11:20:40 -0400 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-377-tI7loeUmPveAWXLcvWAkXg-1; Thu, 01 Apr 2021 11:20:28 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4531018C89E6; Thu, 1 Apr 2021 15:20:27 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.40.194.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D7851001281; Thu, 1 Apr 2021 15:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617290435; 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: in-reply-to:in-reply-to:references:references; bh=eouiSVEHA2DpldbG4KgKOboFwtCaoy3z9k7jDn2b9vI=; b=HnMw06BM9E1FEZbl9AbET+9pcO9/nirbLIVGzU1pyu+4DW57WeLE0o1OtciYu2kDxrFong qAUPtDfs6W1L/afM3OGj++UvFaCWNSzZSt6t2AcZY+Ptx4uk/Q+MfV/57Us2pmrY5gP+vh hX8Xj2O//fg1p21SrvBiqHtMc/pvW3k= X-MC-Unique: tI7loeUmPveAWXLcvWAkXg-1 From: Vitaly Kuznetsov To: qemu-devel@nongnu.org, Paolo Bonzini Subject: [PATCH 1/2] i386: Add 'kvm-asyncpf-int' to kvm_default_props array Date: Thu, 1 Apr 2021 17:19:56 +0200 Message-Id: <20210401151957.408028-2-vkuznets@redhat.com> In-Reply-To: <20210401151957.408028-1-vkuznets@redhat.com> References: <20210401151957.408028-1-vkuznets@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=vkuznets@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=vkuznets@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: "Michael S. Tsirkin" , Richard Henderson , Eduardo Habkost , "Dr . David Alan Gilbert" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Just like all other KVM PV features, 'kvm-asyncpf-int' needs to be added to all CPU models when KVM is enabled or the feature will always remain 'off' unless specified explicitly on the command line. Signed-off-by: Vitaly Kuznetsov --- target/i386/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 6b3e9467f177..c7f8a8a8fec0 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -4244,6 +4244,7 @@ static PropValue kvm_default_props[] =3D { { "kvmclock", "on" }, { "kvm-nopiodelay", "on" }, { "kvm-asyncpf", "on" }, + { "kvm-asyncpf-int", "on" }, { "kvm-steal-time", "on" }, { "kvm-pv-eoi", "on" }, { "kvmclock-stable-bit", "on" }, --=20 2.30.2 From nobody Mon May 6 22:15:25 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617290895; cv=none; d=zohomail.com; s=zohoarc; b=knCdf2AQV7iP1TDz8Kq4R44Yjlb+7DFqkzs6YKNoR4NZqxw5sOzfcuxNArENlB5cAV/GD4ChlyOYDixNlmC8+4EeWy8X4AhwW4uTpmuDXLuQnrh+eQMgS09Z1Hzv0Pcl9Mw1/B/3gZAFJmo44bCr0ZF+SZ0ZP4iCjkzr2NiRqgw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617290895; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dTyQBYhxzQqR27Ruc5JaZXlCCIo/O+xYlXi1OCqM+Qw=; b=T8IM1VfpV3P8wdR6FsDexOsweLoPBE/v8x4TqJN2iDg3ix3oj6XQD5aTgcOOO+Pw3jLUKITKuGa2Oq9J2wlxkKP6RtkhB155vbz+NJU+oa+LBlXT/F4xE3BoTCgIbHi7fTk8wWggKhfbOL6m+DKzLwN0Doq62Ii0HrKF42wqZjo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1617290895418238.18821984376143; Thu, 1 Apr 2021 08:28:15 -0700 (PDT) Received: from localhost ([::1]:56954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRzF0-0007kt-BA for importer@patchew.org; Thu, 01 Apr 2021 11:28:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRz7a-0007vK-W5 for qemu-devel@nongnu.org; Thu, 01 Apr 2021 11:20:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRz7Z-0005N6-9v for qemu-devel@nongnu.org; Thu, 01 Apr 2021 11:20:34 -0400 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-2-JBxRCuv6N4KOz_yQkkkR2A-1; Thu, 01 Apr 2021 11:20:30 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B58D86B9FC; Thu, 1 Apr 2021 15:20:29 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.40.194.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id A0A0010074E1; Thu, 1 Apr 2021 15:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617290432; 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: in-reply-to:in-reply-to:references:references; bh=dTyQBYhxzQqR27Ruc5JaZXlCCIo/O+xYlXi1OCqM+Qw=; b=YMYujoLGmsEpIWE9XkypxpmNPc/Bl2Or2nZBuqf9Me6eyZZ9kkkGWiaBvuVb52JduSdxCc ojS8xALcGF0YCGXhLVn2TZ10xdHYpTVIEfBLX44RQB4yOdQSCWFpYURoBzNnPTa6cGLXTq qO1F7cYIWEaTkHtjF0R3vS/4mrBLE7M= X-MC-Unique: JBxRCuv6N4KOz_yQkkkR2A-1 From: Vitaly Kuznetsov To: qemu-devel@nongnu.org, Paolo Bonzini Subject: [PATCH 2/2] i386: Disable 'kvm-asyncpf-int' feature for machine types <= 5.1 Date: Thu, 1 Apr 2021 17:19:57 +0200 Message-Id: <20210401151957.408028-3-vkuznets@redhat.com> In-Reply-To: <20210401151957.408028-1-vkuznets@redhat.com> References: <20210401151957.408028-1-vkuznets@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=vkuznets@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=vkuznets@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: "Michael S. Tsirkin" , Richard Henderson , Eduardo Habkost , "Dr . David Alan Gilbert" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 'kvm-asyncpf-int' was implemented in QEMU-5.2 so older machine types should have it disabled to make migration to an older QEMU which does not support this feature possible. The issue went unnoticed probably because we also forgot to add 'kvm-asyncpf-int' to 'kvm_default_props[]' so it was rarely enabled. Fixes: db5daafab2 ("target/i386: support KVM_FEATURE_ASYNC_PF_INT") Signed-off-by: Vitaly Kuznetsov --- hw/i386/pc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 8a84b25a031e..04d5f76bf133 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -103,6 +103,7 @@ const size_t pc_compat_5_2_len =3D G_N_ELEMENTS(pc_comp= at_5_2); =20 GlobalProperty pc_compat_5_1[] =3D { { "ICH9-LPC", "x-smi-cpu-hotplug", "off" }, + { TYPE_X86_CPU, "kvm-asyncpf-int", "off" }, { TYPE_X86_CPU, "kvm-msi-ext-dest-id", "off" }, }; const size_t pc_compat_5_1_len =3D G_N_ELEMENTS(pc_compat_5_1); --=20 2.30.2