Page MenuHomeFreeBSD

bhyve: export passthru softc
AbandonedPublic

Authored by corvink on Mar 28 2023, 10:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 3:46 PM
Unknown Object (File)
Sat, Apr 13, 9:54 PM
Unknown Object (File)
Mar 21 2024, 4:44 AM
Unknown Object (File)
Feb 19 2024, 8:54 PM
Unknown Object (File)
Dec 20 2023, 8:03 AM
Unknown Object (File)
Dec 11 2023, 4:43 AM
Unknown Object (File)
Nov 18 2023, 3:57 AM
Unknown Object (File)
Nov 18 2023, 3:21 AM

Details

Reviewers
jhb
markj
Group Reviewers
bhyve
Summary

The gpu passthrough emulation will be handled in a seperate source file.
Therefore, export the passthru softc to give the gpu passthrough
emulation access to softc members.

Diff Detail

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

Event Timeline

corvink retitled this revision from bhyve: export some passthru softc to bhyve: export passthru softc.

Seems a bit odd making this public? as opposed to keeping a reference of the softc in gpu_passthru and passing that off to pci?

something like:

gpu_passthru.c:

struct gpu_passthru {
   struct pci_passthru *passthru_sc;
}

struct gpu_passthru *gp_sc;
passthru_read(gp_sc->passthru_sc);

just a thought - its a pattern I've seen in other areas of the code.

I've checked my gpu passthrough code and it requires access to some internal fields of passthru_softc. We can add some helper to access them. So, this patch isn't required.