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 <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2019-12-17 22:13:32 +00:00
parent 6a10cd960d
commit af5c9c2320

View File

@ -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
}