Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kVSDVmsI" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5CA137 for ; Wed, 6 Dec 2023 23:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701934723; x=1733470723; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=BXBFcsZwYwTDGcbTnD2OQCUETr2fkYGend2keFm5JYo=; b=kVSDVmsIPT4AVX17AFDTKFDlFqznZjuCl8uX6iQkTJjGZywprOFXHanb eEtjty6HVR2R/EcKYsCQ726XPh90yY5VGTXR6oDPWDjnn8fSE07+XPYWP gimohEj5sKFXET7YRiR064jLl78XHqhp8bo09+95Ja82DDftkr4S08YOT xRECIcSNLYyNrLZaFZ1Waujf5h72EMYNzXFwAXJwWA4/pPlNQC5kcFIog jRO9VGUbdeV/K+USGkfrntjoDh9KwshUEi13jr3IK6fNBzIB8BllycNHg U44OttEtKrchgRruaO8EINUUcAkQc52ZwE4r+7UeaxLotWXvMkUwPW/W8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="480381946" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="480381946" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 23:38:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="895048144" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="895048144" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.93.29.154]) ([10.93.29.154]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 23:38:33 -0800 Message-ID: Date: Thu, 7 Dec 2023 15:38:28 +0800 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 52/70] i386/tdx: handle TDG.VP.VMCALL Content-Language: en-US To: Markus Armbruster Cc: Paolo Bonzini , David Hildenbrand , Igor Mammedov , "Michael S . Tsirkin" , Marcel Apfelbaum , Richard Henderson , Peter Xu , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Cornelia Huck , =?UTF-8?Q?Daniel_P=2EBerrang=C3=A9?= , Eric Blake , Marcelo Tosatti , qemu-devel@nongnu.org, kvm@vger.kernel.org, Michael Roth , Sean Christopherson , Claudio Fontana , Gerd Hoffmann , Isaku Yamahata , Chenyi Qiang References: <20231115071519.2864957-1-xiaoyao.li@intel.com> <20231115071519.2864957-53-xiaoyao.li@intel.com> <87jzpyw5hp.fsf@pond.sub.org> From: Xiaoyao Li In-Reply-To: <87jzpyw5hp.fsf@pond.sub.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/1/2023 7:02 PM, Markus Armbruster wrote: > Xiaoyao Li writes: > >> From: Isaku Yamahata >> >> For GetQuote, delegate a request to Quote Generation Service. >> Add property "quote-generation-socket" to tdx-guest, whihc is a property >> of type SocketAddress to specify Quote Generation Service(QGS). >> >> On request, connect to the QGS, read request buffer from shared guest >> memory, send the request buffer to the server and store the response >> into shared guest memory and notify TD guest by interrupt. >> >> command line example: >> qemu-system-x86_64 \ >> -object '{"qom-type":"tdx-guest","id":"tdx0","quote-generation-socket":{"type": "vsock", "cid":"2","port":"1234"}}' \ >> -machine confidential-guest-support=tdx0 >> >> Signed-off-by: Isaku Yamahata >> Codeveloped-by: Chenyi Qiang >> Signed-off-by: Chenyi Qiang >> Signed-off-by: Xiaoyao Li >> --- >> Changes in v3: >> - rename property "quote-generation-service" to "quote-generation-socket"; >> - change the type of "quote-generation-socket" from str to >> SocketAddress; >> - squash next patch into this one; >> --- >> qapi/qom.json | 5 +- >> target/i386/kvm/tdx.c | 430 ++++++++++++++++++++++++++++++++++++++++++ >> target/i386/kvm/tdx.h | 6 + >> 3 files changed, 440 insertions(+), 1 deletion(-) >> >> diff --git a/qapi/qom.json b/qapi/qom.json >> index fd99aa1ff8cc..cf36a1832ddd 100644 >> --- a/qapi/qom.json >> +++ b/qapi/qom.json >> @@ -894,13 +894,16 @@ >> # >> # @mrownerconfig: base64 MROWNERCONFIG SHA384 digest >> # >> +# @quote-generation-socket: socket address for Quote Generation Service(QGS) >> +# > > Long line. Better: > > # @quote-generation-socket: socket address for Quote Generation > # Service(QGS) May I ask what's the limitation for qom.json? if 80 columns limitation doesn't apply to it. >> # Since: 8.2 >> ## >> { 'struct': 'TdxGuestProperties', >> 'data': { '*sept-ve-disable': 'bool', >> '*mrconfigid': 'str', >> '*mrowner': 'str', >> - '*mrownerconfig': 'str' } } >> + '*mrownerconfig': 'str', >> + '*quote-generation-socket': 'SocketAddress' } } >> >> ## >> # @ThreadContextProperties: >