Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1776868rwi; Thu, 3 Nov 2022 08:58:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Itz0zctn85b+bn90ex9X2UaRmapeGEpP+rHQGLU5jlBs5Qj9NEG2xkiawojHITY2vJFbk X-Received: by 2002:a17:906:6a8d:b0:741:6a3b:536e with SMTP id p13-20020a1709066a8d00b007416a3b536emr30356736ejr.11.1667491105741; Thu, 03 Nov 2022 08:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491105; cv=none; d=google.com; s=arc-20160816; b=PEjoTKhjlqyGFvfe2bWP+Jj4mQpSfN7oPIXmGy0xAZySG6Jxc7GuhNGvxblZSNEq6b pr99z5Xwb0doCqQnVdTfrE7xvXW7LcxkosqC0/qGN6AciaETDGWPfCK4aLiX1XtK3BwY /ZIb8UGRIuL6Eiv7l3mxuNPpCEU0rIRARtxPE3sa1nAB9ZAPMJzjKnPSxFpP1tjbCvM/ VmrH8oidExNTQtiZ3M/1vAmCHVUtX5UpoABZMdqD+Ihla7u3OGqapchhgQ+M3apiUYcQ ko91Wcx3pJoR/2uh+IarJrFc8UCDZ3qjeJOJTB1JY+H4/JD+WJ+aX4DwGIJjmNnJt1+v SGSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ayp5B1FtOoX/awXyyNk+Et491AUBiGcW44dxue5Nqxo=; b=PQiuZG8pWVZcSVR2LvoUK2J23Wna3qqTHe9wXtaf4lOfXEhusjlXTkgHtiwqqPUMpZ ckGfpfKqQoxo3EMeXUzRiiWouOX0wKyp1VtTmt6AUbIHZfXN1rz9EZnbo0hI+d6QEdMK sT+jBvSTliG+saQc0/1zmZpk3VPe/CORRMaJJcflSmpkJRA8NC/LfeAECD+OfiFstYjh c1YVdPTOycGCLSAe5NhGe9JeLxiyeWoeolIFwGaA5idJLJtHhJvCoe1hRHtJvPEmO5Tw RSpJIah2gfDNgKnP/q3pnxQhx9tAsFZO7ea30H+FhSxAtY6GRK/S9SbOD3SK0Vy/upAO EQLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="O2J/vwkW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170906714a00b0077b21283d09si1208397ejj.349.2022.11.03.08.58.01; Thu, 03 Nov 2022 08:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="O2J/vwkW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232119AbiKCPSr (ORCPT + 97 others); Thu, 3 Nov 2022 11:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbiKCPSp (ORCPT ); Thu, 3 Nov 2022 11:18:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A1B415A07 for ; Thu, 3 Nov 2022 08:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667488669; 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=Ayp5B1FtOoX/awXyyNk+Et491AUBiGcW44dxue5Nqxo=; b=O2J/vwkWuYcIlCax1IKXc9CZTrJf1qDy6dKOw1KVev1a/R1ifF6EKnE1PvHjodtNs8fUJb XIaa/RIJmjeYu9qwUte86O1qXj29lcT51bSH9tognRBSXqBIo5ycz57+jBxjCvyLtkom17 yIKrrWt6WuYlgh5hGnS4XGjH4RWKNI8= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-399-JS9rjLoBMl2aSH0_BCSoug-1; Thu, 03 Nov 2022 11:17:47 -0400 X-MC-Unique: JS9rjLoBMl2aSH0_BCSoug-1 Received: by mail-ej1-f71.google.com with SMTP id hq18-20020a1709073f1200b007ade8dd3494so1475290ejc.2 for ; Thu, 03 Nov 2022 08:17:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ayp5B1FtOoX/awXyyNk+Et491AUBiGcW44dxue5Nqxo=; b=If9RiB+xzDdn4wF6+dCCYOZcnUFNwpJRRwZqQW4O82qz4pDYRhn3ELHjLE8f+RDhIt CwKDsTpuMJ6rorK76toK7WcVFpvk6Zsn21DRphp1yRqoX8I+b2A5O7kZDCTaf4WFzeRb 4V1345zHCnivJFBxOZ3tj2cIRyxbIp3JhPAoKnDs7MuHYFZ3DFsGzdlWD4VYpR1XFBnD dUQ5hhPgwnr9kgvAUbTQuwpkkpE5s0LlnBAgYuaZUb96GszHqRafghN8ezO3qcEL4IHa 6cYV+bC+4zYPQgSmWwjZFkI4huAvf4q0delAf38CIr6b58/5DEDteWHBAkEjwV5vvK35 hRBg== X-Gm-Message-State: ACrzQf0akAZ0iUSutGsz6PV+/hrIIRv9KRCtRirwgrVK655ooLAbHN4V 9YaJwo5hiIVLLrlDMc0ChU8ok+D2ATvTBCykXwWXnclMByuD5cZgK9o7/UiDST2EVLwwxNOaNTS gWD3P+qocwG/21UNqEPcItkDB X-Received: by 2002:a05:6402:204d:b0:463:153d:6790 with SMTP id bc13-20020a056402204d00b00463153d6790mr27934878edb.293.1667488666688; Thu, 03 Nov 2022 08:17:46 -0700 (PDT) X-Received: by 2002:a05:6402:204d:b0:463:153d:6790 with SMTP id bc13-20020a056402204d00b00463153d6790mr27934856edb.293.1667488666443; Thu, 03 Nov 2022 08:17:46 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:1c09:f536:3de6:228c? ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.googlemail.com with ESMTPSA id 1-20020a170906210100b007317f017e64sm595545ejt.134.2022.11.03.08.17.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 08:17:45 -0700 (PDT) Message-ID: <23bfd709-f99a-5a74-e4b9-1381b88453f1@redhat.com> Date: Thu, 3 Nov 2022 16:17:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH 36/44] KVM: x86: Do compatibility checks when onlining CPU Content-Language: en-US To: Sean Christopherson , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Matthew Rosato , Eric Farman , Vitaly Kuznetsov Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Atish Patra , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Isaku Yamahata , Fabiano Rosas , Michael Ellerman , Chao Gao , Thomas Gleixner , Yuan Yao References: <20221102231911.3107438-1-seanjc@google.com> <20221102231911.3107438-37-seanjc@google.com> From: Paolo Bonzini In-Reply-To: <20221102231911.3107438-37-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/3/22 00:19, Sean Christopherson wrote: > From: Chao Gao > > Do compatibility checks when enabling hardware to effectively add > compatibility checks when onlining a CPU. Abort enabling, i.e. the > online process, if the (hotplugged) CPU is incompatible with the known > good setup. This paragraph is not true with this patch being before "KVM: Rename and move CPUHP_AP_KVM_STARTING to ONLINE section". Paolo