Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3308437iob; Mon, 16 May 2022 18:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2XvCJHjrqPAT144mIH2+U0Ohxs3x4w8YK/icxXct/pr1p4i+yrW4H7KQciQ9ehq1KLp8Y X-Received: by 2002:a17:902:c7d3:b0:161:872d:6ecd with SMTP id r19-20020a170902c7d300b00161872d6ecdmr5998203pla.74.1652752533637; Mon, 16 May 2022 18:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652752533; cv=none; d=google.com; s=arc-20160816; b=EfA7vxrnBaHGpNy0Km5f/tZhs3Xq4ow1EgLY+eKXonSyEjvlqdkm5pwI2iIBt99Vvk UEEj6t9eovZ7b1ShP96zus3hPBAWqeuLEsPYKi1PqM2cQJz8EiC3cvHt9QBiezSh0VTR 6jnzv22ekfbyRcUy8ciAAhvvkxIfCPveMYGN20wv9k5tvvImyRqBbVnKeMMC+lF33As1 dRe0QVOOPsuGzWGwSy5UbE8yB6TngOZx+PNHMqVOLLwkUqkTcyV/ub3ZjsP5cNhxtPWn aJMnwI+M3SoMQCHFhHnzCIUZltYhAaTu9BWZmmdLLkOqllvh0FdoNXicxV1ZLOMVKhBH ChJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YCWtu0aA9CxSyLGzITwZE2RFoiQ9ONEqkxjQ2xXJpA8=; b=MJYDGflMVtLMeaHRpvUaMR5KsFeRCf/G4OS7xecy6Y7+OwOVUTZIEaRllUa+mOe+xj PAV7gjnZCMNpXy2WtEvgZg3DgeRdwPpO3Hq5w8rRGMERSpW/hyzuATZ55AgOGRDeP7lS 0U8vKzaX98SWkXaekuJPiyNPaTMNUo4+0sbRgUzsLVTuE3E08/dF83WdH/koz6Zt7E+t DAKbWKb2rSknreCPbVs8nqScZ5jpO5osuF1w5HrxRggQlEM4PbomL2AjmQ0TbYjVxEiE N+9yDy5pwADDys3PGx+zD3ttwf555OcCoM2DyNhm2shUPVZk3yjZyMrfhcTwFRG4uX7V YXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=N1DvjCOa; 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 z19-20020a170902ee1300b0015d0d05846dsi7914687plb.430.2022.05.16.18.55.22; Mon, 16 May 2022 18:55:33 -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=N1DvjCOa; 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 S233560AbiEPTar (ORCPT + 99 others); Mon, 16 May 2022 15:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241824AbiEPTao (ORCPT ); Mon, 16 May 2022 15:30:44 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CB0A396 for ; Mon, 16 May 2022 12:30:41 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id p12-20020a9d4e0c000000b00606b40860a3so10750470otf.11 for ; Mon, 16 May 2022 12:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YCWtu0aA9CxSyLGzITwZE2RFoiQ9ONEqkxjQ2xXJpA8=; b=N1DvjCOaQM6sCQEEes2mVcUTdjUIrlF10i/geaVSLrHdW9DHYM9RSOwUNdSe7sw5ML iI3+X/2W5j8/acTRzANF1jt2JabJjE9l79gK36u0DlbQpjUQmO+2vvqMqvrd8/hCtNxN h3GpKGPOdbbBsUh+4HGkoE9XTVtn8oJ6wJDYGY6w1Wl1O1sP7dtZAJAbloyhxxl9R4kJ r/lqjcKKIuaM1mV77JcWxk6aaIAec1SVa5DDVsoV9KwfHA28PP5JzR1Hn97cZceOoQF8 /yuJWqUkk8aq21QpukmMZWeXguHH0Vk1JAmGo80S4cRvkDK/djzob22EKoiPPQn3x5Vd XlSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YCWtu0aA9CxSyLGzITwZE2RFoiQ9ONEqkxjQ2xXJpA8=; b=HVarSf9IGaNNXVcpZrB92+xYh7+5FjUWLBA4H/Y81kzsXHY0BXkQjcTz2rAaqQ/dgm yWWUQnG/N0k55TSv3OpNtrmZusDTEvKhhm83KKBfgEJLu8lYLZc0CbegcxCFHB9RLqnH Ifzxhm/aNvS69W01c5bjA/oo2THh6SeM1HMJTMHJDlEEsZ1dQIIjbWzfQN10NkfbdVJN oR4s6WrBM9msI7y0DuO3INiZAQlQmXcCJ1NqQS37ZTe5sYx2AuOVPOnt9ipg4v1dYda1 I+WT3FuHAuTVzAYfF2EJ6kvEgfryRNY0PlwIUBYR732u9OVcJ0k2qagm/6mb6ENfN/oC GCNw== X-Gm-Message-State: AOAM530Gr6TrQzRoGAUyKF+YfBSLCHhdgTVZ34GlRin19OSdRC+fIXp7 rwyOtyMccHFEfydGaW+QJbyKrA3bVixLiGx4fjNl5Q== X-Received: by 2002:a9d:6e83:0:b0:605:4a01:1d8c with SMTP id a3-20020a9d6e83000000b006054a011d8cmr6598748otr.174.1652729439301; Mon, 16 May 2022 12:30:39 -0700 (PDT) MIME-Version: 1.0 References: <20220412195846.3692374-1-zhanwei@google.com> In-Reply-To: From: Wei Zhang Date: Mon, 16 May 2022 21:30:00 +0200 Message-ID: Subject: Re: [PATCH 0/2] KVM: x86: Fix incorrect VM-exit profiling To: Sean Christopherson , Suleiman Souhlal Cc: Sangwhan Moon , Ingo Molnar , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jing Zhang , David Matlack Content-Type: text/plain; charset="UTF-8" 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, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 > Please don't top-post. From https://people.kernel.org/tglx/notes-about-netiquette: Ah, I didn't know this should be avoided. Thanks for the info! > My preference would be to find a more complete, KVM-specific solution. The > profiling stuff seems like it's a dead end, i.e. will always be flawed in some > way. If this cleanup didn't require a new hypercall then I wouldn't care, but > I don't love having to extend KVM's guest/host ABI for something that ideally > will become obsolete sooner than later. I also feel that adding a new hypercall is too much here. A KVM-specific solution is definitely better, and the eBPF based approach you mentioned sounds like the ultimate solution (at least for inspecting exit reasons). +Suleiman What do you think? The on-going work Sean described sounds promising, perhaps we should put this patch aside for the time being.