Repository navigation
tools/testing: test the Xen unpopulated allocator in userspace - #65
Draft
alexandermerritt wants to merge 1 commit into
Draft
alexandermerritt wants to merge 1 commit into
alexandermerritt wants to merge 1 commit into
Conversation
The unpopulated allocator runs only in a Xen guest, and mostly at boot. Its hard cases depend on where the boot-time address space lies: a node that changes inside a 2 MiB block, a region that does not start or end on a block, a region with no whole block in it. A VM cannot choose that layout, and a mistake there does not fail where it is made: a pfn is handed out twice or lost, and a mapping or the balloon finds out long after. Build drivers/xen/unpopulated-alloc.c, as it is in the tree, against a fake memory map of four nodes, and check after every step that each pfn the allocator was given is free in exactly one place or held by a caller. Build with AddressSanitizer and UBSan, as the memblock and radix-tree tests do, so that a read or write past the memory map also fails.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests for #63
This PR has test code for what we have in Linux that isn't tested anywhere else except what could be done by an e2e test. So I am parking it here.