Skip to content

windows/virt2phys: fix paging issue

Dmitry Kozlyuk dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v24 patches 6 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

* Fix Release build (Ranjit).
* Drop PnpLockdown=1 patch as it is now in dependency series.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3windows/virt2phys: do not expose pageable physical addresseswindows/virt2phys/virt2phys.c windows/virt2phys/virt2phys.vcxproj windows/virt2phys/virt2phys.vcxproj.filters +2 more+471 -310 replies
2/3windows/virt2phys: add limits against resource exhaustionwindows/virt2phys/README.md windows/virt2phys/virt2phys.c windows/virt2phys/virt2phys_logic.c +1 more+152 -140 replies
3/3windows/virt2phys: add tracingwindows/virt2phys/virt2phys.c windows/virt2phys/virt2phys.vcxproj windows/virt2phys/virt2phys.vcxproj.filters +2 more+103 -120 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRanjit Menon
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [dpdk-dev] [kmods PATCH v3 0/3] windows/virt2phys: fix paging issue

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.

Depends-on: series-19342 ("windows: independent fixes")

v3:
* Fix Release build (Ranjit).
* Drop PnpLockdown=1 patch as it is now in dependency series.
v2:
* Following ofline review by DmitryM:
- Add comment explaining tracking approach for validation team.
- Replace deprecated allocation API calls.
- Check properties of locked memory (see docs in patch 3/4).
- Add configurable limits for tracked processes and memory.
* Add end-user documentation.
* Drop patch for Inf2Cat settings UseLocalTime=true:
the issue it resolves originated from development VM.
* Add PnpLockdown=1 patch.

Dmitry Kozlyuk (3):
windows/virt2phys: do not expose pageable physical addresses windows/virt2phys: add limits against resource exhaustion windows/virt2phys: add tracing

 windows/virt2phys/README.md                 |  38 ++
 windows/virt2phys/virt2phys.c               | 173 ++++++--
 windows/virt2phys/virt2phys.vcxproj         |  11 +-
 windows/virt2phys/virt2phys.vcxproj.filters |  11 +-
 windows/virt2phys/virt2phys_logic.c         | 415 ++++++++++++++++++++
 windows/virt2phys/virt2phys_logic.h         |  39 ++
 windows/virt2phys/virt2phys_trace.h         |  50 +++
 7 files changed, 703 insertions(+), 34 deletions(-)
 create mode 100644 windows/virt2phys/README.md
 create mode 100644 windows/virt2phys/virt2phys_logic.c
 create mode 100644 windows/virt2phys/virt2phys_logic.h
 create mode 100644 windows/virt2phys/virt2phys_trace.h
Signature · 1 line
2.29.3