dev, virtio: Improvements to diod process handling
authorAnouk Van Laer <anouk.vanlaer@arm.com>
Fri, 17 Feb 2017 11:20:49 +0000 (11:20 +0000)
committerAnouk Van Laer <anouk.vanlaer@arm.com>
Mon, 25 Sep 2017 14:26:36 +0000 (14:26 +0000)
commit1b48d293c4e7bb07dbd73b1759f119c5d32563c7
tree54634d6604751793b0e49534c2f7ef1d657da907
parent0658925a8f64a9092599afa4a5432df2cc4812dc
dev, virtio: Improvements to diod process handling

* When dispatching multiple gem5 simulations at once, they race
for the socket id, resulting in a panic when calling 'bind'. To
avoid this problem, the socket id is now created before the diod
process is created.  In case of a race, a panic is called in the
gem5 process, whereas before the panic was called in the diod
process where it didn't have any effect.

* In some cases killing the diod process in terminateDiod() using
only SIGTERM failed, so a call using SIGKILL is added.

Change-Id: Ie10741e10af52c8d255210cd4bfe0e5d761485d3
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2821
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/dev/virtio/fs9p.cc
src/dev/virtio/fs9p.hh