aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl/vmimpl.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-03-18 14:17:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-03-18 15:09:07 +0100
commit4a3131941837f1fab321bcdfcac13ac4fb480684 (patch)
tree04b6a7ed293144351bd45b76cae4370c8f90fee6 /vm/vmimpl/vmimpl.go
parent14a65c40375a6cd73e91ed2093610b136dfdb55d (diff)
vm/qemu: provide info about qemu version/args
Diffstat (limited to 'vm/vmimpl/vmimpl.go')
-rw-r--r--vm/vmimpl/vmimpl.go6
1 files changed, 6 insertions, 0 deletions
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