成会明
2013-Nov-02 14:57 UTC
"pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log
hi, I want to pass through "01:00.0",declared as pci=['01:00.0'] in cfg file. but found error log "pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log In fact, /dev/xen/pci_iomul does not exist. So where /dev/xen/pci_iomul implemented ? I have searched xen and linux code, found nothing. where pci_iomul device's code implemented ? I check tools/qemu-xen-traditional/hw/pass-through.c. and found pt_iomul_init is called if CONFIG_STUBDOM not defined. so should CONFIG_STUBDOM be defined ? Below is part of pass-through.c. #ifndef CONFIG_STUBDOM #define PCI_IOMUL_DEV_PATH "/dev/xen/pci_iomul" static void pt_iomul_init(struct pt_dev *assigned_device, uint8_t r_bus, uint8_t r_dev, uint8_t r_func) { int fd = PCI_IOMUL_INVALID_FD; struct pci_iomul_setup setup = { .segment = 0, .bus = r_bus, .dev = r_dev, .func = r_func, }; fd = open(PCI_IOMUL_DEV_PATH, O_RDWR); if ( fd < 0 ) { PT_LOG("Error: %s can't open file %s: %s: 0x%x:0x%x.0x%x\n", __func__, PCI_IOMUL_DEV_PATH, strerror(errno), r_bus, r_dev, r_func); fd = PCI_IOMUL_INVALID_FD; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Konrad Rzeszutek Wilk
2013-Nov-04 18:14 UTC
Re: "pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log
On Sat, Nov 02, 2013 at 10:57:50PM +0800, 成会明 wrote:> hi, > > I want to pass through "01:00.0",declared as pci=['01:00.0'] in cfg file. but found error log > "pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log > In fact, /dev/xen/pci_iomul does not exist. > > So where /dev/xen/pci_iomul implemented ?Look in XenServer's Linux sources. Google search should help you find the right mercurial tree.> I have searched xen and linux code, found nothing. where pci_iomul device's code implemented ? > > I check tools/qemu-xen-traditional/hw/pass-through.c. and found pt_iomul_init is called if CONFIG_STUBDOM not defined. > so should CONFIG_STUBDOM be defined ?You can ignore it.> > Below is part of pass-through.c. > > #ifndef CONFIG_STUBDOM > > #define PCI_IOMUL_DEV_PATH "/dev/xen/pci_iomul" > static void pt_iomul_init(struct pt_dev *assigned_device, > uint8_t r_bus, uint8_t r_dev, uint8_t r_func) > { > int fd = PCI_IOMUL_INVALID_FD; > struct pci_iomul_setup setup = { > .segment = 0, > .bus = r_bus, > .dev = r_dev, > .func = r_func, > }; > > fd = open(PCI_IOMUL_DEV_PATH, O_RDWR); > if ( fd < 0 ) { > PT_LOG("Error: %s can't open file %s: %s: 0x%x:0x%x.0x%x\n", > __func__, PCI_IOMUL_DEV_PATH, strerror(errno), > r_bus, r_dev, r_func); > fd = PCI_IOMUL_INVALID_FD; >> _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
成会明
2013-Nov-05 13:09 UTC
Re: "pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log
Thanks. I have noticed a patch. ----- Original Message ----- From: "Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com> To: "成会明" <chm.bj@hotmail.com> Cc: <xen-devel@lists.xen.org> Sent: Tuesday, November 05, 2013 2:14 AM Subject: Re: [Xen-devel] "pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log On Sat, Nov 02, 2013 at 10:57:50PM +0800, 成会明 wrote:> hi, > > I want to pass through "01:00.0",declared as pci=['01:00.0'] in cfg file. but found error log > "pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0". in qemu-dm-example.hvm.log > In fact, /dev/xen/pci_iomul does not exist. > > So where /dev/xen/pci_iomul implemented ?Look in XenServer's Linux sources. Google search should help you find the right mercurial tree.> I have searched xen and linux code, found nothing. where pci_iomul device's code implemented ? > > I check tools/qemu-xen-traditional/hw/pass-through.c. and found pt_iomul_init is called if CONFIG_STUBDOM not defined. > so should CONFIG_STUBDOM be defined ?You can ignore it.> > Below is part of pass-through.c. > > #ifndef CONFIG_STUBDOM > > #define PCI_IOMUL_DEV_PATH "/dev/xen/pci_iomul" > static void pt_iomul_init(struct pt_dev *assigned_device, > uint8_t r_bus, uint8_t r_dev, uint8_t r_func) > { > int fd = PCI_IOMUL_INVALID_FD; > struct pci_iomul_setup setup = { > .segment = 0, > .bus = r_bus, > .dev = r_dev, > .func = r_func, > }; > > fd = open(PCI_IOMUL_DEV_PATH, O_RDWR); > if ( fd < 0 ) { > PT_LOG("Error: %s can't open file %s: %s: 0x%x:0x%x.0x%x\n", > __func__, PCI_IOMUL_DEV_PATH, strerror(errno), > r_bus, r_dev, r_func); > fd = PCI_IOMUL_INVALID_FD; >> _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel