Skip to content

xen: patch to batch pvh/dom0 mem mapping#181

Open
alexandermerritt wants to merge 1 commit into
mainfrom
alexm/mmap-batch
Open

xen: patch to batch pvh/dom0 mem mapping#181
alexandermerritt wants to merge 1 commit into
mainfrom
alexm/mmap-batch

Conversation

@alexandermerritt
Copy link
Copy Markdown
Contributor

Addresses some of the latency costs identified in https://github.com/edera-dev/protect/issues/1890

Tested on native dell desktop and was measured to improve performance of zone launches by ~37ms.

Signed-off-by: Alexander M. Merritt <alexander@edera.dev>
Copy link
Copy Markdown
Contributor

@bleggett bleggett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me and makes logical sense but I'm not an MMU expert.

Comment thread patches/0001-xen-xlate_mmu-batch-gfn-mappings.patch
Comment thread patches/0001-xen-xlate_mmu-batch-gfn-mappings.patch
Comment thread patches/0001-xen-xlate_mmu-batch-gfn-mappings.patch
@alexandermerritt
Copy link
Copy Markdown
Contributor Author

I rewrote the patch to another branch, and attempted to simplify it more: https://github.com/edera-dev/linux-upstream/commits/alexm/mmap_batch_v2/

more recent two commits contain the changes, and in them I addressed the above comments

@alexandermerritt
Copy link
Copy Markdown
Contributor Author

I rewrote the patch to another branch, and attempted to simplify it more: https://github.com/edera-dev/linux-upstream/commits/alexm/mmap_batch_v2/

more recent two commits contain the changes, and in them I addressed the above comments

Notably, with a more minimal change, reusing xen_for_each_gfn, I am measuring we lost 10ms to launching a zone (88ms vs 78ms with the v1), as that iterates with a callback on each page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants