From patchwork Tue Feb 3 19:20:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 44300 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 543AD2034D for ; Tue, 3 Feb 2015 19:22:20 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id x12sf22044081wgg.0 for ; Tue, 03 Feb 2015 11:22:19 -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=BNvEASSSbJgsfbyeYkVJUglK8SO60+5mFN5KsUMk9rk=; b=HBz9imc9QndBzglExZMWk4ivoN1iaQEc2285TlTetMH9WtdtkQBCUzImtEtzmIZXRu 7VgesVubmI3iMpUj0Uq3ePVrX90Onr8TuuVXSFcRoRlUFYDHYkhQAMAlM7iRkrGoixux lEh7M9oijH3WW37VN3G43OZAir8pa81OdEXWKuuNxz/KAJ7x6CQD/I3/ZT6HjHx1MAk2 oeIYkxHk2rV1bJ28fRm8+z69CT9MakcTQiyknpR8LoxSpjy+7L5t3EYZlvsFWjFOwGdf GpoItX1wQOHUXiJoF+QXuOJDzXr5UJYmcZZXQHdrtbRW4KbRz5gAK+d8DdBvVLFyZYq+ qrWw== X-Gm-Message-State: ALoCoQlWirqaonBEDEgmZ+/yGBJN0mvsvOAXdkUaj7ZAPQ2gTuBNMrlNjb9YT9pJdDdLzjj4m3Em X-Received: by 10.194.86.1 with SMTP id l1mr3354748wjz.0.1422991339646; Tue, 03 Feb 2015 11:22:19 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.228 with SMTP id u4ls217209laa.71.gmail; Tue, 03 Feb 2015 11:22:19 -0800 (PST) X-Received: by 10.112.16.130 with SMTP id g2mr4252248lbd.100.1422991339490; Tue, 03 Feb 2015 11:22:19 -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 g4si9634921lab.66.2015.02.03.11.22.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 11:22:19 -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 mail-la0-f50.google.com with SMTP id hs14so54074364lab.9 for ; Tue, 03 Feb 2015 11:22:19 -0800 (PST) X-Received: by 10.152.2.41 with SMTP id 9mr5978019lar.59.1422991339315; Tue, 03 Feb 2015 11:22:19 -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 h5csp34395lbj; Tue, 3 Feb 2015 11:22:18 -0800 (PST) X-Received: by 10.107.46.213 with SMTP id u82mr30955952iou.68.1422991337659; Tue, 03 Feb 2015 11:22:17 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id e10si10367388igl.32.2015.02.03.11.22.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 11:22:17 -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-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YIj32-0000Hv-Rq; Tue, 03 Feb 2015 19:22:08 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YIj31-0000Hi-H8 for edk2-devel@lists.sourceforge.net; Tue, 03 Feb 2015 19:22:07 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wi0-f174.google.com; Received: from mail-wi0-f174.google.com ([209.85.212.174]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YIj30-0002U8-Er for edk2-devel@lists.sourceforge.net; Tue, 03 Feb 2015 19:22:07 +0000 Received: by mail-wi0-f174.google.com with SMTP id n3so26909302wiv.1 for ; Tue, 03 Feb 2015 11:22:00 -0800 (PST) X-Received: by 10.194.120.40 with SMTP id kz8mr57747882wjb.21.1422991320514; Tue, 03 Feb 2015 11:22:00 -0800 (PST) Received: from ards-macbook-pro.local (73.233.28.37.rev.vodafone.pt. [37.28.233.73]) by mx.google.com with ESMTPSA id eb7sm25860139wic.11.2015.02.03.11.21.56 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 11:21:59 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.sourceforge.net, lersek@redhat.com, olivier.martin@arm.com, roy.franz@linaro.org, leif.lindholm@linaro.org, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, anthony.perard@citrix.com, christoffer.dall@linaro.org, xen-devel@lists.xen.org, ilias.biris@linaro.org, julien.grall@linaro.org Date: Tue, 3 Feb 2015 19:20:09 +0000 Message-Id: <1422991212-9257-25-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1422991212-9257-1-git-send-email-ard.biesheuvel@linaro.org> References: <1422991212-9257-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 X-Headers-End: 1YIj30-0002U8-Er Subject: [edk2] [PATCH v3 24/27] 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(+) create mode 100644 OvmfPkg/Include/Guid/XenBusRootDevice.h 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}}