From patchwork Mon Jan 26 19:03:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 43801 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 19AE720D5D for ; Mon, 26 Jan 2015 19:05:48 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf5303002lbv.1 for ; Mon, 26 Jan 2015 11:05:47 -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=mpB7sy8JbmqPPsohieIo+OdYQqQRAAuix/39PmjBeHE=; b=AGSU2cBxASvajgOMGJSiXCNrxZdF1cWuVqXq1hD5j6VAnscn7JaVXY6qzsrTeNoTXp RvjVuUrsmr8HM1e0mnZEhNfVgvMMXcZj+ZfOU7tfSmQicc4hfnYAwDJzDk380jTHkmWU HKph53d++XFNERzRW8c1nDiK7bxHPbhVMZRAmsghACHnf6pIqg9Te8pJMEElMD6rbH0z rKwzUeKs82xTv7JFesIny4Rpwwnn82vzvruuifqB7T9p33zgOXXD8k7o6V0flPV/HSxt +622L/oUCVWBfGHzjxmxED+LJIvmPz0nPIHpoLC9H2Ll6lHMOKL9sZonH+AI20VYIKYx xwNQ== X-Gm-Message-State: ALoCoQkIi3FqQ9RVHcO8d73kOy1JlwxOfDG5hMXpWpdtsPupZR7qlEcahbFFR7ioUyeeoU8XDAKj X-Received: by 10.152.43.166 with SMTP id x6mr964624lal.3.1422299147040; Mon, 26 Jan 2015 11:05:47 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.232 with SMTP id h8ls588693lam.3.gmail; Mon, 26 Jan 2015 11:05:46 -0800 (PST) X-Received: by 10.152.5.132 with SMTP id s4mr22975726las.39.1422299146769; Mon, 26 Jan 2015 11:05:46 -0800 (PST) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id xz9si9789363lbb.82.2015.01.26.11.05.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 11:05:46 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id l4so9305222lbv.3 for ; Mon, 26 Jan 2015 11:05:46 -0800 (PST) X-Received: by 10.112.84.225 with SMTP id c1mr5231663lbz.22.1422299146641; Mon, 26 Jan 2015 11:05:46 -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 h5csp870691lbj; Mon, 26 Jan 2015 11:05:45 -0800 (PST) X-Received: by 10.50.30.130 with SMTP id s2mr18119236igh.11.1422299135874; Mon, 26 Jan 2015 11:05:35 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id jg6si7808235igb.13.2015.01.26.11.05.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Jan 2015 11:05:35 -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-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YFoyS-0003AD-Ri; Mon, 26 Jan 2015 19:05:24 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YFoyJ-00038Q-Rl for edk2-devel@lists.sourceforge.net; Mon, 26 Jan 2015 19:05:15 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.44 as permitted sender) client-ip=74.125.82.44; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wg0-f44.google.com; Received: from mail-wg0-f44.google.com ([74.125.82.44]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YFoyK-0007Hh-Gl for edk2-devel@lists.sourceforge.net; Mon, 26 Jan 2015 19:05:17 +0000 Received: by mail-wg0-f44.google.com with SMTP id z12so10788080wgg.3 for ; Mon, 26 Jan 2015 11:05:11 -0800 (PST) X-Received: by 10.180.126.99 with SMTP id mx3mr30445966wib.66.1422299111651; Mon, 26 Jan 2015 11:05:11 -0800 (PST) Received: from ards-macbook-pro.local ([197.129.8.190]) by mx.google.com with ESMTPSA id fo17sm15471007wjc.19.2015.01.26.11.05.08 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 11:05:10 -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 Date: Mon, 26 Jan 2015 19:03:28 +0000 Message-Id: <1422299011-2409-27-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1422299011-2409-1-git-send-email-ard.biesheuvel@linaro.org> References: <1422299011-2409-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: 1YFoyK-0007Hh-Gl Subject: [edk2] [PATCH v2 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.217.172 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 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}}