Skip to content

Overzealous limits on MMIO addressing #417

@pfmooney

Description

@pfmooney

The propolis library defines a pair of limits for sysmem (guest DRAM) and physmem (MMIO accesses):

// XXX: Arbitrary limits for now
pub const MAX_PHYSMEM: usize = 0x80_0000_0000;
pub const MAX_SYSMEM: usize = 0x40_0000_0000;

The physmem limit in particular poses a challenge for any PCI device which has its 64-bit BAR(s) placed at a physical address which exceeds it. This was found to be at least part of the problem when an illumos guest was unable to attach its nvme driver due to failed accesses to the nvme registers held in a 64-bit BAR placed above the physmem limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions