summaryrefslogtreecommitdiffstats
path: root/kvm-all.c
diff options
context:
space:
mode:
authorJohn Snow2016-02-04 11:27:55 +0100
committerPaolo Bonzini2016-02-09 15:45:26 +0100
commit667ad26ff8b0e4cabba67322b5e4c35c0b6c4eb8 (patch)
treedc8f7401c090e84d52ffb2636e10f840f488a346 /kvm-all.c
parentscripts/kvm/kvm_stat: Fix tracefs access checking (diff)
downloadqemu-667ad26ff8b0e4cabba67322b5e4c35c0b6c4eb8.tar.gz
qemu-667ad26ff8b0e4cabba67322b5e4c35c0b6c4eb8.tar.xz
qemu-667ad26ff8b0e4cabba67322b5e4c35c0b6c4eb8.zip
nbd: avoid unaligned uint64_t store
cpu_to_be64w can't be used to make unaligned stores, but stq_be_p can. Also, the st?_be_p takes a void* so it is more clearly suited to the case where you're writing into a byte buffer. Use the st?_be_p family of functions everywhere in nbd/server.c. Signed-off-by: John Snow <jsnow@redhat.com> [Changed to use st?_be_p everywhere. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions