Raw block device passthrough support

This commit is contained in:
AlexSSD7 2023-08-29 15:31:17 +01:00
commit 003b562e48
7 changed files with 133 additions and 26 deletions

15
vm/passthrough.go Normal file
View file

@ -0,0 +1,15 @@
package vm
type USBDevicePassthroughConfig struct {
VendorID uint16
ProductID uint16
}
type BlockDevicePassthroughConfig struct {
Path string
}
type PassthroughConfig struct {
USB []USBDevicePassthroughConfig
Block []BlockDevicePassthroughConfig
}