summaryrefslogtreecommitdiff
path: root/iothread.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2016-08-27 16:34:14 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2016-09-13 11:00:57 +0100
commite49f827725d53d2fb1b8ec42db96c442d0caf6cd (patch)
treeb7839b0c7135d5b1274b64d7a6bbe6f02aaa72d5 /iothread.c
parent049105a3c1134bb27f52d3a6ec4e92a3d5278800 (diff)
downloadqemu-e49f827725d53d2fb1b8ec42db96c442d0caf6cd.tar.gz
tests: fix qvirtqueue_kick
vq->avail.idx and vq->avail->ring[] are a 16bit values, so read and write them with readw()/writew() instead of readl()/writel(). To read/write a 16bit value with a 32bit accessor works fine on little-endian CPU but not on big endian CPU. [An equivalent patch for the writew() calls was also sent by Zhang Shuai <zhangshuai13@huawei.com>. --Stefan] Signed-off-by: Laurent Vivier <lvivier@redhat.com> Message-id: 1472330054-22607-1-git-send-email-lvivier@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'iothread.c')
0 files changed, 0 insertions, 0 deletions