This function makes it easy to allocate new E820 entries. It will be
used to allocate graphics memory for Intel integrated graphic devices.
Details
Details
- Reviewers
markj jhb - Group Reviewers
bhyve - Commits
- rG0f8a17795d21: bhyve: add allocation function to E820
rG5597f564870e: bhyve: add allocation function to E820
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
The table isn't passed directly to the guest. e820_get_fwcfg_item converts the current table into a fwcfg item. So, changes of the table aren't reflected by the fwcfg item.
usr.sbin/bhyve/e820.c | ||
---|---|---|
350 | e820_add_entry already exists. This function tries is a wrapper around e820_add_entry to add an entry at a specific address. |
usr.sbin/bhyve/e820.c | ||
---|---|---|
294 | It's hard to understand what this function is doing. Is it supposed to find holes between existing entries, or does it replace existing entries of type E820_TYPE_MEMORY? |
usr.sbin/bhyve/e820.c | ||
---|---|---|
294 | It allocates a region in E820_TYPE_MEMORY and marks it as another memory type. So, it replaces existing E820_TYPE_MEMORY entries. E.g.: dump_table: 0x0000 - 0x1000 E820_TYPE_MEMORY alloc_highest(0xFFFF, 0x0100, 0, E820_TYPE_RESERVED); dump_table: 0x0000 - 0x0E00 E820_TYPE_MEMORY 0x0E00 - 0x1000 E820_TYPE_RESERVED |
usr.sbin/bhyve/e820.c | ||
---|---|---|
306 | I think some brief comments would help here. |