From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A133A2193930F for ; Tue, 4 Apr 2017 06:24:18 -0700 (PDT) Received: by mail-lf0-x230.google.com with SMTP id h125so92848891lfe.0 for ; Tue, 04 Apr 2017 06:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=u+tLYl78LxTXkh6qAqdWJeXil/fnyKbbyvH3opIQdmo=; b=Zac39RzzOi++lSdFUiTXDHIuqcp0z8dbA9O6BLUeyE3JfYwHgKDdljU8S2dRJstJ+r YzO143NkWtP2L3k4UlnHkQwD7KPO3mYBqsLWvQpmvFKP6cpcsMFK5dTyfKn90MmdamQI s8zSzd/DoNECfJ9LDUU7ZLSYMQMVFegVQ4UlA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=u+tLYl78LxTXkh6qAqdWJeXil/fnyKbbyvH3opIQdmo=; b=IYVQSAbQbUSQGZGuHgvGdx4tcNW4bhsZtmUjbE0MkmHEVQsz+5c6Q/ZoMYGF2fcpJY FEjt66II+KHRfSONCPWU/RiEuNVMVKQ79PBtNErqYBTb3pZmAupS8WrBTUaJr9FR5ej+ qNkDDf560FOcjANGber2PPJAFOJmtFyaEyVe8mvpr57JjSNSrN+Iszo3LlJX1yK4kk+T 0A6aw36eQORjCC5fZIw9jyc5LgvNG6YupwAZxrOG5jUSI+A1ZLz7eZpvfIcePNw3uyly +0vnyprQ1ckNGRvfj5t5mKovnhF1l+PnGkjT08IOkRkeqAFwuDEESpVJ3oZavJNPF/Rz aKTg== X-Gm-Message-State: AFeK/H3mHefxCFzpfIIM6foptyrrQpa8e/A4Dgts02OeqBBZW7ZJ0ueL 3WRUO+8O3bFof5Bg X-Received: by 10.28.168.130 with SMTP id r124mr14367813wme.34.1491312256476; Tue, 04 Apr 2017 06:24:16 -0700 (PDT) Received: from localhost.localdomain ([160.163.145.113]) by smtp.gmail.com with ESMTPSA id g10sm13773778wrb.56.2017.04.04.06.24.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 06:24:15 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Cc: jens.wiklander@linaro.org, Ard Biesheuvel Date: Tue, 4 Apr 2017 14:24:06 +0100 Message-Id: <20170404132409.20422-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [PATCH 0/3] ArmVirtPkg: ignore DT nodes with a status != 'okay' X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2017 13:24:19 -0000 The DT passed to us by QEMU may contain nodes that are supposed to be consumed by the secure world only. In some case, their status may be set to 'secure', but 'disabled' occurs as well, if the secure OS has actually modified the DT. Since as a general rule, DT nodes should only be consumed if they lack a status or if their status equals 'okay', update our DT node parsing routines accordingly. Ard Biesheuvel (3): ArmVirtPkg/FdtClientDxe: take DT memory node 'status' property into account ArmVirtPkg/FdtPL011SerialPortLib: take DT node 'status' property into account ArmVirtPkg/PlatformPeiLib: take DT node 'status' property into account ArmVirtPkg/FdtClientDxe/FdtClientDxe.c | 8 ++++++++ ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.c | 6 ++++++ ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c | 7 +++++++ 3 files changed, 21 insertions(+) -- 2.9.3