Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE780C43334 for ; Fri, 24 Jun 2022 16:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbiFXQIh (ORCPT ); Fri, 24 Jun 2022 12:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbiFXQId (ORCPT ); Fri, 24 Jun 2022 12:08:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 158353C72E for ; Fri, 24 Jun 2022 09:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656086911; 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=7QYcSN6BSAGdmrZWhumL4g7TVew4M5eK8Stam8vA0Dw=; b=HgpIPeea8ZdLDQSZyddy1iJ/ogajSqSJyLfzLqTR0usJD9fP/WSX4zyEO3IYGgFGR2cFNU ljhpjHJqX7NtjwY+PqGM9iW18e/EV0urHLNE2atQILxdNzjEZ+HlQ4HqXazBTJ+PKtL2XI 2Gjp4s6mz320DrAArPCqIYwDjXK1Sa8= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-610-4PYy1YFPOciPTaP54fRFUQ-1; Fri, 24 Jun 2022 12:08:27 -0400 X-MC-Unique: 4PYy1YFPOciPTaP54fRFUQ-1 Received: by mail-ed1-f70.google.com with SMTP id n8-20020a05640205c800b00434fb0c150cso2123630edx.19 for ; Fri, 24 Jun 2022 09:08:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=7QYcSN6BSAGdmrZWhumL4g7TVew4M5eK8Stam8vA0Dw=; b=m5RMigZpW31SbG4gmDMtDClo7Q4RmRO9Zm+HF1gZ+TUoqio8fgYFrXWxtHtVDq7Ek3 OlW8Y+p/TQUe0R7SeZHkMzC/N5uM4EqJF9xk9kuwv7bAkQJKnHC9wuX6Dq8O4geGuIup 2lbVxhTOevgfg7ilN2pC+mTKsTi4D0bFpLGd27+A0w3jN1Xg2wlhhzWVHSlgLovR7Gv/ hIDAEPuwF7aUZp/CKe6GVR1qEjNGD1LzgPrTjsLplsQPlHA2CyF2F64qW2R71n/X7HGz qV6fayVYDFNkoJSXYsxB6vykforaj8NEQhGXzLt1ML2+hSxwaYfPKs8/Qc2L8JG72Uby tqNA== X-Gm-Message-State: AJIora+xf2NjYWWW1vGO/urzw/sDTkxDCQ3qEqYxMqty7C6ksD8aN/D0 7+75wrWnS89fs0CcTGoPFlkIr+E/dT5fse9vLdxTJxN8nlMH21ZfDoCZROqHJMrghCIB+M6LyKk D6JOWyQNfONz6 X-Received: by 2002:a05:6402:f14:b0:435:7f82:302b with SMTP id i20-20020a0564020f1400b004357f82302bmr18208488eda.57.1656086906398; Fri, 24 Jun 2022 09:08:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZeLb33f/incZ/Z1MTbmneeUPO/IcG0f4Ys9xu85Ypg4dXzFzZ7s19o9ly3jHyYFcIEpPsUA== X-Received: by 2002:a05:6402:f14:b0:435:7f82:302b with SMTP id i20-20020a0564020f1400b004357f82302bmr18208454eda.57.1656086906195; Fri, 24 Jun 2022 09:08:26 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id s3-20020a1709067b8300b0070efa110afcsm1333827ejo.83.2022.06.24.09.08.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jun 2022 09:08:25 -0700 (PDT) Message-ID: <413e22f2-2179-74f3-315b-2049d8751d80@redhat.com> Date: Fri, 24 Jun 2022 18:08:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v6 01/17] x86/cpufeatures: Introduce x2AVIC CPUID bit Content-Language: en-US To: Suravee Suthikulpanit , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: mlevitsk@redhat.com, seanjc@google.com, joro@8bytes.org, jon.grimm@amd.com, wei.huang2@amd.com, terry.bowman@amd.com References: <20220519102709.24125-1-suravee.suthikulpanit@amd.com> <20220519102709.24125-2-suravee.suthikulpanit@amd.com> From: Paolo Bonzini In-Reply-To: <20220519102709.24125-2-suravee.suthikulpanit@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 5/19/22 12:26, Suravee Suthikulpanit wrote: > Introduce a new feature bit for virtualized x2APIC (x2AVIC) in > CPUID_Fn8000000A_EDX [SVM Revision and Feature Identification]. > > Reviewed-by: Maxim Levitsky > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/include/asm/cpufeatures.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h > index 1d6826eac3e6..2721bd1e8e1e 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -343,6 +343,7 @@ > #define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */ > #define X86_FEATURE_V_VMSAVE_VMLOAD (15*32+15) /* Virtual VMSAVE VMLOAD */ > #define X86_FEATURE_VGIF (15*32+16) /* Virtual GIF */ > +#define X86_FEATURE_X2AVIC (15*32+18) /* Virtual x2apic */ > #define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* Virtual SPEC_CTRL */ > #define X86_FEATURE_SVME_ADDR_CHK (15*32+28) /* "" SVME addr check */ > Reviewed-by: Paolo Bonzini