On Fri, 23 Aug 2013 00:04:11 +0800, ??? <chm.bj@hotmail.com>
wrote:> hi,
>
> Sorry to post here, should I ask question about xen here?
>
> if a PCI device is hided via domain0 kernel startup parameter,
> should
> it be seen in domain 0''s lspci command output?
>
> Below is my grub startup parameter.
> xen-pciback.hide=(00:02:0)(00:02:1) is used to hide two device.
>
> kernel /xen.gz dom0_mem=1024M cpufreq=xen dom0_max_vcpus=1
> dom0_vcpus_pin iommu=1
> module /vmlinuz-3.10.7-1.el6xen.x86_64 ro
> root=UUID=90faade6-ee45-499c-88a0-a460ae727270 rd_NO_LUKS rd_NO_LVM
> LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
> KEYTABLE=us rd_NO_DM rhgb quiet
>
> In my understanding, the two devices shouldn''t be used by domain
0.
> lspci cannot see the two device.
>
> but lspci still can see the two device. is there misunderstanding
> for
> me ?
You are misunderstanding what pciback does. The devices are still
visible from dom0. pciback binds to them instead of their normal
driver, and handles handing the device over to domUs.
Gordan