From e612e061481d5227573dc99bf1b73ed52ff6e477 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Tue, 7 May 2019 10:36:13 +0800 Subject: [PATCH] remove gpu passthrough params addr --- pkg/hostman/isolated_device/isolated_device.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/hostman/isolated_device/isolated_device.go b/pkg/hostman/isolated_device/isolated_device.go index 51770b2422..9bcd2c93a3 100644 --- a/pkg/hostman/isolated_device/isolated_device.go +++ b/pkg/hostman/isolated_device/isolated_device.go @@ -389,8 +389,8 @@ func getGuestAddr(index int) string { } func (gpu *sGPUVGADevice) GetPassthroughCmd(index int) string { - vAddr := getGuestAddr(index) - return fmt.Sprintf(" -device vfio-pci,host=%s,multifunction=on,x-vga=on,addr=%s", gpu.GetAddr(), vAddr) + // vAddr := getGuestAddr(index) + return fmt.Sprintf(" -device vfio-pci,host=%s,multifunction=on,x-vga=on", gpu.GetAddr()) } func (gpu *sGPUVGADevice) CustomProbe() error { @@ -418,8 +418,8 @@ func (gpu *sGPUHPCDevice) GetDeviceType() string { } func (gpu *sGPUHPCDevice) GetPassthroughCmd(index int) string { - vAddr := getGuestAddr(index) - return fmt.Sprintf(" -device vfio-pci,host=%s,multifunction=on,addr=%s", gpu.GetAddr(), vAddr) + // vAddr := getGuestAddr(index) + return fmt.Sprintf(" -device vfio-pci,host=%s,multifunction=on", gpu.GetAddr()) } func bashOutput(cmd string) ([]string, error) {