Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2137658rdh; Tue, 26 Sep 2023 13:47:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiEyy2PJ3asHN8wc3YX2r0NXS+e4aKYX8rbcTWN8zZfTpL4YqejvE9hLgLX5XEtddYEbzW X-Received: by 2002:a17:902:f7c6:b0:1c6:1ab1:93eb with SMTP id h6-20020a170902f7c600b001c61ab193ebmr5262058plw.17.1695761245293; Tue, 26 Sep 2023 13:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695761245; cv=none; d=google.com; s=arc-20160816; b=KlNj4qKlF+ZciZYZSBebwgZK4YCJxeZtnwulW9zW1raTMQzcIo3TfqdulFBGynCux4 5H1VICO/8xubtjEkhdk23HFEoek7Dh++mAxBiCgLe7aF5Tknd0CIN66TMPVgEJwA4Znw X5Gl5RHUhnQ4scc5nd6EZIRUdsaQtDvq/SuLeaMh9vsjlJLb6K2dF8QVLINoiIdasYRN S4dRyQ8QxDukkI3g5xVtBJ5RXXfVxFfXBgsDIogEMaG23Xp38F/TOaT1lhixdVElAWB+ jss1PLK3qTBumwOb3uzRRYcVA2RKDXrUvjGcduyhq62w1XvjRglCNH+2z1LiAJlLnvvS vWCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kwn+Y2/3Lb7G0UxCRBVpYop5K/bVWNWfnHKf0b40Tss=; fh=3wwcxblPju5nu5hFzXrXA477JGpxbIQ8BfI0ksLqcGE=; b=Hg9CUihrSkfGkp5TtdHOXyCNpTgT0Qj31wHbKWIb4m/+CDHMbPHXnyQVPlmwPhzMUl KYQip0nynNwPjTWTr/eHvhf5GVnAdT7XVqheVOOKXjfPXAJyVfTMRSyIngF6JiwXhmzy G0jvOzqGI5I8xxb2jV7Wjzz6bLWL0hpvHt8sLFSTh5pCO0yxTGukcRXyyrEt53slou3+ LDcc+08vyoP9Vl8EcfJZ3N2srqPI8k7btgMSA7tYfKokXKxJo4C5B9af2uI7xMcBaLTe XdqZME6GS0kT0wVocab4A9V4io+3f1UVdCZjVDULE377s6zopqTeQjoeRGMThp8tAQyE 25RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cs+dJnM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e5-20020a170902784500b001c4352c2c9esi7476976pln.160.2023.09.26.13.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 13:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cs+dJnM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3AAE98243BCC; Tue, 26 Sep 2023 09:37:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235296AbjIZQht (ORCPT + 99 others); Tue, 26 Sep 2023 12:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235282AbjIZQhs (ORCPT ); Tue, 26 Sep 2023 12:37:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F162BF for ; Tue, 26 Sep 2023 09:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695746216; 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=kwn+Y2/3Lb7G0UxCRBVpYop5K/bVWNWfnHKf0b40Tss=; b=cs+dJnM0r8Ch+Pe+IPuPE2U7UBEQ8IBiaisbbdflmN0kOMOs1aM/ILPR66gNeRbEKEBAgl aSQ5zRP3+XRchhv8VtJaM54OAhfW4hHUodxR563JZpdo/McG/HhpseqWDk07JS9IH75jcM CRepUv7auYEJWtX7fceCGUtO9ldOCqE= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-199-ju-q8FOnPbCGj7gy66bhDw-1; Tue, 26 Sep 2023 12:36:52 -0400 X-MC-Unique: ju-q8FOnPbCGj7gy66bhDw-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-40514ce8387so78729595e9.3 for ; Tue, 26 Sep 2023 09:36:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695746212; x=1696351012; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kwn+Y2/3Lb7G0UxCRBVpYop5K/bVWNWfnHKf0b40Tss=; b=FPyB5i201raA7pxd/3Bc1lZG2Ra6HctrvSL25nwjd2z4lePxQ4+08IuMFaWl/LRgqZ vUynqIy/G7q60yfE5lJe5NRDje4X89kMXp7v411LcSrkrMY7hVm8/aEwnMUS/XkSMNLm /Vy37yvHDw9U29NcPX4Fifo9S/ChONuRh4cCj9ot6+DPtatUD45L6aFMLJ7FXWy3PIZQ XJFkltdYeW/nJitbEj9hssupm/jcoRZwfv35QIXgcZKo0jTcMgDxaqTk1GSHXGmTKSkb fEEBkCPPH5YAle33cCFv0kh1mQzl0XKumKXvA+b4UjUbWGavMEvXK2c9ADiQfIAsYTNf AFUA== X-Gm-Message-State: AOJu0Ywisln5Z4y9Fq7UdXh7MvRlsAhH5Xe6o9SM5O3te8uzAgxsKIdb u98zQa7EMQJf/gpaX/FfuvGufHik826M+fQblTAhsTxY4lDLUfiL+derc2VWfIsb3cl29pdoP+I 7DT1vneroqzl7vkzOk4eA4OIK X-Received: by 2002:a05:600c:310d:b0:405:959e:dc79 with SMTP id g13-20020a05600c310d00b00405959edc79mr4523735wmo.37.1695746211872; Tue, 26 Sep 2023 09:36:51 -0700 (PDT) X-Received: by 2002:a05:600c:310d:b0:405:959e:dc79 with SMTP id g13-20020a05600c310d00b00405959edc79mr4523711wmo.37.1695746211487; Tue, 26 Sep 2023 09:36:51 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.googlemail.com with ESMTPSA id v19-20020a05600c429300b004047ac770d1sm13421784wmc.8.2023.09.26.09.36.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Sep 2023 09:36:50 -0700 (PDT) Message-ID: Date: Tue, 26 Sep 2023 18:36:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 0/4] KVM: x86: tracepoint updates Content-Language: en-US To: Maxim Levitsky , Sean Christopherson Cc: kvm@vger.kernel.org, Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org, "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Borislav Petkov References: <20230924124410.897646-1-mlevitsk@redhat.com> From: Paolo Bonzini In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:37:46 -0700 (PDT) On 9/26/23 10:28, Maxim Levitsky wrote: >> trace_kvm_exit is good example, where despite all of the information that is captured >> by KVM, it's borderline worthless for CPUID and MSR exits because their interesting >> information is held in registers and not captured in the VMCS or VMCB. >> >> There are some on BTF type info issues that I've encountered, but I suspect that's >> as much a PEBKAC problem as anything. >> > While eBPF has its use cases, none of the extra tracepoints were added solely because of > the monitoring tool and I do understand that tracepoints are a limited resource. > > Each added tracepoint/info was added only when it was also found to be useful for regular > kvm tracing. I am not sure about _all_ of them, but I agree with both of you. On one hand, it would be pretty cool to have eBPF access to registers. On the other hand, the specific info you're adding is generic and I think there are only a couple exceptions where I am not sure it belongs in the generic KVM tracepoints. Paolo