diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-02-13 07:43:43 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-02-13 07:45:51 +0100 |
commit | 55c2d7884e9a97c2f2d46d5818f783bf3dcc5314 (patch) | |
tree | 6291c81f9c5456dff1a1c284f8aa14a851f7e5b1 /tools/lguest | |
parent | tools/lguest: don't start devices until DRIVER_OK status set. (diff) | |
download | linux-55c2d7884e9a97c2f2d46d5818f783bf3dcc5314.tar.xz linux-55c2d7884e9a97c2f2d46d5818f783bf3dcc5314.zip |
lguest: don't look in console features to find emerg_wr.
The 1.0 spec clearly states that you must set the ACKNOWLEDGE and
DRIVER status bits before accessing the feature bits. This is a
problem for the early console code, which doesn't really want to
acknowledge the device (the spec specifically excepts writing to the
console's emerg_wr from the usual ordering constrains).
Instead, we check that the *size* of the device configuration is
sufficient to hold emerg_wr: at worst (if the device doesn't support
the VIRTIO_CONSOLE_F_EMERG_WRITE feature), it will ignore the
writes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/lguest')
0 files changed, 0 insertions, 0 deletions