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.web10.13103.1634040962474512188 for ; Tue, 12 Oct 2021 05:16:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IoKq0Sho; 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=1634040961; 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=1qixdGdKCxuViNUIgS2TqfS6CrbKx6kQMEuBxILQbSo=; b=IoKq0ShojGJpM575ew/Ya/tZ5jzoBRg+PywDEsh5viFpQL1jl9I6ntsBCdYIllpuHgSYE9 1mGM0O5u3PKmvymrDDzlPSBDCP1bRBRFOy/m3QpktiD4g6c+hgilsmzEnD6JX52LlmccE+ VH/6mkz1HvbI/bCpYdAOVzCtOloHPvE= 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-193-URIxuwzkNDq5iC8gIf3H8g-1; Tue, 12 Oct 2021 08:15:58 -0400 X-MC-Unique: URIxuwzkNDq5iC8gIf3H8g-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 E325F801AFC; Tue, 12 Oct 2021 12:15:56 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A47FD19C79; Tue, 12 Oct 2021 12:15:56 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id F37AF180060E; Tue, 12 Oct 2021 14:15:54 +0200 (CEST) Date: Tue, 12 Oct 2021 14:15:54 +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 27/28] OvmfPkg: Update IoMmuDxe to support TDX Message-ID: <20211012121554.snlauagcv6m42flz@sirius.home.kraxel.org> References: <496053d51280854b59c5a7bdd36d3f4a158fbfe6.1633401643.git.min.m.xu@intel.com> MIME-Version: 1.0 In-Reply-To: <496053d51280854b59c5a7bdd36d3f4a158fbfe6.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, > +#define IO_MMU_LEGACY 0x0 > +#define IO_MMU_SEV 0x01 > +#define IO_MMU_TDX 0x02 > + > +UINTN mIoMmuType = IO_MMU_LEGACY; Yet another place where you should be able to just use the ConfidentialComputing PCD. take care, Gerd