Merge pull request #8812 from kalil-pelissier/feature/issue-7720/drop-dead-code

runtime: remove SharedVersions field dead code
This commit is contained in:
Greg Kurz 2024-01-23 17:46:41 +01:00 committed by GitHub
commit 0f67a26751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1352,15 +1352,14 @@ func (dev LoaderDevice) QemuParams(config *Config) []string {
// in to the guest // in to the guest
// nolint: govet // nolint: govet
type VhostUserDevice struct { type VhostUserDevice struct {
SocketPath string //path to vhostuser socket on host SocketPath string //path to vhostuser socket on host
CharDevID string CharDevID string
TypeDevID string //variable QEMU parameter based on value of VhostUserType TypeDevID string //variable QEMU parameter based on value of VhostUserType
Address string //used for MAC address in net case Address string //used for MAC address in net case
Tag string //virtio-fs volume id for mounting inside guest Tag string //virtio-fs volume id for mounting inside guest
CacheSize uint32 //virtio-fs DAX cache size in MiB CacheSize uint32 //virtio-fs DAX cache size in MiB
QueueSize uint32 //size of virtqueues QueueSize uint32 //size of virtqueues
SharedVersions bool //enable virtio-fs shared version metadata VhostUserType DeviceDriver
VhostUserType DeviceDriver
// ROMFile specifies the ROM file being used for this device. // ROMFile specifies the ROM file being used for this device.
ROMFile string ROMFile string
@ -1534,9 +1533,6 @@ func (vhostuserDev VhostUserDevice) QemuFSParams(config *Config) []string {
if vhostuserDev.CacheSize != 0 { if vhostuserDev.CacheSize != 0 {
deviceParams = append(deviceParams, fmt.Sprintf("cache-size=%dM", vhostuserDev.CacheSize)) deviceParams = append(deviceParams, fmt.Sprintf("cache-size=%dM", vhostuserDev.CacheSize))
} }
if vhostuserDev.SharedVersions {
deviceParams = append(deviceParams, "versiontable=/dev/shm/fuse_shared_versions")
}
if vhostuserDev.Transport.isVirtioCCW(config) { if vhostuserDev.Transport.isVirtioCCW(config) {
if config.Knobs.IOMMUPlatform { if config.Knobs.IOMMUPlatform {
deviceParams = append(deviceParams, "iommu_platform=on") deviceParams = append(deviceParams, "iommu_platform=on")