* [Qemu-devel] virtio_mmio address mapping
@ 2016-05-30 12:24 Dean
2016-05-30 12:43 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Dean @ 2016-05-30 12:24 UTC (permalink / raw)
To: qemu-devel
hi,all,
I am writing a UIO linux driver for a virtio_mmio device and find out that all those virtio_mmio devices' registers are arrange in one single 4K aligned page.
which makes writing an UIO driver hard since linux doesn't allow UIO driver to map a register space smaller than page size.
would you consider divide them into defferent pages?
what I am talking about is devices like:
a003000.virtio_mmio
a003c00.virtio_mmio
a003e00.virtio_mmio
what I am dealing with is a003e00.virtio_mmio
Dean
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] virtio_mmio address mapping
2016-05-30 12:24 [Qemu-devel] virtio_mmio address mapping Dean
@ 2016-05-30 12:43 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2016-05-30 12:43 UTC (permalink / raw)
To: Dean; +Cc: qemu-devel
On 30 May 2016 at 13:24, Dean <664543912@qq.com> wrote:
> I am writing a UIO linux driver for a virtio_mmio device and find out that all those virtio_mmio devices' registers are arrange in one single 4K aligned page.
> which makes writing an UIO driver hard since linux doesn't allow UIO driver to map a register space smaller than page size.
> would you consider divide them into defferent pages?
>
> what I am talking about is devices like:
> a003000.virtio_mmio
> a003c00.virtio_mmio
> a003e00.virtio_mmio
>
> what I am dealing with is a003e00.virtio_mmio
Unfortunately we can't really move them, for backwards
compatibility reasons. Also, virtio-mmio is now pretty
much obsolete since you can use virtio-pci instead, and
we wouldn't want it to take up much more of the physical
address space.
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-30 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-30 12:24 [Qemu-devel] virtio_mmio address mapping Dean
2016-05-30 12:43 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).