This repository was archived by the owner on Feb 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ type KvmtoolContext struct {
4242func InitDriver () * KvmtoolDriver {
4343 cmd , err := exec .LookPath (KVMTOOL_EXEC )
4444 if err != nil {
45+ glog .Errorf ("LookPath %s failed: %v" , KVMTOOL_EXEC , err )
4546 return nil
4647 }
4748
Original file line number Diff line number Diff line change @@ -44,13 +44,17 @@ func qemuContext(ctx *hypervisor.VmContext) *QemuContext {
4444func InitDriver () * QemuDriver {
4545 cmd , err := exec .LookPath (QEMU_SYSTEM_EXE )
4646 if err != nil {
47+ glog .Errorf ("LookPath %s failed: %v" , QEMU_SYSTEM_EXE , err )
4748 return nil
4849 }
4950
5051 var hasVsock bool
5152 _ , err = exec .Command ("/sbin/modprobe" , "vhost_vsock" ).Output ()
5253 if err == nil {
54+ glog .V (3 ).Infof ("Current system supports vsock" )
5355 hasVsock = true
56+ } else {
57+ glog .V (3 ).Infof ("Current system doesn't support vsock because modprobe vhost_vsock failed" )
5458 }
5559
5660 return & QemuDriver {
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ type XenPvContext struct {
3535func InitDriver () * XenPvDriver {
3636 cmd , err := exec .LookPath (XENLIGHT_EXEC )
3737 if err != nil {
38+ glog .Errorf ("LookPath %s failed: %v" , XENLIGHT_EXEC , err )
3839 return nil
3940 }
4041
You can’t perform that action at this time.
0 commit comments