From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web08.1948.1607488356684227211 for ; Tue, 08 Dec 2020 20:32:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=IfcJjeUG; spf=pass (domain: nuviainc.com, ip: 209.85.210.173, mailfrom: rebecca@nuviainc.com) Received: by mail-pf1-f173.google.com with SMTP id t7so191387pfh.7 for ; Tue, 08 Dec 2020 20:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=DMjVCYq4o0xngVnJYJ5weqGT5oSGkY/LPKxhF+chcHo=; b=IfcJjeUGqYujYNDS/mdjtxM8Q3D5TdxIw04bJ2ZnMD6N4wT8eFHMHlORyRdLQKmZPD HRFhmaKGHRFlbgCgYOzXYP53HlNpNQ1fecP5pylGmf6Mqc7D1JxpI+jtOZBTAoqxnrj2 WdEZLgWnbu6VNoh3+AVPj+joOsV28ZRDt8WiuK2RV9xFM4Sjbo5bqELK24qB7qXo+Ynw xaRW8HbeqF/xPGOtLpmWSJxO+O6cLacaHxoAcVChWoC6IfOGLv6wj6vy/Ckc+zjHjatt dEMhj5i6G9QSx2Wk/mgtQd2nV04jwY1MQNnyESsWjE9uXs+ck/0NaOnOuygU2ujKuZrI AKSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=DMjVCYq4o0xngVnJYJ5weqGT5oSGkY/LPKxhF+chcHo=; b=liianY8zhZqzJEd8XJ4PLrwNqpuYHcgY44MKiComfXrh/qv1HXm7UnCPuP/LYhrbjD p55GhCk0fkZY76uFxp1rFcLI89tI6HQnVNvUSnDQ8WD6jIh36vaOSgeBW55BOkFg+o8H W+K9zKLvug02qYitVBjJT8lZQ25Ay409FZGfV8AeRlb3T1YBKFJC6B/KOjyUP6IXYfOz nW6+Cel1N9l7xpjkGQ9cx2CqD/9HWQpiu94Lmcq8OYbGVAZYcM6/lOyVAQZRRQjcBXzR 8x/M6ztUMyeoV8KF86B+FpuaUh6EnyV7AIQKDo1tTCsOYNVgqEAAgrI31zppAwW+LGJN GC2g== X-Gm-Message-State: AOAM530V6UfogvoEh5RkiO91RFwq1aek0mKb0DS4kJ0cPFsvyCUsc6ah 8y3psfUCh9MgGZvt/z70YP/nrQ== X-Google-Smtp-Source: ABdhPJzcojwP16bKNYpvg/+6x8e2FIapHTRiToJN60ljnRecEcE1ZjUosRQJYgvPDQhCWBSsZVezyg== X-Received: by 2002:a63:4c41:: with SMTP id m1mr313176pgl.427.1607488356150; Tue, 08 Dec 2020 20:32:36 -0800 (PST) Return-Path: Received: from [10.0.10.142] (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id a26sm406606pgd.64.2020.12.08.20.32.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Dec 2020 20:32:35 -0800 (PST) From: "Rebecca Cran" Subject: RFC: Adding support for ARM (RNDR etc.) to RngDxe To: "devel@edk2.groups.io" Cc: rfc@edk2.groups.io, Jiewen Yao , Rahul Kumar Message-ID: <70a4f9e7-952c-cf05-bca7-009ee5b2cd3f@nuviainc.com> Date: Tue, 8 Dec 2020 21:32:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Currently, RngDxe in SecurityPkg only supports Intel, with RdRand support. This RFC is to start a discussion about adding support for ARM. I have a Git branch with support for the optional ARMv8.5 RNDR instruction at https://github.com/bcran/edk2/commits/bcran-rndr which moves the existing Intel support into a Rand directory, and adds code to support RNDR in a new AArch64 directory. There are other RNG implementations available for ARM, including platform-specific approaches on Graviton (https://lwn.net/Articles/790304/) and other platforms, so a more thorough rearchitecting/redesign may be desired. -- Rebecca Cran