From nobody Wed Feb 11 06:00:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+79898+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79898+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1630071913; cv=none; d=zohomail.com; s=zohoarc; b=KD3/t93u59V6K4NZL505gob22I+iJj5uKXNQXjG6iOGztCgCiUK7GxMan8GmHNtkdaiXDmOSjrc8xoqJi7K/zaJQWFHVXOyaJhAAGrqoOE0qJRLE5Vzpd5lUHxVc87hWwVx/q+D+veDWebT8uCCgNVITO+4mKgYHyBcGPXUSrRs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630071913; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=azOCTa6giuuwUSX6HASQ03Gi6YpvZt6bELgk757g4Hg=; b=hkJczcREJhwkHOuTY5ArB+G90vGWwebAl2rvja3Vdm2hFDBJMIOsYW36KH/5+GhS0oh+PqooM+uPFzJAzv8QF0AAALUVipAWW4NUXQhICoP/20FjLT3sI4tnIsvvogQFSKaTK/xD9lgio8VtTK+6AM+JK93BjesRp+hvL86IsGU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79898+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1630071913396368.6887594283826; Fri, 27 Aug 2021 06:45:13 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id RnQSYY1788612xmGn92nQ590; Fri, 27 Aug 2021 06:45:13 -0700 X-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.web11.8150.1630071912034958666 for ; Fri, 27 Aug 2021 06:45:12 -0700 X-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-274-EF3127tuMYyxb4beSGTpuQ-1; Fri, 27 Aug 2021 09:45:10 -0400 X-MC-Unique: EF3127tuMYyxb4beSGTpuQ-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 045C11853026; Fri, 27 Aug 2021 13:45:09 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FB295F724; Fri, 27 Aug 2021 13:45:01 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C5511180039F; Fri, 27 Aug 2021 15:44:59 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Philippe Mathieu-Daude Subject: [edk2-devel] [PATCH v5 1/7] OvmfPkg/Virtio10: Add virtio-mmio 1.0 defines Date: Fri, 27 Aug 2021 15:44:53 +0200 Message-Id: <20210827134459.635098-2-kraxel@redhat.com> In-Reply-To: <20210827134459.635098-1-kraxel@redhat.com> References: <20210827134459.635098-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: uI3iVKmXUxkFxAMwV61VDExkx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1630071913; bh=akoKtt+RcCjaqZMXQTFWtkdaAxbreLtbNOeGrIkGWnU=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=ZXgn5NOuVqN1l2yJqTANaPY0Eb3ro7+jjhHWvR+7foWHw3eFJ1I9yHwduGgsdOBzdoR IA6JLpP5j/v5NUuz6Lnkrhmoojxdh9bLhC1r1SQZh6wll1L45JzrOECtLCaSqG94L9poD xP69O/ODQCSpdGmXcUYbK8y3MYA701LTURg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1630071914836100002 Content-Type: text/plain; charset="utf-8" Add defines for the config space offsets for virtio 1.0 mmio transport. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daude --- OvmfPkg/Include/IndustryStandard/Virtio10.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OvmfPkg/Include/IndustryStandard/Virtio10.h b/OvmfPkg/Include/= IndustryStandard/Virtio10.h index 2c60be2b7c0c..a1712247e054 100644 --- a/OvmfPkg/Include/IndustryStandard/Virtio10.h +++ b/OvmfPkg/Include/IndustryStandard/Virtio10.h @@ -81,4 +81,16 @@ typedef struct { #define VIRTIO_F_VERSION_1 BIT32 #define VIRTIO_F_IOMMU_PLATFORM BIT33 =20 +// +// MMIO VirtIo Header Offsets +// +#define VIRTIO_MMIO_OFFSET_QUEUE_READY 0x44 +#define VIRTIO_MMIO_OFFSET_QUEUE_DESC_LO 0x80 +#define VIRTIO_MMIO_OFFSET_QUEUE_DESC_HI 0x84 +#define VIRTIO_MMIO_OFFSET_QUEUE_AVAIL_LO 0x90 +#define VIRTIO_MMIO_OFFSET_QUEUE_AVAIL_HI 0x94 +#define VIRTIO_MMIO_OFFSET_QUEUE_USED_LO 0xa0 +#define VIRTIO_MMIO_OFFSET_QUEUE_USED_HI 0xa4 +#define VIRTIO_MMIO_OFFSET_CONFIG_GENERATION 0xfc + #endif // _VIRTIO_1_0_H_ --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79898): https://edk2.groups.io/g/devel/message/79898 Mute This Topic: https://groups.io/mt/85185893/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-