commit | 7abb568dbb32d055ec6a5633d26fb39fbcd525e3 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Wed Feb 11 15:01:14 2015 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Feb 11 15:03:16 2015 +1030 |
tree | 7e5aac0a98bbcd55d764a28c84743a02ff72e320 | |
parent | 6d96ee98b1d08bcf0f90a6bf2c6766dda6b3a010 [diff] |
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>