Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1800135rwi; Wed, 19 Oct 2022 15:51:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VLkImQklfkChP/tmr3g8eaqT/ENzIekTHQPU/+/RM6NWDX9qCYPDVFq0q8v2iWIrZWZJG X-Received: by 2002:a17:906:ef8b:b0:791:9980:b7b9 with SMTP id ze11-20020a170906ef8b00b007919980b7b9mr8626839ejb.636.1666219898193; Wed, 19 Oct 2022 15:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666219898; cv=none; d=google.com; s=arc-20160816; b=TK7tHQhvKaTsirybH+N0n7Itj9yY8cKmHMLQ1Mv1d5GBEavtUVOVz/hzxY72/ILPNM BYSrOf40jeo1fZSaQBh6whgTHDis61rPAfNt/1nOTrmxnue8rM3Ah9MHPEmE6uoOff80 r/UjNG29SLIHqttKM9nEQ5cItd6HNNmpVnkyFhEiZYZL3/Yph2E50i6366xpMSOt5F67 8Jyy1luepW1Hi4lwpgrPjBNXgebDdqXt4hMIUbfbcu7XXwBzPRx3MFj+0Gc+oL6hHQio nI99g8jlFO1qB/eF/H74m/kCQhbqsogRJXT8oLYDPmkWM481NcU5JeUqcp2mseTSr4Nf 4adA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lc7nEof8oNxTjR2TgiwAPvjHm//OCLDZ/hnb6eCYs60=; b=SwBiJEyNfApYbfVwMpAwm84WuD/FZgsUctCRA0ad3RwQSRVMrgzPOSyngIdavAaeK+ VtEz1G+OdveR9uu2+M/WvwoXfFH6HhIjJOGCDCFf1bvdWtCIs50yDod0fxeTBxzj6KtD 93G/q8jFRupGOblg6TqDkjN7o3VomFkqU9MSUhOf6LcLKe9VWPOpscZj+TC91PutTAhG i9CKnJ8cmv3PrVEYMiWRTLaN2TO+MT2Cp0CshYt5O4mvXCBYsU7ZLQy76rPX63MLbQdY OoytBd5qWsfEZDWxs9XY2DLdoR53peWiOVpx+LZWyRhuNJ6Uo7hyCNYZYurE9xFECUMS wFEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=HGPCbZUr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w23-20020aa7d297000000b00457f784f648si12935353edq.480.2022.10.19.15.51.12; Wed, 19 Oct 2022 15:51:38 -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=@google.com header.s=20210112 header.b=HGPCbZUr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbiJSWWQ (ORCPT + 99 others); Wed, 19 Oct 2022 18:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbiJSWWO (ORCPT ); Wed, 19 Oct 2022 18:22:14 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F037173596 for ; Wed, 19 Oct 2022 15:22:13 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id q10-20020a17090a304a00b0020b1d5f6975so1311813pjl.0 for ; Wed, 19 Oct 2022 15:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lc7nEof8oNxTjR2TgiwAPvjHm//OCLDZ/hnb6eCYs60=; b=HGPCbZUrDHdBVHRaWY50SoPN04wgSXoiM3jyszD7bVxUzze4tlx2F2sEVU085BI8Xn YAsH3vRWZYDL5RUk3DL9pct18PeCzjEVQqY077njbVmzDUB5xjiBbLSaj6ZE0zTPSjM4 8wYiNckByKH6HeJt6NMq/UlI8+78sxyCHJ9cDQ+ctOTzCQzztPMG03CIIQLP2YJHSr2N uFddX8aDHiUcPAw70YswY/qpyneHOfIQ4fj96yXq8PChcxG+yI3ZpNgsht4PHA+LFexQ waXhyXT4ox1DxWQa6U8mDXmZNfaXfn92TtdDe1q+KuzJWwaex1I+w+ohIp7wB/EwzLDf xOgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lc7nEof8oNxTjR2TgiwAPvjHm//OCLDZ/hnb6eCYs60=; b=o6Tbu6Qzk/O1i6eb7d9twCnFm54G+RGGYQ9+bVPvzNqr32fEqYUT29WNRCYljN+Dg5 aw4ZXkiLEHkiD8s4e/ZkpbafFNcxlO9Ud711T/PDGnFbDGwxtUM6nX69F6ep4yaQEgUC n0fGaMCY3YBG+Y2s5cZUggH5VNI7J9AzceX3Ytvy57Mh+kBOi5mVbeNkwR9UNazeNh+M AKYSOo+Rop03+wtG34cMqlLp/g6P8MMj3eW8tjMfuYchKowmJIgEb244745r5HgNRTc9 LNSTpLV55USGuP1+ODSI5x3VtumYFw8xqqXRHNe9/bDlnkHJPpdJEEoowVL2ivmxdBYD 5Zsw== X-Gm-Message-State: ACrzQf0RdEpMNKMrRWzzN2GaO88N0JGiIkzdUNL+1cpHRobC+jvhjSZe gpgH1kLt3GiJEgOK2M0X4WE9cg== X-Received: by 2002:a17:90b:314c:b0:20d:83c1:5297 with SMTP id ip12-20020a17090b314c00b0020d83c15297mr12147095pjb.18.1666218132524; Wed, 19 Oct 2022 15:22:12 -0700 (PDT) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id c11-20020a624e0b000000b0056170e7299csm11762357pfb.9.2022.10.19.15.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 15:22:12 -0700 (PDT) Date: Wed, 19 Oct 2022 22:22:08 +0000 From: Sean Christopherson To: Vitaly Kuznetsov Cc: kvm@vger.kernel.org, Paolo Bonzini , Wanpeng Li , Jim Mattson , Michael Kelley , Siddharth Chandrasekaran , Yuan Yao , Maxim Levitsky , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 00/46] KVM: x86: hyper-v: Fine-grained TLB flush + L2 TLB flush features Message-ID: References: <20221004123956.188909-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004123956.188909-1-vkuznets@redhat.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Tue, Oct 04, 2022, Vitaly Kuznetsov wrote: > Changes since v10 (Sean): > - New patches added: > - "x86/hyperv: Move VMCB enlightenment definitions to hyperv-tlfs.h" > - "KVM: selftests: Move "struct hv_enlightenments" to x86_64/svm.h" > - "KVM: SVM: Add a proper field for Hyper-V VMCB enlightenments" > - 'x86/hyperv: KVM: Rename "hv_enlightenments" to "hv_vmcb_enlightenments"' > - 'KVM: VMX: Rename "vmx/evmcs.{ch}" to "vmx/hyperv.{ch}"' > - "KVM: x86: Move clearing of TLB_FLUSH_CURRENT to kvm_vcpu_flush_tlb_all()" > - "KVM: selftests: Drop helpers to read/write page table entries" > - "KVM: x86: Make kvm_hv_get_assist_page() return 0/-errno" > - Removed patches: > - "KVM: selftests: Export _vm_get_page_table_entry()" > - Main differences: > - Move Hyper-V TLB flushing out of kvm_service_local_tlb_flush_requests(). > On SVM, Hyper-V TLB flush FIFO is emptied from svm_flush_tlb_current() > - Don't disable IRQs in hv_tlb_flush_enqueue(). > - Don't call kvm_vcpu_flush_tlb_guest() from kvm_hv_vcpu_flush_tlb() but > return -errno instead. > - Avoid unneded flushes in !EPT/!NPT cases. > - Optimize hv_is_vp_in_sparse_set(). > - Move TLFS definitions to asm/hyperv-tlfs.h. > - Use u64 vals in Hyper-V PV TLB flush selftest + multiple smaler changes > - Typos, indentation, renames, ... Some nits throughout, but nothing major. Everything could be fixed up when applying, but if it's not too much trouble I'd prefer a v11, the potential changes to kvm_hv_hypercall_complete() aren't completely trivial.