]> git.proxmox.com Git - qemu.git/commit - memory.c
memory: Make eventfd adhere to device endianness
authorAlexander Graf <agraf@suse.de>
Mon, 15 Oct 2012 18:30:28 +0000 (20:30 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 17 Oct 2012 14:47:34 +0000 (16:47 +0200)
commit28f362be6e7f45ea9b7a57a08555c4c784f36198
treed90570d400b00183167574cdc39f207e675207d7
parent6f4d6b09088ee161ff4be0e4db4e4c0962c79070
memory: Make eventfd adhere to device endianness

Our memory API MMIO regions know the concept of device endianness. This
is used to automatically swap endianness between devices and host CPU,
depending on whether buses in between would swizzle the bits.

The ioeventfd value comparison does not adhere to that semantic though.
Probably because nobody has been running ioeventfd on a BE platform and
the only device implementing ioeventfd right now is LE (PCI) based.

So add swizzling to ioeventfd registration / deletion to make the rest
of the code as consistent as possible.

Thanks a lot to Michael Tsirkin to point me towards the right direction.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c