Page MenuHomeFreeBSD

bhyve: add helper for passthru specific mmio ranges
ClosedPublic

Authored by corvink on May 10 2023, 12:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 22, 5:15 PM
Unknown Object (File)
Sat, Sep 21, 6:48 AM
Unknown Object (File)
Fri, Sep 20, 8:47 AM
Unknown Object (File)
Wed, Sep 18, 10:57 PM
Unknown Object (File)
Wed, Sep 18, 2:41 AM
Unknown Object (File)
Tue, Sep 17, 8:01 PM
Unknown Object (File)
Mon, Sep 16, 11:07 PM
Unknown Object (File)
Sun, Sep 15, 11:20 PM
Subscribers

Details

Summary

Intel GPUs have two special memory regions. They are called Graphics
Stolen Memory and OpRegion. bhyve has to emulate both of them. In order
to keep track of those special regions, add generic mmio ranges to the
passthru emulation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 51410
Build 48301: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/pci_passthru.h
18

Is something meant to dereference these pointers? If not, why are they pointer types? It looks like they should be integer types.

corvink added inline comments.
usr.sbin/bhyve/pci_passthru.h
18

I'm using this pointer to map and copy the OpRegion. See D40041.

This revision is now accepted and ready to land.May 11 2023, 2:37 PM
This revision was automatically updated to reflect the committed changes.
corvink marked an inline comment as done.