All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasile Catalin-B50542 <catalin.vasile@freescale.com>
To: "open list:KERNEL VIRTUAL MA..." <kvm@vger.kernel.org>
Subject: [virtio] dummy device
Date: Fri, 9 Jan 2015 14:31:21 +0200	[thread overview]
Message-ID: <54AFCA19.9010108@freescale.com> (raw)

Hi,

I'm trying to add a new virtio device.
I've managed to make qemu connect my virtio device to the pci bus.
I'm now trying to make a dummy driver in the guest's kernel.
My "lspci" binary version isn't very verbose. For example the output for
"lspci" and "lspci -n" are the same:
00:00.0 Class 0604: 1957:0030
00:01.0 Class 0200: 1af4:1000
00:02.0 Class 0b40: 1af4:100d
(That's all I get from them.)
My device is on the last line.
I have tried using another solution to see if there is a driver doing 
something
with my device (at least probing it):
ls /sys/bus/pci/devices/0000\:00\:02.0/driver/module/drivers/
It outputs:
pci:virtio-pci
Should I see here the name of my device/driver module, or this is
what I would see for any device on an emulated machine with virtio pci 
based bus?
I currently just defined the "struct virtio_driver" with it's related 
things, and called:
module_virtio_driver();
MODULE_DEVICE_TABLE();
Is there anything left to do in order to have a functional dummy device?
Is there a better way to see the name of the module associated with a 
PCI device (virtio device)?

                 reply	other threads:[~2015-01-09 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=54AFCA19.9010108@freescale.com \
    --to=catalin.vasile@freescale.com \
    --cc=kvm@vger.kernel.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.