From patchwork Tue Feb 24 18:03:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 44977 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B469A2029F for ; Tue, 24 Feb 2015 18:06:42 +0000 (UTC) Received: by wesu56 with SMTP id u56sf18400067wes.1 for ; Tue, 24 Feb 2015 10:06: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:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=NgCmEVVqVRpKe8wBDRv6cmJd2b+HGhWnW/EDoqcE3bk=; b=I4zVnGzC409WsMlOEnsFbCtjmWb9bYxMR4QYIIU3+/lkqa8xrsfymUGU9yb7Rr+jnQ haQcwRJR+W8kPpp4MEGwCmzo+XtK9kpy29HIxtiBFAW0uNnLTVvhYHHuXBPYO3G/zKis THRZ35dxwJPlPz0gHfCDPTEYbKNTuhYdyngj7dlg/b7QbDaB3RsFMz6Pn0uUU7ydD6Sg WbZXsPTgNlwbZlA/bUnpM7lUVMVmRqZ1O+C3rdrtM36RoE+vl1WcCmBvtG6nWHi5BeE7 72BefCNDn2HwjcY4SUALOWQ/3pbatLwxzatbuD9w1FidXo9L2I4pNIbcn+fNlzL+xoqW XBLA== X-Gm-Message-State: ALoCoQm3+Nyh76PkLbjuO3eWQqeHQzBOS9fGF838NHVxl3s4bLk46I9mnj/3ZeeTXYegfJCaEfM6 X-Received: by 10.112.167.98 with SMTP id zn2mr2310685lbb.6.1424801201759; Tue, 24 Feb 2015 10:06:41 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.169 with SMTP id x9ls283804lal.108.gmail; Tue, 24 Feb 2015 10:06:41 -0800 (PST) X-Received: by 10.112.155.168 with SMTP id vx8mr15481260lbb.110.1424801201610; Tue, 24 Feb 2015 10:06:41 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id d11si26607211lbb.41.2015.02.24.10.06.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 10:06:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labhv19 with SMTP id hv19so4883562lab.10 for ; Tue, 24 Feb 2015 10:06:41 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr15206952lal.73.1424801201297; Tue, 24 Feb 2015 10:06:41 -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 h5csp2079371lbj; Tue, 24 Feb 2015 10:06:40 -0800 (PST) X-Received: by 10.53.6.35 with SMTP id cr3mr17118060vdd.17.1424801197087; Tue, 24 Feb 2015 10:06:37 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id xv3si5046496vdc.65.2015.02.24.10.06.36 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Feb 2015 10:06:37 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YQJrg-0003Zx-KB; Tue, 24 Feb 2015 18:05:48 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YQJre-0003VI-N3 for xen-devel@lists.xen.org; Tue, 24 Feb 2015 18:05:46 +0000 Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id 60/6C-02801-A7DBCE45; Tue, 24 Feb 2015 18:05:46 +0000 X-Env-Sender: ard.biesheuvel@linaro.org X-Msg-Ref: server-5.tower-206.messagelabs.com!1424801144!11075616!1 X-Originating-IP: [209.85.212.173] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17630 invoked from network); 24 Feb 2015 18:05:44 -0000 Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com) (209.85.212.173) by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 24 Feb 2015 18:05:44 -0000 Received: by mail-wi0-f173.google.com with SMTP id bs8so27565072wib.0 for ; Tue, 24 Feb 2015 10:05:44 -0800 (PST) X-Received: by 10.194.90.210 with SMTP id by18mr33876189wjb.80.1424801144661; Tue, 24 Feb 2015 10:05:44 -0800 (PST) Received: from ards-macbook-pro.lan (bl11-65-113.dsl.telepac.pt. [85.244.65.113]) by mx.google.com with ESMTPSA id w8sm12792521wja.4.2015.02.24.10.05.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Feb 2015 10:05:43 -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 Date: Tue, 24 Feb 2015 18:03:07 +0000 Message-Id: <1424800990-15777-27-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1424800990-15777-1-git-send-email-ard.biesheuvel@linaro.org> References: <1424800990-15777-1-git-send-email-ard.biesheuvel@linaro.org> Cc: wei.liu2@citrix.com, Ard Biesheuvel Subject: [Xen-devel] [PATCH v5 26/29] Ovfm/Xen: add a Vendor Hardware device path GUID for the XenBus root X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org 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.42 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 List-Archive: 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}}