From 4a3131941837f1fab321bcdfcac13ac4fb480684 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 18 Mar 2021 14:17:57 +0100 Subject: vm/qemu: provide info about qemu version/args --- vm/vmimpl/vmimpl.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vm/vmimpl/vmimpl.go') diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go index 5a8fed098..b3b7b19e4 100644 --- a/vm/vmimpl/vmimpl.go +++ b/vm/vmimpl/vmimpl.go @@ -59,6 +59,12 @@ type Instance interface { Close() } +// Infoer is an optional interface that can be implemented by Instance. +type Infoer interface { + // MachineInfo returns additional info about the VM, e.g. VMM version/arguments. + Info() ([]byte, error) +} + // Env contains global constant parameters for a pool of VMs. type Env struct { // Unique name -- cgit mrf-deployment