diff --git a/Gopkg.lock b/Gopkg.lock index 260abfcaaf..4c8ab706ed 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -390,11 +390,11 @@ revision = "2f1d1f20f75d5404f53b9edf6b53ed5505508675" [[projects]] - digest = "1:1a7407072d9447e0e39148aa462f0be26261e29ff14679ccee4fbed106c1a766" + digest = "1:b3ab3b3615583d7a374d4803ea2b71f173a4d8f4d594210e0fc8e9fc7c5a49c9" name = "github.com/intel/govmm" packages = ["qemu"] pruneopts = "NUT" - revision = "ee460e3008d48043f8561628d1d5308357d72cf6" + revision = "8cba5a8e5f2816f26f9dc34b8ea968279a5a76eb" [[projects]] digest = "1:22e399f891fccaac4700943a9465f2623bb361653d5e0d4a9974573cd5e69070" diff --git a/Gopkg.toml b/Gopkg.toml index a4a4663e84..bde6de1c00 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -48,7 +48,7 @@ [[constraint]] name = "github.com/intel/govmm" - revision = "ee460e3008d48043f8561628d1d5308357d72cf6" + revision = "8cba5a8e5f2816f26f9dc34b8ea968279a5a76eb" [[constraint]] name = "github.com/kata-containers/agent" diff --git a/vendor/github.com/intel/govmm/qemu/qemu.go b/vendor/github.com/intel/govmm/qemu/qemu.go index daac268bdb..f2b80ccd16 100644 --- a/vendor/github.com/intel/govmm/qemu/qemu.go +++ b/vendor/github.com/intel/govmm/qemu/qemu.go @@ -728,6 +728,9 @@ type BlockDevice struct { // DevNo identifies the ccw devices for s390x architecture DevNo string + + // ShareRW enables multiple qemu instances to share the File + ShareRW bool } // Valid returns true if the BlockDevice structure is valid and complete. @@ -766,6 +769,10 @@ func (blkdev BlockDevice) QemuParams(config *Config) []string { deviceParams = append(deviceParams, fmt.Sprintf(",devno=%s", blkdev.DevNo)) } + if blkdev.ShareRW { + deviceParams = append(deviceParams, fmt.Sprintf(",share-rw=on")) + } + blkParams = append(blkParams, fmt.Sprintf("id=%s", blkdev.ID)) blkParams = append(blkParams, fmt.Sprintf(",file=%s", blkdev.File)) blkParams = append(blkParams, fmt.Sprintf(",aio=%s", blkdev.AIO))