From patchwork Thu Feb 12 11:19:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 44626 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF1512151D for ; Thu, 12 Feb 2015 11:21:43 +0000 (UTC) Received: by labgm9 with SMTP id gm9sf6077961lab.2 for ; Thu, 12 Feb 2015 03:21:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=FHB1L0GrfOuKDqrb7dV7WElEAD3UEBtUJTF0SzFhIzA=; b=XusInOZdGKezWWioaxbbbdljKTyHyps7/v19wPivsN8P0O3xK2Cu8s4VQXCaXZ7nUN cR+ZElJ58bxiK3N1TrU0HDcTe01svfmc5dqSz6Xt1/2QQ1+aT1CEWi5hfOGAdxTrANRI J0L9FhXcgUgXm6bFsGJhAJHX3nazaAkCm27UEOA9hRXwMiAmiM6UqhLBpuRjPxeMQXxI zlIwy1U6XnlX19fZzX2NAyjd9m0WKXqVb5O0H1XQY2RwYBCyNnv1mz6FgDFfKhtZvicl zLF4KHJ63dYpc65w1aR6cPFiUfmGWz/oWoSUiz5dJBqQHc9c6ULOf9PiM+auJB3ZYZLL a9aw== X-Gm-Message-State: ALoCoQk2d8TkGxMsu3NKUgS5/KSp9JG4/+hzrr5kkjAM/ne0eRBXdv50qTd+ZMdGRb0Y3hQepVeI X-Received: by 10.180.94.134 with SMTP id dc6mr401419wib.2.1423740102737; Thu, 12 Feb 2015 03:21:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.168 with SMTP id an8ls179612lac.62.gmail; Thu, 12 Feb 2015 03:21:42 -0800 (PST) X-Received: by 10.152.23.195 with SMTP id o3mr2821426laf.70.1423740102505; Thu, 12 Feb 2015 03:21:42 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id b8si2741024lak.36.2015.02.12.03.21.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 03:21:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by labgm9 with SMTP id gm9so9337952lab.2 for ; Thu, 12 Feb 2015 03:21:42 -0800 (PST) X-Received: by 10.112.125.4 with SMTP id mm4mr2826563lbb.86.1423740102425; Thu, 12 Feb 2015 03:21:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp378881lbj; Thu, 12 Feb 2015 03:21:41 -0800 (PST) X-Received: by 10.50.142.99 with SMTP id rv3mr3116827igb.11.1423740094840; Thu, 12 Feb 2015 03:21:34 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id y9si1064471igl.35.2015.02.12.03.21.34 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 12 Feb 2015 03:21:34 -0800 (PST) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YLrpn-0002g3-Cy; Thu, 12 Feb 2015 11:21:27 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YLrpm-0002fa-4a for edk2-devel@lists.sourceforge.net; Thu, 12 Feb 2015 11:21:26 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.192.169 as permitted sender) client-ip=209.85.192.169; envelope-from=ard.biesheuvel@linaro.org; helo=mail-pd0-f169.google.com; Received: from mail-pd0-f169.google.com ([209.85.192.169]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YLrpl-0006wT-6a for edk2-devel@lists.sourceforge.net; Thu, 12 Feb 2015 11:21:26 +0000 Received: by pdjy10 with SMTP id y10so11300773pdj.13 for ; Thu, 12 Feb 2015 03:21:19 -0800 (PST) X-Received: by 10.68.211.7 with SMTP id my7mr5477228pbc.115.1423740079505; Thu, 12 Feb 2015 03:21:19 -0800 (PST) Received: from ards-macbook-pro.local ([210.177.145.249]) by mx.google.com with ESMTPSA id n4sm3554887pdl.12.2015.02.12.03.21.16 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Feb 2015 03:21:18 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.sourceforge.net, olivier.martin@arm.com, lersek@redhat.com, roy.franz@linaro.org, leif.lindholm@linaro.org, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, anthony.perard@citrix.com, xen-devel@lists.xen.org, julien.grall@linaro.org, jordan.l.justen@intel.com, michael.d.kinney@intel.com, feng.tian@intel.com Date: Thu, 12 Feb 2015 19:19:18 +0800 Message-Id: <1423739961-5945-27-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1423739961-5945-1-git-send-email-ard.biesheuvel@linaro.org> References: <1423739961-5945-1-git-send-email-ard.biesheuvel@linaro.org> X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1YLrpl-0006wT-6a Subject: [edk2] [PATCH v4 26/29] Ovfm/Xen: add a Vendor Hardware device path GUID for the XenBus root X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 On non-PCI Xen guests (such as ARM), the XenBus root is not a PCI device but an abstract 'platform' device. Add a dedicated Vendor Hardware device path GUID to identify this node. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek Signed-off-by: Ard Biesheuvel --- OvmfPkg/Include/Guid/XenBusRootDevice.h | 24 ++++++++++++++++++++++++ OvmfPkg/OvmfPkg.dec | 1 + 2 files changed, 25 insertions(+) diff --git a/OvmfPkg/Include/Guid/XenBusRootDevice.h b/OvmfPkg/Include/Guid/XenBusRootDevice.h new file mode 100644 index 000000000000..2b6e71018052 --- /dev/null +++ b/OvmfPkg/Include/Guid/XenBusRootDevice.h @@ -0,0 +1,24 @@ +/** @file + GUID to be used to identify the XenBus root node on non-PCI Xen guests + + Copyright (C) 2015, Linaro Ltd. + + This program and the accompanying materials are licensed and made available + under the terms and conditions of the BSD License that accompanies this + distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT + WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __XENBUS_ROOT_DEVICE_H__ +#define __XENBUS_ROOT_DEVICE_H__ + +#define XENBUS_ROOT_DEVICE_GUID \ +{0xa732241f, 0x383d, 0x4d9c, {0x8a, 0xe1, 0x8e, 0x09, 0x83, 0x75, 0x89, 0xd7}} + +extern EFI_GUID gXenBusRootDeviceGuid; + +#endif diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 3711fa922311..d61600225919 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -53,6 +53,7 @@ gEfiXenInfoGuid = {0xd3b46f3b, 0xd441, 0x1244, {0x9a, 0x12, 0x0, 0x12, 0x27, 0x3f, 0xc1, 0x4d}} gOvmfPlatformConfigGuid = {0x7235c51c, 0x0c80, 0x4cab, {0x87, 0xac, 0x3b, 0x08, 0x4a, 0x63, 0x04, 0xb1}} gVirtioMmioTransportGuid = {0x837dca9e, 0xe874, 0x4d82, {0xb2, 0x9a, 0x23, 0xfe, 0x0e, 0x23, 0xd1, 0xe2}} + gXenBusRootDeviceGuid = {0xa732241f, 0x383d, 0x4d9c, {0x8a, 0xe1, 0x8e, 0x09, 0x83, 0x75, 0x89, 0xd7}} [Protocols] gVirtioDeviceProtocolGuid = {0xfa920010, 0x6785, 0x4941, {0xb6, 0xec, 0x49, 0x8c, 0x57, 0x9f, 0x16, 0x0a}}