Re: [vfio-users] Proper way for systemd service to wait mdev gvt device initialization

2019-05-19 Thread Bronek Kozicki
On Sun, 19 May 2019, at 7:45 PM, Alex Ivanov wrote: > Hello. > What is the proper way to do that? I have a unit that creates gvt > device in the system > > ExecStart = "sh -c 'echo a297db4a-f4c2-11e6-90f6-d3b88d6c9525 > > /sys/bus/pci/devices/:00:02.0/mdev_supported_types/i915-GVTg_V5_8/crea

[vfio-users] Proper way for systemd service to wait mdev gvt device initialization

2019-05-19 Thread Alex Ivanov
Hello. What is the proper way to do that? I have a unit that creates gvt device in the system ExecStart = "sh -c 'echo a297db4a-f4c2-11e6-90f6-d3b88d6c9525 > /sys/bus/pci/devices/:00:02.0/mdev_supported_types/i915-GVTg_V5_8/create'"; ExecStop = "sh -c 'echo 1 > /sys/bus/pci/devices/:00: