The OpRegion provides some configuration bits and ACPI methods used by
some Intel drivers. The guest needs access to it. In the first step,
we're reading it's address and size.
Details
- Reviewers
jhb markj - Group Reviewers
bhyve - Commits
- rGb260e413b4b7: bhyve: read OpRegion address and size for GVT-d
rG6952b9d25e18: bhyve: read OpRegion address and size for GVT-d
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 51469 Build 48360: arc lint + arc unit
Event Timeline
usr.sbin/bhyve/pci_gvt-d.c | ||
---|---|---|
189 | No, it doesn't have to be page aligned. On my systems it has an offset of +0x18 to page boundary. Don't know why. |
Add a note saying that the spec requires the upper byte of the device_id be 0x22, but that most vendors don't honor that, so that's why we're not checking for it. That makes the 0x22 in the generic case a bit less magic.