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 05DADC43334 for ; Mon, 27 Jun 2022 14:56:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236697AbiF0O4g (ORCPT ); Mon, 27 Jun 2022 10:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234416AbiF0O4e (ORCPT ); Mon, 27 Jun 2022 10:56:34 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FE9B1704B for ; Mon, 27 Jun 2022 07:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656341793; x=1687877793; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=bGHVaA7Y+W77422JzIddjRuPoKK0dOVQ9IvZwPkfw9k=; b=gJVfRCyu1pvsU7iG/kuUB0ZUnDpSVgnq+OJU2hfrO2FgPCynHI/BVFh5 dLw9U6xW9Es7pjT5wMF3hn3QVyHpTkaO2Ikmlq6ofyRkKH7Zt+3vd/9um Uz96gj6P/fOSjQxx+BI5xGlp4Lm3kSFJ50JMzPjhn+Zc6eaLzTasGEet+ LDhg7zw6k1z3ZriI0YptUIvTpFjPZq+66BnprcOBKitoitFXnly+QSK5g TiUs+pKdCLDTIHLFcBmDWlQm+bhBFtKCUiLRflvKaboi3ixlhaoL+nOQK rmdBhJcgq2204P4MJObgmguhZYzPZoTI7Qi4qXLDg0ppDIp5iEW5wMfiq g==; X-IronPort-AV: E=McAfee;i="6400,9594,10390"; a="279009416" X-IronPort-AV: E=Sophos;i="5.92,226,1650956400"; d="scan'208";a="279009416" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 07:56:33 -0700 X-IronPort-AV: E=Sophos;i="5.92,226,1650956400"; d="scan'208";a="679608765" Received: from noraberg-mobl1.amr.corp.intel.com (HELO [10.209.14.29]) ([10.209.14.29]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 07:56:31 -0700 Message-ID: Date: Mon, 27 Jun 2022 07:56:29 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.9.1 Subject: Re: [PATCH v8 2/5] x86/tdx: Add TDX Guest event notify interrupt support Content-Language: en-US To: Kai Huang , "Yao, Jiewen" , "Nakajima, Jun" Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , "H . Peter Anvin" , "Kirill A . Shutemov" , "Luck, Tony" , Andi Kleen , Wander Lairson Costa , Isaku Yamahata , "marcelo.cerri@canonical.com" , "tim.gardner@canonical.com" , "khalid.elmously@canonical.com" , "Cox, Philip" , LKML References: <20220609025220.2615197-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220609025220.2615197-3-sathyanarayanan.kuppuswamy@linux.intel.com> <78873cc1db47ba00a4c01f38290521c1a6072820.camel@intel.com> <385B219C-4DB2-480C-913C-411AB4D644ED@intel.com> <9c7d99469179340eeecabaf3e9c414fc98900626.camel@intel.com> From: Sathyanarayanan Kuppuswamy In-Reply-To: <9c7d99469179340eeecabaf3e9c414fc98900626.camel@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/27/22 4:21 AM, Kai Huang wrote: > On Sat, 2022-06-25 at 15:35 +1200, Yao, Jiewen wrote: >> Thank you, Jun. >> >> Yes. I confirmed that we will include below change to GHCI.next spec. >> >> ================ >> 3.5 TDG.VP.VMCALL >> >> From: "The host VMM should use SEAMCALL [TDWRVPS] leaf to inject an interrupt at the requested-interrupt vector into the TD via the posted-interrupt descriptor. " >> >> To: "The host VMM should use SEAMCALL [TDWRVPS] leaf to inject an interrupt at the requested-interrupt vector into the TD VCPU that executed TDG.VP.VMCALL via the posted-interrupt descriptor. " >> > > Hi Sathy, > > With this change, I don't think we should use system vector anymore. Instead, > we just need one non-migratable IRQ which has a fixed vector on a fixed cpu. > Yes. I will try your suggestion and make necessary changes in next version. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer