Go to file
Fabiano Fidêncio 2ee53b00ca qemu: Don't set ".cache-size=" when CacheSize is 0
As there's no guarantee that ".cache-size" is a supported QEMU property,
let's not add it to the QEMU command line when the user explicitly set
virtio_fs_cache_size to zero.

By not always setting ".cache-size" property we avoid errors like:
```
$ sudo podman --runtime=/usr/bin/kata-runtime run --security-opt label=disable -it fedora:31 /bin/bash
Error: failed to launch qemu: exit status 1, error messages from qemu log: qemu-kvm: -device vhost-user-fs-pci,chardev=char-88c350403e95d3db,tag=kataShared,cache-size=0M: Property '.cache-size' not found: OCI runtime error
```

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
2020-02-07 09:56:36 +01:00
qemu qemu: Don't set ".cache-size=" when CacheSize is 0 2020-02-07 09:56:36 +01:00
.gitignore Add .gitignore file. 2017-12-11 11:05:31 +00:00
.travis.yml s390x: add s390x travis support 2019-12-17 14:54:09 +01:00
CONTRIBUTING.md Update the CONTRIBUTING.md 2018-11-30 09:34:21 +01:00
CONTRIBUTORS.md contributors: add my name 2018-12-06 11:35:15 +08:00
COPYING Add project documentation 2017-12-11 11:05:31 +00:00
README.md Compute coverage statistics for unit tests in Travis builds 2018-01-02 16:21:01 +00:00

Virtual Machine Manager for Go

Go Report Card Build Status GoDoc Coverage Status

Virtual Machine Manager for Go (govmm) is a suite of packages that provide Go APIs for creating and managing virtual machines. There's currently support for only one hypervisor, qemu/kvm, support for which is provided by the github.com/intel/govmm/qemu package.

The qemu package provides APIs for launching qemu instances and for managing those instances via QMP, once launched. VM instances can be stopped, have devices attached to them and monitored for events via the qemu APIs.

The qemu package has no external dependencies apart from the Go standard library and so is nice and easy to vendor inside other projects.