Skip to content
Snippets Groups Projects
Commit b15db045 authored by Avi Kivity's avatar Avi Kivity
Browse files

memory: add alloc_phys_contiguous_aligned() API

Virtio and other hardware needs physically contiguous memory, beyond one page.
It also requires page-aligned memory.
Add an explicit API for contiguous and aligned memory allocation.

While our default allocator returns physically contiguous memory, the debug
allocator does not, causing virtio devices to fail.
parent bbd2ec6f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment