Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3058639iog; Mon, 27 Jun 2022 08:17:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sqZsynLXj+hfdb3STJX0nB2GnBearbgTongFkBHrCC/7OjUIRKgtyOjH0He8JlAffkWGnS X-Received: by 2002:a17:906:dc8f:b0:725:28d1:422d with SMTP id cs15-20020a170906dc8f00b0072528d1422dmr12969667ejc.131.1656343078478; Mon, 27 Jun 2022 08:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656343078; cv=none; d=google.com; s=arc-20160816; b=x1nbdPRSqjruGlSvh636UTdgv8gq4CqCamlfIBnxE/9ysZWb9WcGrCyZWX0MiPiVVT r557ruwt+qGMxBYrZpj2zYXc0GaLGfFPrXRz7dUfgRifL0G4yIoFAKz0eK2+DdEyVuYV gC1dRSNzuLnD9bn7inD788h0MNP1rxuQSaou8ymwOunnoKWwNJoAIFpeiSJVy2ocVGTC o5a2xuUGTR5WQ77pXgA7ns5WXxTKKI3bC6J7B1UwS6+8LZsVLmBS99eowxJgGj4SXOxp VTFPD6rPQPl41AEpdN+EvavRrkIPRoVbvAgRPB5PPuutFAG+Z8pn76RorOtm5fIsjtVH wEGA== 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=ixPenqHmv3uU9+KcTPOFdqOvW6Y0WLwZOCFDk5+VBGA=; b=bv9YdpqRkfDmf4BX0wbkxJW24n2Q27xM3PEtPTKdXAHX6Ba6l/MMgshSdAQVUEvX+2 Fgvi7SfSGcvkTVwxhTeabJ3kVR5+1S/MFKjCu31mDeF/Nzzo+5UnV04b1/kZvlwy8qbB FOl+PEDflf4Bw+cwUfw1erZzns4Hb9oI5MFBquV1X08LJ6pKPauIsvrlV6cIdtz362vx ZIRRcbpzwRaYFOfS4lRUeoDrs13KSQ8cZSvjeFZs6tCikOr5NmPH8hAmivxFBtBpfmTl 657cxoCxGCMd9LT9kNP5JVXGKdHT1Xod0Ln0y0RXzcOvaZU4rNzfY8FANZKvgn7hlHLA n3Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gJVfRCyu; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a50f15b000000b004356b4883bbsi13570440edl.385.2022.06.27.08.17.33; Mon, 27 Jun 2022 08:17:58 -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=@intel.com header.s=Intel header.b=gJVfRCyu; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236721AbiF0O4g (ORCPT + 99 others); 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 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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