Actually, I am not trying to put data into the queue using pop. I get an element from the queue using virtqueue_pop, fill the element and then push the element into the queue using virtqueue_push. When I try to do the pop is when it crash.
Pablo >-----Original Message----- >From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On >Behalf Of Passera, Pablo R >Sent: Tuesday, December 30, 2008 10:50 AM >To: kvm@vger.kernel.org >Subject: 'virtio DMA to IO ram' error > >Hi everybody, > > I am trying to implement a new virtio device. I have implemented >the new device in Qemu and I also have the correspondent virtio driver >in the guest. But when I get data in the device and I try to put that >into the virtqueue using virtqueue_pop, the qemu instance crash showing >the error 'virtio DMA to IO ram'. This is in the virtio_map_gpa function >in virtio.c. Does anyone knows what this means? > > Here is the code from virtio_map_gpa >. >. >static void *virtio_map_gpa(target_phys_addr_t addr, size_t size) >{ > ram_addr_t off; > target_phys_addr_t addr1; > > off = cpu_get_physical_page_desc(addr); > if ((off & ~TARGET_PAGE_MASK) != IO_MEM_RAM) { > fprintf(stderr, "virtio DMA to IO ram 1\n"); > exit(1); > } >. >. >. > >Thanks a lot, > >Pablo >-- >To unsubscribe from this list: send the line "unsubscribe kvm" in >the body of a message to majord...@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html
smime.p7s
Description: S/MIME cryptographic signature