From af5c9c232020ed21b2f8f4227f353b3ac313ab45 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 17 Dec 2019 22:13:32 +0000 Subject: [PATCH] clh: hypervisor: Do not set 9p values for virtiofs 9p values are ignored by virtiofs, but this should be not changed on validation to allow have unit test with virtiofs config. Signed-off-by: Jose Carlos Venegas Munoz --- virtcontainers/hypervisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtcontainers/hypervisor.go b/virtcontainers/hypervisor.go index 37cd15a51..42562e8a6 100644 --- a/virtcontainers/hypervisor.go +++ b/virtcontainers/hypervisor.go @@ -429,7 +429,7 @@ func (conf *HypervisorConfig) valid() error { conf.DefaultMaxVCPUs = defaultMaxQemuVCPUs } - if conf.Msize9p == 0 { + if conf.Msize9p == 0 && conf.SharedFS != config.VirtioFS { conf.Msize9p = defaultMsize9p }