Page MenuHomeFreeBSD

bhyve: allocate guest memory for graphics stolen memory
ClosedPublic

Authored by corvink on May 11 2023, 10:37 AM.
Tags
None
Referenced Files
F107368677: D40059.diff
Mon, Jan 13, 3:53 AM
Unknown Object (File)
Nov 30 2024, 5:08 PM
Unknown Object (File)
Nov 26 2024, 11:21 PM
Unknown Object (File)
Nov 25 2024, 1:13 AM
Unknown Object (File)
Nov 16 2024, 1:51 PM
Unknown Object (File)
Nov 14 2024, 12:33 PM
Unknown Object (File)
Nov 12 2024, 10:50 AM
Unknown Object (File)
Nov 11 2024, 5:56 PM
Subscribers

Details

Summary

The graphics stolen memory is only GPU accessible. So, we don't have to
copy any data to it as the guest will be unable to access it anyway. We
just have to allocate and reserve some memory. That's done by adding an
E820 entry for the graphics stolen memory. The guest firmware will pick
up the E820 and reserve this range.

Note that we try to reuse the host address as Intel states that newer
Tiger Lake platforms need this [1].

[1]
https://github.com/projectacrn/acrn-hypervisor/blob/e28d6fbfdfd556ff1bc3ff330e41d4ddbaa0f897/devicemodel/hw/pci/passthrough.c#L626-L629

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable