diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-02-11 05:31:14 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-02-11 05:33:16 +0100 |
commit | 7abb568dbb32d055ec6a5633d26fb39fbcd525e3 (patch) | |
tree | 7e5aac0a98bbcd55d764a28c84743a02ff72e320 /drivers/char/virtio_console.c | |
parent | virtio: Don't expose legacy config features when VIRTIO_CONFIG_NO_LEGACY defi... (diff) | |
download | linux-7abb568dbb32d055ec6a5633d26fb39fbcd525e3.tar.xz linux-7abb568dbb32d055ec6a5633d26fb39fbcd525e3.zip |
virtio_pci: use 16-bit accessor for queue_enable.
Since PCI is little endian, 8-bit access might work, but the spec section
is very clear on this:
4.1.3.1 Driver Requirements: PCI Device Layout
The driver MUST access each field using the “natural” access method,
i.e. 32-bit accesses for 32-bit fields, 16-bit accesses for 16-bit
fields and 8-bit accesses for 8-bit fields.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions