configs: Use absolute path for VirtIO9PDiod default root
authorYu-hsin Wang <yuhsingw@google.com>
Wed, 21 Oct 2020 10:25:34 +0000 (18:25 +0800)
committerYu-hsin Wang <yuhsingw@google.com>
Thu, 22 Oct 2020 00:49:15 +0000 (00:49 +0000)
VirtIO9PDiod model requires an absolute path as its parameter. So we
should change the default root path to absolute path as well.

Change-Id: I68a2ae1115e84ed61055298b06b2d0b4bd6410b3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36381
Reviewed-by: Earl Ou <shunhsingou@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/common/FSConfig.py

index 5814a03c0f8ad3670b9b0ef81367d0d451bb3628..710ee4d49875e920254c82b8f0e09f81eca4312c 100644 (file)
@@ -79,7 +79,7 @@ class MemBus(SystemXBar):
 def attach_9p(parent, bus):
     viopci = PciVirtIO()
     viopci.vio = VirtIO9PDiod()
-    viodir = os.path.join(m5.options.outdir, '9p')
+    viodir = os.path.realpath(os.path.join(m5.options.outdir, '9p'))
     viopci.vio.root = os.path.join(viodir, 'share')
     viopci.vio.socketPath = os.path.join(viodir, 'socket')
     if not os.path.exists(viopci.vio.root):