From: Avi Kivity <avi@redhat.com>
To: "Passera, Pablo R" <pablo.r.passera@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: 'virtio DMA to IO ram' error
Date: Thu, 01 Jan 2009 18:45:51 +0200 [thread overview]
Message-ID: <495CF33F.3090503@redhat.com> (raw)
In-Reply-To: <18C018878FB0244EB71B7FE328978A320FB0095E@rrsmsx503.amr.corp.intel.com>
Passera, Pablo R wrote:
> 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);
> }
>
In means the virtio buffers point to memory that is not RAM, but is some
memory-mapped I/O range or pehaps unmapped. I suggest printing the
physical addresses both in the guest and in qemu; something is likely
garbled.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2009-01-01 16:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-30 12:49 'virtio DMA to IO ram' error Passera, Pablo R
2008-12-30 12:54 ` Passera, Pablo R
2009-01-01 16:45 ` Avi Kivity [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=495CF33F.3090503@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pablo.r.passera@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.