Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2854187iog; Mon, 27 Jun 2022 04:24:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vduCqN+87vM+1e0W9NeTyPq7hHWUXaDM5WIw5t++X4tFFVDNepOaeiUCDhVO7IYL3l0Y0P X-Received: by 2002:a05:6402:3886:b0:435:643a:b7ae with SMTP id fd6-20020a056402388600b00435643ab7aemr15585844edb.4.1656329095470; Mon, 27 Jun 2022 04:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656329095; cv=none; d=google.com; s=arc-20160816; b=PiJEc1U/72ilub20V+66UKdJaOQ3iiFXQRs4sy49jSnfzEHYdj6hRJDVVpjmWooRza CNZmJSgyMMuYAyOwaDZjb2YGY1LVoIVLqozCWQu/v5jrn6SnX6/dT67AeNw/Heyf6kwC H9wUGsbJu5q/gVIEWd8YEJrw2WSoO5AXBi6OovtHrLl0+ag5JaJIbu+caUByAdgQR1dt 4y3uS1SEZ+F3G8OAhbFtFftFyvrHTkPLiOFKJ31yHAG6VCQilFblHK3oXyxVxP92tzgc 7423s0B7TUgyJRbSOervo9v2LqVkAvNUcaUWxF99iVbebKOh7XG8YEwwhLe9XfMBg5Pj +puw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=gniCRrrhwYubzQM4y6xEsO1UF11JwZDeFNUfx5e8oYA=; b=VO/oal1ZYT6rv7N6iNRGMlEevxzFifqUdTQCO7uZDOraR6ChxsHlkXQ0NTilFI680/ SThgE5SC8IPIbNIoOx9a8HtEaFs89bXfC1+ZwgddeSjuiR4KVTEURWaby5V0/nyBAgJt brXqIPEo+sD3Fl7Fd/pFnYxez1awcGqcLeMFlo9ZL9YV5Bnh75ImPhY+0zXUPkurE9Os tw+eSdTL7oZh6Xu5D8hRauCOP3eHR6juvgm76TxVl5lC4MAdtfnFuOduWzJNTVG95gzD 7ttaAhpo+J9GDnkM3Qki75lj/t0dQRa/2JdAuKcP7c8qguq8FmJufgkUWO5DjET8jLDk DOlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="f3l+xbe/"; 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 jg17-20020a170907971100b00704dc5420adsi13727459ejc.38.2022.06.27.04.24.30; Mon, 27 Jun 2022 04:24:55 -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="f3l+xbe/"; 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 S234471AbiF0LVL (ORCPT + 99 others); Mon, 27 Jun 2022 07:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbiF0LVJ (ORCPT ); Mon, 27 Jun 2022 07:21:09 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CE8B6566 for ; Mon, 27 Jun 2022 04:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656328866; x=1687864866; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=eDPD5a5Tj8Fg/jh61oE/jKEduG2p47Yi5l4SsATd2jY=; b=f3l+xbe/7ASGNGifrCODb3rmG2azGSZC9UFUhKXvwzwv+emCC5mvQIc6 gDxbMQY+99eJ/mMe5vTmx1tXffD0DJous+kjJi/MlNXTqkQL7oHGxe3ju E2z7RFiN7/G8kwR9IVs6o/yMEwCVkwNn13epfpzUtAy0AOt2bgS1W2gNv Qq15Zidw45B43buZJTdI25VWXiq8gPnZ1Z4H0B7Vz/pa+Eb+Ex+SM2kZC ieCQDKd0UYOth6hYgcq+Pc9R5jG99IHwqnYs+wxoet24wGTMYedGgpAAL DCv7WXRh1tLY50S4zpHlzuFAlabUhgtc1ytV+mxJsvDeZ26jeFVQOAVGe A==; X-IronPort-AV: E=McAfee;i="6400,9594,10390"; a="261840757" X-IronPort-AV: E=Sophos;i="5.92,226,1650956400"; d="scan'208";a="261840757" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 04:21:06 -0700 X-IronPort-AV: E=Sophos;i="5.92,226,1650956400"; d="scan'208";a="540075677" Received: from fzaeni-mobl1.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.212.88.6]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 04:21:02 -0700 Message-ID: <9c7d99469179340eeecabaf3e9c414fc98900626.camel@intel.com> Subject: Re: [PATCH v8 2/5] x86/tdx: Add TDX Guest event notify interrupt support From: Kai Huang To: "Yao, Jiewen" , "Nakajima, Jun" , Sathyanarayanan Kuppuswamy 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 Date: Mon, 27 Jun 2022 23:21:00 +1200 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Sat, 2022-06-25 at 15:35 +1200, Yao, Jiewen wrote: > Thank you, Jun. >=20 > Yes. I confirmed that we will include below change to GHCI.next spec. >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 3.5 TDG.VP.VMCALL >=20 > From: "The host VMM should use SEAMCALL [TDWRVPS] leaf to inject an inter= rupt at the requested-interrupt vector into the TD via the posted-interrupt= descriptor. " >=20 > To: "The host VMM should use SEAMCALL [TDWRVPS] leaf to inject an interru= pt at the requested-interrupt vector into the TD VCPU that executed TDG.VP.= VMCALL via the posted-interrupt descriptor. " >=20 Hi Sathy, With this change, I don't think we should use system vector anymore. Inste= ad, we just need one non-migratable IRQ which has a fixed vector on a fixed cpu= . --=20 Thanks, -Kai