From patchwork Sat May 1 17:18:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Kozlyuk X-Patchwork-Id: 92586 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D84D0A0546; Sat, 1 May 2021 19:18:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A7524014F; Sat, 1 May 2021 19:18:48 +0200 (CEST) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by mails.dpdk.org (Postfix) with ESMTP id 525424013F for ; Sat, 1 May 2021 19:18:46 +0200 (CEST) Received: by mail-lj1-f178.google.com with SMTP id s9so1894891ljj.6 for ; Sat, 01 May 2021 10:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KSrCBsUITbm/JWv1Ikwan9XiVmCuHHDs9Z+hHQDkhvo=; b=ZwFqEAg/hZ2GA+TtudQ6rtdNmqdRejm7FFeNyJUVmnpYIGHYhfXA7zrO3ygAipgkJe 1EX/qnJkqTXQVwfIEzm+VliFiUxS/7Vo3x+WZ2+/kd84e6A3esk8fxc95eY0HiV3KmDc 4ycHqA8RV13T2OpdozfeZsGgd0TI7QJC7PgtLRntRESpQ1z1LCKUHF0IPW9vXSW5F5R+ NI0HDp2joka0XUn0koPslvsAVpyAEP/q4lKKbsCSMFdG1wiTBP4Bu8sD860rL6NyRZev wyYY2EaEoUyhkbjtw1o04U7HksGn3aO+0fPAnW9ICgRPwmeS7X8bD17/QUeqcjqoYHH4 sG2g== 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:mime-version :content-transfer-encoding; bh=KSrCBsUITbm/JWv1Ikwan9XiVmCuHHDs9Z+hHQDkhvo=; b=sWs3wojjraLPxxMypE0luQNvVZHLjBVsnWNjdam8l0iTnpchr1IGFS68Gethoo0kSz G5nUIQ41eRXMHLHalaY1q18tkcfNgGhm8mpWsolbI2LUQJu3krDCDTDd4z2crQZVRx2f t19SXUBIsGnc+3RXH4hf1Zm2mYcVxFmVM7oMZVyxSnf0q+MBSDOl44ruSNTJ+fGqbp8A EbyzuM+7+byx30IQ2+JPDTzd1xgj93MyBF+OeFMBUqnpI0gqk7ESaHHCfJ/ztmJYN/AM YfJMnmn2noufI6o0WQBG0O6nFzCERYkWgIUtu+grjcjpS/8Mwyc0UIvQGqFkJLVyMzT7 W2gg== X-Gm-Message-State: AOAM531qNO5gfJi7A//e2FNZaj0U0Mi67i0zP7SqLbxJgg+gtJVPPgnY o15GQNUIMkq4+HIS7ThY7elwlxWWurWfgQ== X-Google-Smtp-Source: ABdhPJweCrjBPlQAq45ARVFVonFatPg++gwsRb0fB7oJLH3oC/RUDBWHQPpUIr6z9GkTYttxFv89HQ== X-Received: by 2002:a2e:549:: with SMTP id 70mr6957210ljf.340.1619889525456; Sat, 01 May 2021 10:18:45 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id i1sm616703lfe.53.2021.05.01.10.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 10:18:44 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Malloy , Narcisa Ana Maria Vasile , Pallavi Kadam , Tyler Retzlaff , Nick Connolly , Dmitry Kozlyuk Date: Sat, 1 May 2021 20:18:34 +0300 Message-Id: <20210501171837.13282-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 MIME-Version: 1.0 Subject: [dpdk-dev] [kmods PATCH 0/3] windows/virt2phys: fix paging issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Physical addresses exposed by virt2phys driver could become pageable. This presents stability and security issues that prevent Microsoft from signing virt2phys, because a signed driver would be trusted by all end-user machines. Ensure that memory for which physical addresses are exposed by virt2phys is non-pageable at least for the lifetime of the process. As virt2phys code grows, make its development and debugging easier. There are other known issues that come from using PA and accessing DMA from userspace. They are not related to virt2phys par se. It is planned to address them later by enabling the use of IOMMU for DPDK on Windows. Dmitry Kozlyuk (3): windows/virt2phys: use local time for signing windows/virt2phys: do not expose pageable physical addresses windows/virt2phys: add tracing windows/virt2phys/virt2phys.c | 89 ++++-- windows/virt2phys/virt2phys.vcxproj | 8 +- windows/virt2phys/virt2phys.vcxproj.filters | 11 +- windows/virt2phys/virt2phys_logic.c | 312 ++++++++++++++++++++ windows/virt2phys/virt2phys_logic.h | 32 ++ windows/virt2phys/virt2phys_trace.h | 49 +++ 6 files changed, 472 insertions(+), 29 deletions(-) create mode 100644 windows/virt2phys/virt2phys_logic.c create mode 100644 windows/virt2phys/virt2phys_logic.h create mode 100644 windows/virt2phys/virt2phys_trace.h Acked-by: Ranjit Menon