All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jslaby@suse.cz>
To: Claudio Fontana <claudio.fontana@huawei.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Alvise Rigo <a.rigo@virtualopensystems.com>
Subject: Re: [Qemu-devel] [PATCH 1/1] pci-host: add educational driver
Date: Mon, 13 Oct 2014 10:32:13 +0200	[thread overview]
Message-ID: <543B8E0D.9070201@suse.cz> (raw)
In-Reply-To: <5437F313.7080007@huawei.com>

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 <jslaby@suse.cz>
> 
> 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	other threads:[~2014-10-13  8:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10 11:37 [Qemu-devel] [patch] qemu educational device Jiri Slaby
2014-10-10 11:49 ` Paolo Bonzini
2014-10-10 12:09   ` [Qemu-devel] [PATCH 1/1] pci-host: add educational driver Jiri Slaby
2014-10-10 14:54     ` Claudio Fontana
2014-10-13  8:32       ` Jiri Slaby [this message]
2014-10-13 13:02         ` Paolo Bonzini
2014-10-13 13:00     ` Paolo Bonzini
2014-12-03 15:11       ` Jiri Slaby
2014-12-03 15:18         ` Paolo Bonzini
2014-12-05  9:52     ` [Qemu-devel] [PATCH v2 " Jiri Slaby
2014-12-05  9:53       ` Jiri Slaby
2014-12-05 10:35       ` Paolo Bonzini
2014-12-05 11:45         ` Jiri Slaby
2014-12-05 12:07           ` Paolo Bonzini
2014-12-05  9:54     ` [Qemu-devel] [PATCH v3 " Jiri Slaby

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=543B8E0D.9070201@suse.cz \
    --to=jslaby@suse.cz \
    --cc=a.rigo@virtualopensystems.com \
    --cc=claudio.fontana@huawei.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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.