Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp715545lqh; Thu, 28 Mar 2024 14:12:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm/Y3iLDAv+hySFuHKFF78otjiTac/Hg2jqOVJCTwahFVt9gM544ul5GID6pFR8gwthj85veo5960JLwEEQf78ofNHQ3kNLdYWjDZrZQ== X-Google-Smtp-Source: AGHT+IF6l6TvQhaYx1PYTen74bLm+6FxTYpD4XWMp7rgQiW6hGW8ir8QQImGC9YvC32HV8bX3d59 X-Received: by 2002:a17:90a:2f01:b0:2a0:2a93:d91a with SMTP id s1-20020a17090a2f0100b002a02a93d91amr802910pjd.23.1711660335162; Thu, 28 Mar 2024 14:12:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711660335; cv=pass; d=google.com; s=arc-20160816; b=IHXjerKhyJFX1UyTE2GnB+kI/ecCTsgwwns5PcukjAW2OP9alI5vVnHNwu1C2sv1aJ tp02eoG7FJgdS7ENfUfvGPXy/i3KWfUEKaMtmkFXZNO3v1FIMa7n3r21z0hbNI+0hlcs VVy09IbLB+SnNBtksUI2GN/y6CY6eygnDwc9DDdomgOjsUZjcSJdohUTWTTx5okV6ZH6 eLZRVU4MmZ8WGhXlkoJW+f3w/Un2gFgZL+SsMtyK5q2upOaSn8IpirogIx8+0MFDJfIk xve1X+fyzlPY212VGWGXBAfO3C9tousOG8xMlCvvBV3zVyDqmIQI9QDzOV5X2C72Kj1G Jspw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0VOlSNK7p4nu/hSRlhGmsjvgGPfpoR4p/fX9U4cqSSc=; fh=tt0CEY5xhom/IlvDKU6vi+rzDvhB3cKAIKF4sAkibAI=; b=lkdj7Rda/DJLlAdTWF9RWTM58yKmLTZZdosGBWzBonspIJDnGHVk2jHsLjIfTyUEHX S2M6qy+evAYhwj6fN44A/Dz2UTKlrjSTlndDWzj09gcN5EprLsggEsCEfFdWusGscFlO b57/YozGRHSedUmEJr4vuam4ZdWDHhUQnLC5krqKpbxgX0KYjmORGVGD2vrCyBVpqJ8u 6xc/SPxBQOY1203av5rSH4TFnmbhcz3OEsRvL2W3P6V/h9FbQGnFUTCCdrlJpzNE0+d/ 2w5zefxD6UD1//i49zDbjm01EAc9pyxnU0eUrk6Iw0/LN8ykfZMz15OK1s10mAraJn4b EvrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Juk/qcjE"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-123659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v11-20020a17090a898b00b002a20d2cf9e8si1020431pjn.157.2024.03.28.14.12.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 14:12:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Juk/qcjE"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-123659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CEE0E2A86D4 for ; Thu, 28 Mar 2024 21:12:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12DBA13A886; Thu, 28 Mar 2024 21:12:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Juk/qcjE" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B970D52F62; Thu, 28 Mar 2024 21:12:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660325; cv=none; b=SMoXZTj8Ke8nKnvz2ixM8XgiiS0w3REYdfAy3sg4HaAZ3T9ARjxHJNLdcTFjBrdFS3qVmUTPm/q9zJh2LZI9r05jPKuK2kmDelHTh8O3XTtYR1jQHH9xOLv9GeNMAf2cjv9i5JydSw/ABzBSBEeaK5qjpw71hkQ8M20QlnDOnXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660325; c=relaxed/simple; bh=yngr6HDotAuV0LR72q3d5ZVpN+T8z4EOF6b3Ti3s9X0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MY64ovDjoSTcTkqRivJWQaIY9xGXvOyF8GbpLH7TDBhVDM93fCrhRwFYGWH7EaegOqYGCzUvedSV01XJDG3lvA0vp3J2FoS8EdK3IOgzvMFtCS1ccN0dKJag5qQhT4YKRYj2lQqY3A10GR9BaVEIAvMuVBSC3MYwz37LSeNtz4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Juk/qcjE; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711660324; x=1743196324; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yngr6HDotAuV0LR72q3d5ZVpN+T8z4EOF6b3Ti3s9X0=; b=Juk/qcjEv3HR2WRYWmo/665+1TVIy3eBI8SbNzNjZXl/ylu9XwdeY9kB K/ejLKbDjD0Ob06JS2PNEvgZGHtpKlRPeaV2h6lct2ye/zo304k5AMKg9 5Rh+2BjXbqATdTksRBlkRCAYiqz+IqRbh8ZJL+2J1HZLVbgfjpoG7nu8I vJt7m7mhjXWTXfye/7u9dRHY9dMDRJKY+HVEmwrjgdZeIIk1NJZJ2nSW5 dwodLgVHqOQyrcX/X6YSh7NPjGndJm8f4klwRK9x2m5yJ75dDCirPjPAp mTJFzZDS0VDoUxpc5GORzSpPljilmwd3ainOl1IQS+dEQQiE6UrwnIvBv g==; X-CSE-ConnectionGUID: oYlcoPYVQhGJLYRmckojEA== X-CSE-MsgGUID: z6hH4Fr8TwGQUeMwLs3agg== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="6955602" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="6955602" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 14:12:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="16805142" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 14:12:03 -0700 Date: Thu, 28 Mar 2024 14:12:02 -0700 From: Isaku Yamahata To: Chao Gao Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , Kai Huang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com, isaku.yamahata@linux.intel.com Subject: Re: [PATCH v19 092/130] KVM: TDX: Implement interrupt injection Message-ID: <20240328211202.GT2444378@ls.amr.corp.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Thu, Mar 28, 2024 at 06:56:26PM +0800, Chao Gao wrote: > >@@ -848,6 +853,12 @@ fastpath_t tdx_vcpu_run(struct kvm_vcpu *vcpu) > > > > trace_kvm_entry(vcpu); > > > >+ if (pi_test_on(&tdx->pi_desc)) { > >+ apic->send_IPI_self(POSTED_INTR_VECTOR); > >+ > >+ kvm_wait_lapic_expire(vcpu); > > it seems the APIC timer change was inadvertently included. Oops. Thanks for catching it. -- Isaku Yamahata