From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-x234.google.com (mail-ua0-x234.google.com [IPv6:2607:f8b0:400c:c08::234]) (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 0E4DB80387 for ; Mon, 20 Mar 2017 03:33:00 -0700 (PDT) Received: by mail-ua0-x234.google.com with SMTP id u30so73408965uau.0 for ; Mon, 20 Mar 2017 03:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wYeooKBPwDo13pQcORJXO0GGUN/nnv3wRXDIDS82EFo=; b=CIIh3s5EFkBxqF8rb1jxw6qm3rUT1RuJdPDumFrunDvKFBv4/mSTGZ6WXd1IsU5HAW UyAN2eF4SO6qZ3RsSfw4WDHYjj2PrrqTn6FWfAOyURjljWNZwLJn5FOFWkSUrttJ+AMB uUGfb3NzZQEyEyzbpWRJzDm4d6BEUQz+bSyE03YBjamMzQNXTknLqersZJl+4KQgNyc0 ESq0TfLySJZOQPTxI3HLJfuNM4Y3W07A43BUlPTxjCndRRv7SEsNbyh8IOW5ngi6EYU6 YBj87yH1rXofwFJl5w9g0atzQvjbo++ypZ6FTd2HoQ2JromxiMCzF4rDHf/Qgc7Cx0V+ PMqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wYeooKBPwDo13pQcORJXO0GGUN/nnv3wRXDIDS82EFo=; b=se55Xdb6SVm157CtRWNDHTDB3Peq3VaQISbLBv7997H6PsO4xThnyIHR6qpn4mcq7w mxWw9wFTVlb7spOj782liIiJqNHl3OG8lgLP/irg1EFvGuMkq2SJDiKeWOcjNidEcf0g 0sk3LCbgpHDGvot17S/UjpUR27ERqBv5x5CVvyLynBQj85WinXDRTa8HrTlA1Mg3ac1m S9UuleqdCDR+qFhC5MyoFMSKLEPWJ5E7W6YuKQxoCn8pinZSsG8o2EB0lmDoTyRquOjS jaWKWNh2En+RJWoUjGxYhh3JkqxxydQTprH1qdmiwNpJ0SkqXxhs6ix3etY9ywB3Ll91 9wAw== X-Gm-Message-State: AFeK/H0Kst1mLupANktfI6cmYEf3Xio0dR/t2nShoXhb+Y6P9J2BOkFs46sYlwi/gM6TKqhTe2amvTFDttlLhQ== X-Received: by 10.176.71.24 with SMTP id h24mr1002756uac.167.1490005978949; Mon, 20 Mar 2017 03:32:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.171.80 with HTTP; Mon, 20 Mar 2017 03:32:58 -0700 (PDT) From: Michael Zimmermann Date: Mon, 20 Mar 2017 11:32:58 +0100 Message-ID: To: edk2-devel-01 , Laszlo Ersek , Ard Biesheuvel Subject: SetMemorySpaceAttributes with EFI_MEMORY_XP 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: Mon, 20 Mar 2017 10:33:00 -0000 Content-Type: text/plain; charset=UTF-8 Hi, I didn't test ArmVirtQemuKernel but I'm trying to use some of the code for another platform. So does this call ever succeed with PcdDxeNxMemoryProtectionPolicy being enabled? https://github.com/tianocore/edk2/blob/76874be3d411bf8daac051718e20932e0bf97d70/ArmVirtPkg/HighMemDxe/HighMemDxe.c#L95 Status = gDS->SetMemorySpaceAttributes (CurBase, CurSize, Attributes); Neither the memory that was added by this Dxe nor the one added automatically by GCD has the EFI_MEMORY_XP capability which causes SetMemorySpaceAttributes to return EFI_UNSUPPORTED. Thanks Michael