From: "Tech Writer" <TechWtr@handspun.com>
To: xen-devel@lists.xensource.com
Cc: TechWtr@handspun.com
Subject: Can't unbind PCI sound card
Date: Thu, 27 Sep 2007 08:10:22 -0400 [thread overview]
Message-ID: <009001c800ff$61018850$6501a8c0@warbler> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2460 bytes --]
This is my first post, so I am hoping this is the right place to ask my question... I have been asked to test some training materials that we received, and provide sample solutions. I've been unable to get one of the exercises to work properly, even though it follows the same steps that are available both in the documentation, and throughout the web.
The task is to unbind the PCI sound card from Domain0 and then assign it to a new VM, as shown below.
===================
(1) Load the pciback module by typing -> modprobe pciback
(2) Get the PCI ID for the hardware you will be using by typing > lspci
(3) Unbind the desired device intended for pciback. Go to /sys/bus/drivers and look for the folder with your driver. Go in the folder and you will see the sym link for the device starting with your pci_id. Next ->
echo -n [pci-slot-id] > /sys/bus/pci/drivers/e100/unbind
Now that sym link you just checked out should be gone.
(4) Now bind the device to pciback.
echo -n [pci-slot-id] > /sys/bus/pci/drivers/pciback/new_slot
echo -n [pci-slot-id] > /sys/bus/pci/drivers/pciback/bind
Go to the pciback directory and you should see a new sym link created.
Now configure your Virtual Machine (DomU) to use the device.
===================
Every time I get to the command:
echo -n 0000:00:0b.0 > /sys/bus/pci/drivers/e100/unbind
my terminal window locks up. Although I have no other processes running, it appears the sound card is being used. I have tried this several different ways, and can't seem to get past the unbind command. It's an ensoniq card, so I tried to search for other dependencies and found:
# lsmod | grep ens
snd_ens1371 30880 1
gameport 19464 1 snd_ens1371
snd_rawmidi 30848 2 snd_seq_midi,snd_ens1371
snd_ac97_codec 98592 1 snd_ens1371
snd_pcm 101124 3 snd_pcm_oss,snd_ens1371,snd_ac97_codec
snd 63492 12 snd_pcm_oss,snd_mixer_oss,snd_seq_midi,snd_seq,snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
#
I can make the sound card available if I edit /etc/modprobe.conf.local with:
options pciback hide=(0000:00:0b.0)
and then reboot. However, I would like to find some way to get the example that is so widely documented to work. Does anyone know how I can ensure that the sound card is free and available so that the unbind works correctly?
Peg
[-- Attachment #1.2: Type: text/html, Size: 4741 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2007-09-27 12:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-27 12:10 Tech Writer [this message]
2007-09-27 12:55 ` Can't unbind PCI sound card Ian Campbell
2007-09-27 13:36 ` Tech Writer
2007-09-27 13:44 ` Ian Campbell
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='009001c800ff$61018850$6501a8c0@warbler' \
--to=techwtr@handspun.com \
--cc=xen-devel@lists.xensource.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.