Re: [Qemu-devel] qemu/virtio issue due to non-atomic data access

2013-05-02 Thread Paul Guo
Yes, sounds to be a better idea. I'm wondering whether the final real virtual address for loading in lduw_phys(), etc is aligned also in most cases? given the load address (the input argument with type hwaddr) is required to be aligned (according to the comment). If so we should make the lduw_ph

Re: [Qemu-devel] qemu/virtio issue due to non-atomic data access

2013-05-02 Thread Richard Henderson
On 2013-05-02 10:12, Paul Guo wrote: A proper fix for this issue seems to be: Judge whether the address is aligned, do direct loading for the aligned case in ldq_le_p(), etc? No, I would think the proper fix would be to change the bits of virtio that are known to access aligned memory to not

[Qemu-devel] qemu/virtio issue due to non-atomic data access

2013-05-02 Thread Paul Guo
Hello, I'm developing the qemu io support for kvm on arch/tile. During virtio-net testing I always saw the following similar message: "Guest moved used index from 46573 to 46592" The guest os then exits immediately. The qemu version is 0.13.0. Here is the code that reports the error message: