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 AE069C433F5 for ; Fri, 18 Feb 2022 17:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237576AbiBRRSz (ORCPT ); Fri, 18 Feb 2022 12:18:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238568AbiBRRSp (ORCPT ); Fri, 18 Feb 2022 12:18:45 -0500 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 C091F7A9B5 for ; Fri, 18 Feb 2022 09:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645204674; 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=7dZcSV2Uv5l2PGNp5lATuM06Bp3rDpiylATyLlFeY84=; b=O2qnp8m1MDI4bOxZE0VBVcvej5pD1/eyGJM6CIXG+LQtemX6banYK/JNnGqRxBUXC2J5e+ nPrNB8gqduCSCsz2nwNzKGXNiPg4Ri2IMtCFavfl8jUTM5NuyDpUrH7hV1AFKCCOU724Xq sPaP8s5NDUV0Kz3XmOI801XKIen9KgM= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-144-1X3AobhdO_iNMFVvl8SEkg-1; Fri, 18 Feb 2022 12:17:53 -0500 X-MC-Unique: 1X3AobhdO_iNMFVvl8SEkg-1 Received: by mail-wr1-f70.google.com with SMTP id q8-20020adfb188000000b001e33a8cdbf4so3802668wra.16 for ; Fri, 18 Feb 2022 09:17:52 -0800 (PST) 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=7dZcSV2Uv5l2PGNp5lATuM06Bp3rDpiylATyLlFeY84=; b=VxK3kak+6VE2uWMO6UBB2fNa04mdBf4jAYXnP5xR+ZZOvrVW05wAlfXEYiRseBT0H2 ET8yITPDHMn78Tx3mgitYh9bTNcN4o+wdch1krGeIqcg68hsrxdBQ22qZY1CdH2V4wCS muDfHqTP/TVIoCG43AC7yOmSJxrzzgXoHWoFJej6z8wLMyYxEg37xay9Lfw3arv7/8d/ NmSP/QageiWBtpCWaGRpTVFlXMt9Y47QfNJyigAGCrBX6V9Yef2BHqd6ARtmZPi8a0Qb ysVF52nqbw9gJhCRnqyCkqWp0ApsGyuKW3N7n21aU6qy2239od1rl59n/d1qaliTLE95 IOcw== X-Gm-Message-State: AOAM5320wrdn6TR8t4iEnjnUR2/ORWFlMjjX8Ws/5cYY5xOdnt9piA3R MUUEFFMOhZvx/vXOrjClzmLDOs1seGcSjAtTegLd+sGlib4GwHfF4DM63LQrUsgrQWqqABbnd3B JQR25Zj3MQqFT X-Received: by 2002:a05:6000:18c8:b0:1e4:b8f4:da8f with SMTP id w8-20020a05600018c800b001e4b8f4da8fmr6969525wrq.199.1645204671852; Fri, 18 Feb 2022 09:17:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY5FTYmJEwXfkrd2Ezeeyz/sLJDt8iOSxwKTt+YEJIOAC62rZBIt4qJftKdXphpHZFmYhoGg== X-Received: by 2002:a05:6000:18c8:b0:1e4:b8f4:da8f with SMTP id w8-20020a05600018c800b001e4b8f4da8fmr6969512wrq.199.1645204671607; Fri, 18 Feb 2022 09:17:51 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id n15sm13833015wri.33.2022.02.18.09.17.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Feb 2022 09:17:50 -0800 (PST) Message-ID: Date: Fri, 18 Feb 2022 18:17:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 5/6] KVM: x86: make several AVIC callbacks optional Content-Language: en-US To: Sean Christopherson Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20220217180831.288210-1-pbonzini@redhat.com> <20220217180831.288210-6-pbonzini@redhat.com> From: Paolo Bonzini In-Reply-To: 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 2/18/22 17:23, Sean Christopherson wrote: > The "AVIC" callbacks are being deleted, not > made optional, it's kvm_x86_ops' APICv hooks that are becoming optional. Maybe "make several APIC virtualization callbacks optional". >> +KVM_X86_OP_OPTIONAL(apicv_post_state_restore) > > apicv_post_state_restore() isn't conditional, it's implemented and wired up > unconditionally by both VMX and SVM. True, on the other hand there's no reason why a hypothetical third vendor would have to support it. The call is conditional to apicv_active being true. Paolo