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

Re: [Xen-devel] pci passthrough error "unknown command"pci-ins"


  • To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
  • From: Weald Wind <wealdwind@xxxxxxxxx>
  • Date: Mon, 10 May 2010 15:16:38 -0400
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 10 May 2010 12:17:41 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=l/bDFezRQUAdNCY29fsYCBemf0lbvqc9kNCq86SSLzvttBGQ0lyqwcmXyYqBaXRMco z8R64ClBQH88mdacycVWub+LGvuLDYU1HlORRvMFyt9bjVpk+gaAnKaMhvjUfn41kqyV OPHGYKoKEjhkzhPaX4qij4JFYXZcjUhcHvmvc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Thank your very much for your reply and suggestions!
 
After googling the internet. I found the problem. My previous xen-tools was not built with pci-utils. After building it with pci-uitls, i didn't install it into correct place "/usr/local/". My system was still using the old one. After I reinstall it, everything was working fine!
 


 
On Mon, May 10, 2010 at 11:06 AM, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:
On Fri, May 07, 2010 at 08:21:39PM -0400, Weald Wind wrote:
> Hi All,
>
> Please help me.
>
> I am now installing the XEN on my PC and trying to config the pci pass
> through.
>
> My motherboard is intel DQ45CB which is vtd enabled.
> I downloaded the latest xen4.0 source from xen.org which is the latest
> release.
> I downloaded stable-2.6.32-x dom0 kernel source from jeremy's repository.
>
> After compiling the xen and dom0 kernel, I could play it. I could create
> hvm. And the VM was runing very well.
>
> But when I configured the pci pass through, it always failed with  the
> following error:
>
> root@charles-dq45:/opt/virtualmachines# xm pci-attach 1 0000:02:00.0
>
> Error: Failed to assign device to IOMMU (0000:02:00.0@100
> ,msitranslate=1,power_mgmt=0)
> Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func>
> [virtual slot]
> Insert a new pass-through pci device.
>

Have you tried to have your guest file contain the pci entry instead of
doing hot-plug add? Does that work?

Here is an example:

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 2048
maxvcpus = 4
serial='pty'
vcpus = 2
disk = [ 'file:/mnt/lab/vs08/root_image.iso,hdc:cdrom,r']
boot="dn"
vif = [ 'type=ioemu,model=e1000,mac=00:0F:4B:00:00:68, bridge=switch' ]
vfb = [ 'vnc=1, vnclisten=0.0.0.0,vncunused=1']
pci = [ '0000:01:00.0' ]
>
>
> root@charles-dq45:~# tail  /var/log/xen/qemu-dm-win7.log
>
> I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
> Log-dirty: no command yet.
> xs_read(/local/domain/1/log-throttling): read error
> qemu: ignoring not-understood drive `/local/domain/1/log-throttling'
> medium change watch on `/local/domain/1/log-throttling' - unknown device,
> ignored
> cirrus vga map change while on lfb mode
> mapping vram to f0000000 - f0400000
> platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw
> state.
> platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro
> state.
> dm-command: unknown command"pci-ins"

Ugh, that means you don't have CONFIG_PASSTHROUGH set.. but.
>
>
> when I compiled the xen-tools, it's said the pci pass has been enabled...
>
> root@charles-dq45:/opt/xen-4.0.0/tools# make
> ....
> qemu successfuly configured for Xen qemu-dm build
> make -C ioemu-dir all
> === PCI passthrough capability has been enabled ===
> make[2]: Entering directory `/data/opt/xen-4.0.0/tools/ioemu-qemu-xen'
>   CC    audio/sdlaudio.o
>   CC    sdl.o
>   AR    libqemu_common.a
> === PCI passthrough capability has been enabled ===
> === PCI passthrough capability has been enabled ===

You got it there. So is md5sum of the i386-dm/qemu-dm the same as
/usr/<somewhere>/.../xen/qemu-dm? Maybe you haven't installed the
newer version of QEMU?


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.