From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web11.3760.1634100598035941706 for ; Tue, 12 Oct 2021 21:49:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iOtC5hvT; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634100597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bRGSn2zAHcz96C5n9cUI7+2bBoH4AF/ui1B5E1IbCcE=; b=iOtC5hvTpMxPMLhb80xq8Az3SrWQiIoOUVigeiwlgXj8/PZL6C9gePdlEpZpNvRetsB6Ii fy2A7P9z0JxfSugyvXUcBAxoSW4Q8uH8e4FxbsGa4MwjUlyRi/BV6lt/swjoK4gv5Z4fZn 0emfC56zMpeB5B1Lq/88/wBkrwmzL2g= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-217-p804Nog_PDm4PtJjfQLzLA-1; Wed, 13 Oct 2021 00:49:29 -0400 X-MC-Unique: p804Nog_PDm4PtJjfQLzLA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EBDC31006AA4; Wed, 13 Oct 2021 04:49:27 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 439B019C79; Wed, 13 Oct 2021 04:49:27 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 93AD418009D7; Wed, 13 Oct 2021 06:49:25 +0200 (CEST) Date: Wed, 13 Oct 2021 06:49:25 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, min.m.xu@intel.com Cc: Ard Biesheuvel , Jordan Justen , Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky Subject: Re: [edk2-devel] [PATCH V2 21/28] OvmfPkg: Update PlatformPei to support TDX Message-ID: <20211013044925.edspdvhh5t5baxez@sirius.home.kraxel.org> References: <7a6c9317555de257ad0fd1d76c59c841fa601086.1633401643.git.min.m.xu@intel.com> MIME-Version: 1.0 In-Reply-To: <7a6c9317555de257ad0fd1d76c59c841fa601086.1633401643.git.min.m.xu@intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > 2. Relocate mailbox > At the beginning of system boot, a 4K-aligned, 4K-size memory (Td > mailbox) is pre-allocated by host VMM. BSP & APs do the page accept > together in that memory region. > After that TDVF is designed to relocate the mailbox to a 4K-aligned, > 4K-size memory block which is allocated in the ACPI Nvs memory. APs > are waken up and spin around the relocated mailbox waiting for > further command. Why is the mailbox relocated? Are there any problems when simply continuing to use the memfd page? The memfd page location is known to qemu, so when not relocating the mailbox the MADT update could be done on the host side. take care, Gerd