|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] 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
Thanks.
I have noticed a patch.
----- Original Message -----
From: "Konrad Rzeszutek Wilk" <konrad.wilk@xxxxxxxxxx>
To: "æäæ" <chm.bj@xxxxxxxxxxx>
Cc: <xen-devel@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |