WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: Is there something missing for my NIC passthough?

On Fri, May 28, 2010 at 01:16:57AM +0800, lei yang wrote:
>    On Thu, May 27, 2010 at 10:51 PM, lei yang <[1]yanglei.fage@xxxxxxxxx>
>    wrote:
> 
>        > Â  Â my *intent* it to let domU to use "05:00.0" device.
>        >
>        >    boot dom0 with  "pci=resource_alignment=05:00.0
>        > Â  Â xen-pciback.hide=(05:00.0)" appended
>        >
>        > Â  Â my domU config file is
>        >
>        > Â  Â disk = ['tap:aio:/domU.image,xvda1,w',
>        'tap:aio:/domUswap.image,xvda2,w']
>        > Â  Â kernel = "/bzImage"
>        > Â  Â vcpus=2
>        >    vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]
>        > Â  Â root = "/dev/xvda1 ro"
>        > Â  Â extra= "xen console=hvc0"
>        > Â  Â pci = ['05:00.0']
>        >
>        > Â  Â Is there something I missed? eg: my cfg file or other
>        configure? or other
>        > Â  Â steps
>        >
> 
>        Yes, you're missing the required parameters for the domU kernel.
> 
>        See: [2]http://wiki.xensource.com/xenwiki/XenPCIpassthrough
> 
>      Â
>      Â
>      Thanks Pasik "I will add "iommu=soft swiotlb=force"ã**does it add into
>      "domU.cfg" file with
>      Â Â Â  disk = ['tap:aio:/domU.image,xvda1,w',
>      'tap:aio:/domUswap.image,xvda2,w']
>      Â Â Â  kernel = "/bzImage"
>      Â Â Â  vcpus=2
>          vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]
>      Â Â Â  root = "/dev/xvda1 ro"
>      Â Â Â  extra= "xen console=hvc0 iommu=soft swiotlb=force"
>      Â Â Â  pci = ['05:00.0']
>      Â
>      I just want to let domU nic using my pci nic directly. do I need to
>      change my "   vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]"
>      or remove it?
>

You don't need to remove it.. it'll just create a virtual interface 
(xen-netfront)
to the domU. It doesn't conflict with the PCI passthru.


> 
>    Â
>    if I remove "vif  = [ "mac=00:15:17:AC:00:40,ip=128.224.165.204" ]"
>    Â
>    I find I can't find a networking interface
>    Â
>    [3]root@localhost:/root> ifconfig
>    [4]root@localhost:/root> ifconfig eth0 up
>    eth0: ERROR while getting interface flags: No such device
>    [5]root@localhost:/root> ifconfig eth1 up
>    eth1: ERROR while getting interface flags: No such device
>    [6]root@localhost:/root> ifconfig -a
>    lo        Link encap:Local Loopback
>    Â Â Â Â Â Â Â Â Â  LOOPBACKÂ  MTU:16436Â  Metric:1
>    Â Â Â Â Â Â Â Â Â  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>    Â Â Â Â Â Â Â Â Â  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>    Â Â Â Â Â Â Â Â Â  collisions:0 txqueuelen:0
>    Â Â Â Â Â Â Â Â Â  RX bytes:0 (0.0 b)Â  TX bytes:0 (0.0 b)
>    [7]root@localhost:/root> lspci
>    [8]root@localhost:/root>
>    Â
> 

Does your domU kernel have xen-pcifront driver? is it loaded? 
that's required for PCI passthrough to PV guests.

Note that upstream (kernel.org) kernels don't yet have xen-pcifront included.

-- Pasi


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