qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/1] pci-host: add educational driver


From: Jiri Slaby
Subject: Re: [Qemu-devel] [PATCH 1/1] pci-host: add educational driver
Date: Mon, 13 Oct 2014 10:32:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

On 10/10/2014, 04:54 PM, Claudio Fontana wrote:
> Hello,
> 
> On 10.10.2014 14:09, Jiri Slaby wrote:
>> I am using qemu for teaching the Linux kernel at our university. I
>> wrote a simple PCI device that can answer to writes/reads, generate
>> interrupts and perform DMA. As I am dragging it locally over 2 years,
>> I am sending it to you now.
>>
>> Signed-off-by: Jiri Slaby <address@hidden>
> 
> is this supposed to be architecture independent, or is it X86-specific?

Hi,

I did not plan it to be only x86 specific. If you see any problems, I
will fix them.

> Also at first glance I see multiple 32bit variables used to hold addresses,
> is this 32bit-only?

No, the DMA addresses are on purpose 32-bit: to teach the people always
set the dma mask properly in the driver. This driver copies COMBO6x
devices (liberouter.org) behaviour which I used until the cards got
obsoleted (hard to find PCI-X slots nowadays).

I can make this configurable if you wish.

> I wonder if this work could be merged / integrated with the Generic PCI host 
> patches that are flying around since some time...

Could you point me to some?

thanks,
-- 
js
suse labs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]