From mboxrd@z Thu Jan 1 00:00:00 1970 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 D953ECCA47B for ; Thu, 14 Jul 2022 13:31:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238815AbiGNNbU (ORCPT ); Thu, 14 Jul 2022 09:31:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238936AbiGNNbT (ORCPT ); Thu, 14 Jul 2022 09:31:19 -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 AAFAB5E32A for ; Thu, 14 Jul 2022 06:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657805477; 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: in-reply-to:in-reply-to:references:references; bh=S0v84aQzK5VtpJNrL8vNxYh4ihCQcbd1OPMTZNLA4YQ=; b=G0XKizlwZYcD5FGJ7rUfl9UVJtPtR6kNPTJtQZ16fuXPm0yjKV4t9YY0hf9FZN54Ic1F6C Ek4IuPhpP8bQq7cwDRfD5plelapwVdwbzclDWGP0D1gPsZkw2GZ+OZrup0PhjziZ3YLPWw VmBz9JuMqXQ6JAzRv0TbuCCLmT87728= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-146-B_ISe5I5OxeVaUf9PbWkJA-1; Thu, 14 Jul 2022 09:31:14 -0400 X-MC-Unique: B_ISe5I5OxeVaUf9PbWkJA-1 Received: by mail-ed1-f72.google.com with SMTP id j6-20020a05640211c600b0043a8ea2c138so1532628edw.2 for ; Thu, 14 Jul 2022 06:31:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=S0v84aQzK5VtpJNrL8vNxYh4ihCQcbd1OPMTZNLA4YQ=; b=LvtYAhOHK+TlRElRgB5L28WRJTQAcgXY0+6Oa/mna/ayA5/332swjliT1cH+J9EZSg gaKwczhSo7iiUlHmnZSDbtdxhzFrewZaCuFHO+qUq75qKfZCLdC6GiR6+PlixxOcb47v Q7NaaIH8wbuk9URq2/qDQgPIdCO5AEmOWtmj4jOHw43WI6fsbB+gtc/V5n/svnagnTQq gdrc2o7wbiGVGa+oOz7NhziVZ2AyspFITtT/4l2eRqUh9bvG/m2PhPjo4P0SOQVeOAcU TTtx+Y21l85nNl71ncYUt7e+RjhnG5A+YhSyz39vjbG61xfHxFYsGudNkERh2SOLBMXo mJ6A== X-Gm-Message-State: AJIora9VCtstoTKXK7eLy3kBlAA3I6x5vxCeQI9j0Fu3BjhXmRtlvDO6 iYDjzTKIVOsCtPJbyS+l9/OI6V5qcDRmR8JFa0SMTFyHx0dLJchBqaeNNuExrbUe0s0xEvuD+2S q+3TfaNQ6Wu60c5+YP++RP/vP X-Received: by 2002:a17:906:93ef:b0:72b:3e88:a47 with SMTP id yl15-20020a17090693ef00b0072b3e880a47mr8830200ejb.706.1657805472906; Thu, 14 Jul 2022 06:31:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vyGA2DyNCno5IElXh8b5C5z7Aa3bmVWSnWLiTNc6SnaMdy9mGR7CFk8LpUKsaLOZngHRWmXQ== X-Received: by 2002:a17:906:93ef:b0:72b:3e88:a47 with SMTP id yl15-20020a17090693ef00b0072b3e880a47mr8830179ejb.706.1657805472717; Thu, 14 Jul 2022 06:31:12 -0700 (PDT) Received: from fedora (nat-2.ign.cz. [91.219.240.2]) by smtp.gmail.com with ESMTPSA id r17-20020a056402035100b0043a6a7048absm1049315edw.95.2022.07.14.06.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 06:31:12 -0700 (PDT) From: Vitaly Kuznetsov To: Paolo Bonzini , kvm@vger.kernel.org Cc: Sean Christopherson , Maxim Levitsky , Wanpeng Li , Jim Mattson , Michael Kelley , Siddharth Chandrasekaran , Yuan Yao , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 00/39] KVM: x86: hyper-v: Fine-grained TLB flush + L2 TLB flush features In-Reply-To: References: <20220613133922.2875594-1-vkuznets@redhat.com> Date: Thu, 14 Jul 2022 15:31:11 +0200 Message-ID: <87a69bom74.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-hyperv@vger.kernel.org Paolo Bonzini writes: > On 6/13/22 15:38, Vitaly Kuznetsov wrote: >> Changes since v6: >> - Rebase to the latest kvm/queue [8baacf67c76c], newly introduced >> selftests had to be adapted to the overhauled API [blame Sean]. >> - Rename 'entry' to 'flush_all_entry' in hv_tlb_flush_enqueue() [Max]. >> - Add "KVM: selftests: Rename 'evmcs_test' to 'hyperv_evmcs'" patch. >> - Collect R-b tags. >> >> Original description: >> >> Currently, KVM handles HVCALL_FLUSH_VIRTUAL_ADDRESS_LIST{,EX} requests >> by flushing the whole VPID and this is sub-optimal. This series introduces >> the required mechanism to make handling of these requests more >> fine-grained by flushing individual GVAs only (when requested). On this >> foundation, "Direct Virtual Flush" Hyper-V feature is implemented. The >> feature allows L0 to handle Hyper-V TLB flush hypercalls directly at >> L0 without the need to reflect the exit to L1. This has at least two >> benefits: reflecting vmexit and the consequent vmenter are avoided + L0 >> has precise information whether the target vCPU is actually running (and >> thus requires a kick). > > I haven't reviewed the selftests part yet, but for the rest I only had > two very small comments. I got back to this today and turns out there's a conflict with commit cc5851c6be864c5772944e32df3da322fe3ad415 Author: Sean Christopherson Date: Wed Jun 8 22:45:15 2022 +0000 KVM: selftests: Use exception fixup for #UD/#GP Hyper-V MSR/hcall tests in selftest part. It's nothing big but I did some non-trivial changes when resolving and I think the reslut looks a bit nicer at the end. Also, I've addresed one of your comments and moved kvm_hv_get_tlb_flush_fifo()'s 'is_guest_mode' parameter introduction to PATCH11. I'm going to send out v8 with these changes. -- Vitaly