Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 60A54ECA for ; Fri, 22 Dec 2023 03:14:21 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nhDqtbTW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703214862; x=1734750862; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=d2EjJbX4nUgOeAWakANi9riMAhtsVG2bAgGIXFasRSk=; b=nhDqtbTWs8QUiUKaSi+LAy+lZX1A3p3jueNGuW0jlb5zSmNVqaeI1kYG mstCNjXQt7KDxz5ayR7lcCwjBCFSMdN5Aj19cgHLlwOLrlcIEIZMEq8qX naxnbciw+zV8F3+bwdaWqz8pLKMpeAlMrZpq8Ckbfkc2pqy2LcAuxqTUI TLMT2q1arlCfr/wozEFV+SiiXm1hkvjK1lwmAS+NDoy3TTuFvpS3bHyRT tpirotlhNFuodXiMHPeOYHrjQbgwr+MQHwBMGBst307d4qnbbTSEpXRXn oX9JgluzR5tHBA31GfelAMTZQPENIYtBC5/wT5GlbTS2leDilLjVksc5F A==; X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="3156962" X-IronPort-AV: E=Sophos;i="6.04,294,1695711600"; d="scan'208";a="3156962" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 19:14:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,294,1695711600"; d="scan'208";a="18572185" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.93.12.199]) ([10.93.12.199]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 19:14:15 -0800 Message-ID: <5314df8a-4173-46cb-bc7e-984c6b543555@intel.com> Date: Fri, 22 Dec 2023 11:14:12 +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: =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= 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 , Eric Blake , Markus Armbruster , 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> From: Xiaoyao Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/21/2023 7:05 PM, Daniel P. Berrangé wrote: > On Wed, Nov 15, 2023 at 02:15:01AM -0500, Xiaoyao Li wrote: >> 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"}}' \ > > Here you're illustrating a VSOCK address. IIUC, both the 'qgs' > daemon and QEMU will be running in the host. Why would they need > to be using VSOCK, as opposed to a regular UNIX socket connection ? > We use vsock here because the QGS server we used for testing exposes the vsock socket. I will add more examples in next version to show that any socket type is supported.