Go to file
Samuel Ortiz 6d7dfa04bf qemu: Get rid of the Driver structure
By adding QemuParams() to the Device interface, we can get rid of the
driver structure and simplify further the appendDevices() routine.

With that implementation we can generate the following qemu parameters:

"-device virtio-9p-pci,fsdev=foo,mount_tag=rootfs -fsdev local,id=foo,path=/bar/foo,security-model=none"

from these single structures:

        fsdev := FSDevice{
                Driver:        Virtio9P
                FSDriver:      Local,
                ID:            "foo",
                Path:          "/bar/foo",
                MountTag:      "rootfs",
                SecurityModel: None,
        }

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2016-09-17 00:43:41 +02:00
examples_test.go qemu: Add configuration structure to simplify LaunchQemu 2016-09-17 00:41:13 +02:00
qemu_test.go qemu: Get rid of the Driver structure 2016-09-17 00:43:41 +02:00
qemu.go qemu: Get rid of the Driver structure 2016-09-17 00:43:41 +02:00
qmp_test.go ciao-launcher, qemu: Upgrade to new context package. 2016-09-12 11:51:00 +01:00
qmp.go ciao-launcher, qemu: Upgrade to new context package. 2016-09-12 11:51:00 +01:00