[Qemu-devel] PCI CAS implementation in qemu

2012-11-20 Thread Francois WELLENREITER
Hi there, I order to develop a qemu module, I aim to use the PCI CAS (compare and swap) function to guarantee an atomic access somewhere in the guest memory (in a multi-core emulation case). Nevertheless, I did not find any routine in qemu implementing this function. Could anyone on this lis

Re: [Qemu-devel] PCI 64-bit BAR access with qemu

2011-10-12 Thread Francois WELLENREITER
Hi Max, thank you for your answer. Actually, I hadn't confused. I already thought to your proposal but I found that it was a really ugly solution (essentially because of the uint32_t to uint64_t silent conversion). Isn't there any other (current or future) development that may fix it ?

[Qemu-devel] PCI 64-bit BAR access with qemu

2011-10-12 Thread Francois WELLENREITER
Hi there, I've read a few days ago that it was possible to emulate PCI device with 64-bit BARs and have a real 64-bit memory access. Thus, I've created a virtual device named toto accessible through a 64-bit BAR ___ static const MemoryRegionOps bxi_common_mmio_ops = { .read = toto_m