Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    b15db045
    memory: add alloc_phys_contiguous_aligned() API · b15db045
    Avi Kivity authored
    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.
    b15db045
    History
    memory: add alloc_phys_contiguous_aligned() API
    Avi Kivity authored
    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.