Skip to content

Zero allocated pages

Nadav Amit kvm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 4 repliesIn review
  2. v24 patches 5 repliesApplied
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

* Typos [Alexandru]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib/alloc_page: Zero allocated pageslib/alloc_page.c+4 -01 reply
2/4x86: Remove redundant page zeroinglib/x86/intel-iommu.c x86/eventinj.c x86/hyperv_connections.c +2 more+0 -310 replies
3/4lib: Remove redundant page zeroinglib/virtio-mmio.c+0 -11 reply
4/4arm: Remove redundant page zeroinglib/arm/asm/pgtable.h lib/arm/mmu.c lib/arm64/asm/pgtable.h+0 -41 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKrish SadhukhanAlexandru EliseiKonrad Rzeszutek WilkAndrew Jones
SeriesR-b
1/4R-b R-b
2/4R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [kvm-unit-tests PATCH v3 0/4] Zero allocated pages

For reproducibility, it is best to zero pages before they are used. There are hidden assumptions on memory being zeroed (by BIOS/KVM), which might be broken at any given moment. The full argument appears in the first patch commit log.

Following the first patch that zeros the memory, the rest of the patch-set removes redundant zeroing do to the additional zeroing.

This patch-set is only tested on x86.

v2->v3:
* Typos [Alexandru]

v1->v2:
* Change alloc_pages() as well
* Remove redundant page zeroing [Andrew]

Nadav Amit (4):
lib/alloc_page: Zero allocated pages
x86: Remove redundant page zeroing
lib: Remove redundant page zeroing
arm: Remove redundant page zeroing

 lib/alloc_page.c         |  4 ++++
 lib/arm/asm/pgtable.h    |  2 --
 lib/arm/mmu.c            |  1 -
 lib/arm64/asm/pgtable.h  |  1 -
 lib/virtio-mmio.c        |  1 -
 lib/x86/intel-iommu.c    |  5 -----
 x86/eventinj.c           |  1 -
 x86/hyperv_connections.c |  4 ----
 x86/vmx.c                | 10 ----------
 x86/vmx_tests.c          | 11 -----------
 10 files changed, 4 insertions(+), 36 deletions(-)
Signature · 1 line
2.17.1