Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtio-ccw: commands on revision-less devices
The virtio standard specifies that any non-transitional device must reject commands prior to revision setting (which we do). Devices that are transitional need to assume revision 0 (legacy) if the driver sends a non-revision-setting command first in order to support legacy drivers. We neglected to do the latter. Fortunately, nearly everything worked as intended anyway; the only problem was not properly rejecting revision setting after some other command had been issued. Easy to fix by setting revision to 0 if we see a non-revision command on a legacy-capable revision-less device. Found by code inspection, not observed in the wild. Signed-off-by: Cornelia Huck <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Acked-by: Halil Pasic <[email protected]> Message-Id: <[email protected]>
- Loading branch information