Skip to content

Commit

Permalink
device: Add GPU device support
Browse files Browse the repository at this point in the history
Fixes kata-containers#542

Enable GPU device support in kata runtime, including GVT-g and GVT-d.
GVT-g: graphic virtualization technology with mediated pass through
GVT-d: graphic virtualization technology with direct pass through

BDF of device eg "0000:00:1c.0" is used to distinguish GPU device in GVT-d,
while sysfsdev of device eg "f79944e4-5a3d-11e8-99ce-479cbab002e4"is used
in GVT-g.

v2: split VFIO mediated device hotplug into standalone function.
    combine the acquisition of VFIO information into a function.
v3: correct the unit test function name.

Signed-off-by: Zhao Xinda <xinda.zhao@intel.com>
  • Loading branch information
xindazhao committed Aug 6, 2018
1 parent a91be2b commit a053089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/device/drivers/vfio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
)

func TestGetBDF(t *testing.T) {
func TestGetVFIOInfo(t *testing.T) {
type testData struct {
deviceStr string
expectedStr string
Expand Down

0 comments on commit a053089

Please sign in to comment.