Received: by 2002:a17:90a:2044:0:0:0:0 with SMTP id n62csp525407pjc; Mon, 20 May 2019 11:15:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw22cPEgm9UhS+8+DOVqzKmzE/cztOiwOIR12SUKBxugWGeMZzW8VyiDnPBMEMck5ZsXxKW X-Received: by 2002:a17:902:7617:: with SMTP id k23mr33867181pll.175.1558376100180; Mon, 20 May 2019 11:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558376100; cv=none; d=google.com; s=arc-20160816; b=KwTC/K64apbHZUyPChfbzXovAA0NTvxdetTvFFD/WZPdnpCtiSz/3sR+KOgxUK/z0C fAc3ig/DEqIVnikmIkJuI7TjCD2mkNE2YNKk/RM9bJuOj+xBrr87CF6MLQIl0iDMJN8U frp55eMWLfASAUjIyGVmzms3UKsippL32IJ2xdjLjxj9BE8oaYdwEFijEJm3m/DkNCCV Hn5yIDtt6m+PGi1Y8uSqEj6h5fJl+8Ww5M73QzyOJHFaAVm/1gNtcVSKLCzNIGGeRTrO SGUkjplORAMh2bYf8Z5bo76SUVPXs3BKg5+BC8r1EcCzWF+t83lz0WD1JLcrNOfbn+oT uKXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TPapnxd85b6TNKaOUBwMpE/Ri/E4kMx4IIox9Zko4LU=; b=UbCXGrnB9+COevhWHJ4vdfEiUXYXpon0FPUddGu1U4qadtw4dREqne0nBvX8qRsyOp TuBnM6qFbnZ6G6MrMKEnOi3MZ++mQdciLv+L/9FjM6/HftW5QdZUJcCu8WPEik9UA2sz fQdOg6jr+nBR7LSNt715FwHgSfWFS+HUEzMif3BeefE1kKO3YXRjMw7hQ7WK/304LHMk mjUFDQv8LAiy04w5uvD3Vr+MW+KG5QXkC2LhDuAWk6ye9oNax16wmym/+jsyMLM50ikN LRx26k/JsgY9tIx8mV5yi8itgG6s10pWapPgutP+yzuegX+4vsA6AhBmKqw92AIyMN2Y Hm3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si17637924pgc.83.2019.05.20.11.14.45; Mon, 20 May 2019 11:15:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392113AbfETO4Y (ORCPT + 99 others); Mon, 20 May 2019 10:56:24 -0400 Received: from mga18.intel.com ([134.134.136.126]:40049 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731455AbfETO4Y (ORCPT ); Mon, 20 May 2019 10:56:24 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 07:56:23 -0700 X-ExtLoop1: 1 Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.36]) by fmsmga008.fm.intel.com with ESMTP; 20 May 2019 07:56:22 -0700 Date: Mon, 20 May 2019 07:56:22 -0700 From: Sean Christopherson To: Wanpeng Li Cc: LKML , kvm , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Liran Alon Subject: Re: [PATCH v3 4/5] KVM: LAPIC: Delay trace advance expire delta Message-ID: <20190520145621.GA28482@linux.intel.com> References: <1557975980-9875-1-git-send-email-wanpengli@tencent.com> <1557975980-9875-5-git-send-email-wanpengli@tencent.com> <20190517194450.GH15006@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 20, 2019 at 02:38:44PM +0800, Wanpeng Li wrote: > On Sat, 18 May 2019 at 03:44, Sean Christopherson > wrote: > > This needs to be guarded with lapic_in_kernel(vcpu). But, since this is > > all in the same flow, a better approach would be to return the delta from > > wait_lapic_expire(). That saves 8 bytes in struct kvm_timer and avoids > > additional checks for tracing the delta. > > As you know, the function wait_lapic_expire() will be moved to vmx.c > and svm.c, so this is not suitable any more. Doh, I was too excited about my cleverness and completely forgot why you were moving the tracepoint in the first place.