summaryrefslogtreecommitdiff
path: root/src/dev/virtio/VirtIO9P.py
diff options
context:
space:
mode:
authorAnouk Van Laer <anouk.vanlaer@arm.com>2017-03-01 13:50:58 +0000
committerAnouk Van Laer <anouk.vanlaer@arm.com>2017-06-16 16:06:29 +0000
commitd9843b21b7ddd3a9ab2ce403ced88ad68d6f1d55 (patch)
tree78add1f671cccdd1851ad26f94c757bcf571df88 /src/dev/virtio/VirtIO9P.py
parent460afbbdfd987c221c04268929095615b56670b4 (diff)
downloadgem5-d9843b21b7ddd3a9ab2ce403ced88ad68d6f1d55.tar.xz
dev, virtio: Use of Unix socket for virtIO 9P device
This commit adds support for diod to use a unix socket, rather than a TCP port. We don't rely on the IP-based connection as we directly use pipes to interact with diod. This allows it to work on any system, even if the specific port is taken by another diod instance (or similar). Secondly, the Unix socket could in theory be used to debug. However, this functionality has not been tested. Change-Id: I616e0ad8768da1dfc867de3af98cdfbb22a72d63 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com> Reviewed-on: https://gem5-review.googlesource.com/2820 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/dev/virtio/VirtIO9P.py')
-rw-r--r--src/dev/virtio/VirtIO9P.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dev/virtio/VirtIO9P.py b/src/dev/virtio/VirtIO9P.py
index a13107db4..623403d1d 100644
--- a/src/dev/virtio/VirtIO9P.py
+++ b/src/dev/virtio/VirtIO9P.py
@@ -1,6 +1,6 @@
# -*- mode:python -*-
-# Copyright (c) 2014 ARM Limited
+# Copyright (c) 2014,2017 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -61,6 +61,7 @@ class VirtIO9PDiod(VirtIO9PProxy):
diod = Param.String("/usr/sbin/diod", "Path to diod")
root = Param.String("/tmp", "Path to export through diod")
+ socketPath = Param.String("Unused socket to diod")
class VirtIO9PSocket(VirtIO9PProxy):
type = 'VirtIO9PSocket'