All of lore.kernel.org
 help / color / mirror / Atom feed
* "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
@ 2013-11-02 14:57 成会明
  2013-11-04 18:14 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 3+ messages in thread
From: 成会明 @ 2013-11-02 14:57 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1301 bytes --]

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;


[-- Attachment #1.2: Type: text/html, Size: 2831 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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
  2013-11-02 14:57 "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 成会明
@ 2013-11-04 18:14 ` Konrad Rzeszutek Wilk
  2013-11-05 13:09   ` 成会明
  0 siblings, 1 reply; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-11-04 18:14 UTC (permalink / raw)
  To: 成会明; +Cc: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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
  2013-11-04 18:14 ` Konrad Rzeszutek Wilk
@ 2013-11-05 13:09   ` 成会明
  0 siblings, 0 replies; 3+ messages in thread
From: 成会明 @ 2013-11-05 13:09 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-05 13:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-02 14:57 "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 成会明
2013-11-04 18:14 ` Konrad Rzeszutek Wilk
2013-11-05 13:09   ` 成会明

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.