All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Weald Wind <wealdwind@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: pci passthrough error "unknown command"pci-ins"
Date: Mon, 10 May 2010 11:06:02 -0400	[thread overview]
Message-ID: <20100510150602.GF29517@phenom.dumpdata.com> (raw)
In-Reply-To: <m2rfe15d4c41005071721i845eeb29s32e7f5a864bbf2f0@mail.gmail.com>

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?

  reply	other threads:[~2010-05-10 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l2lfe15d4c41005071430vae777f5pb07db845060190d1@mail.gmail.com>
2010-05-08  0:21 ` pci passthrough error "unknown command"pci-ins" Weald Wind
2010-05-10 15:06   ` Konrad Rzeszutek Wilk [this message]
2010-05-10 19:16     ` Weald Wind

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=20100510150602.GF29517@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=wealdwind@gmail.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.