diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-03-29 16:43:45 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-04-07 15:16:41 +0300 |
commit | c00bbcf8628969e103d4a7b351a53746f1025576 (patch) | |
tree | 4e88bf869d6bd8194931fc3ba4a4337af95245d2 /arch/sh | |
parent | eeca9a671aaa6a77eaed725e842d53c5ce51940b (diff) | |
download | linux-c00bbcf8628969e103d4a7b351a53746f1025576.tar.bz2 |
virtio: add VIRTIO_CONFIG_S_NEEDS_RESET device status bit
The VIRTIO 1.0 specification added the DEVICE_NEEDS_RESET device status
bit in "VIRTIO-98: Add DEVICE_NEEDS_RESET". This patch defines the
device status bit in the uapi header file so that both the kernel and
userspace applications can use it.
The bit is currently unused by the virtio guest drivers and vhost.
According to the spec "a good implementation will try to recover by
issuing a reset". This is not attempted here because it requires
auditing the virtio drivers to ensure there are no resource leaks or
crashes if the device needs to be reset mid-operation.
See "2.1 Device Status Field" in the VIRTIO 1.0 specification for
details.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions