diff options
| author | Laurent Vivier | 2016-08-27 22:34:14 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2016-09-13 12:00:57 +0200 |
| commit | e49f827725d53d2fb1b8ec42db96c442d0caf6cd (patch) | |
| tree | b7839b0c7135d5b1274b64d7a6bbe6f02aaa72d5 /scripts/switch-timer-api | |
| parent | MAINTAINERS: add maintainer for replication (diff) | |
| download | qemu-e49f827725d53d2fb1b8ec42db96c442d0caf6cd.tar.gz qemu-e49f827725d53d2fb1b8ec42db96c442d0caf6cd.tar.xz qemu-e49f827725d53d2fb1b8ec42db96c442d0caf6cd.zip | |
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 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
