From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.15214.1630319036583048266 for ; Mon, 30 Aug 2021 03:23:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AP+DAaK7; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630319035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=u4Qhptf3s6Sz9l9NfasC8iHxzZjbxQCA5wk6NBOSk8Y=; b=AP+DAaK7RKmygN403QyhxrEUXlacQ+YjoX8RriEuY/2pklqH234UVxfzO7hPOf5L2CINqR O4pkzeAvT9qSd8cU4i1HVbQmYhQU0BiuzpC0xegX+lGO7RskjGK7wFfLFGt6JNwGNtPazD B+cG2lg/w6XnoW+cXRQIoX53Xbt4Ncw= 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-430-bC2deUjZPSOr-HqoHsxJHQ-1; Mon, 30 Aug 2021 06:23:53 -0400 X-MC-Unique: bC2deUjZPSOr-HqoHsxJHQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DA2BEC73A0 for ; Mon, 30 Aug 2021 10:23:52 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A6DA560854 for ; Mon, 30 Aug 2021 10:23:52 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 04DA918007A8; Mon, 30 Aug 2021 12:23:51 +0200 (CEST) Date: Mon, 30 Aug 2021 12:23:50 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io Subject: mmio mappings for runtime service Message-ID: <20210830102350.z6rhkeebav4mziu2@sirius.home.kraxel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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, What is the correct way to make sure runtime services can access mmio registers, i.e. that there is a mapping in the page tables for the mmio page needed? Is that the job of the firmware? Or should the OS calling the runtime service handle that? In case of the latter: How does the OS figure which pages are needed? thanks, Gerd