From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: 成会明 <chm.bj@hotmail.com>
Cc: xen-devel@lists.xen.org
Subject: 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
Date: Mon, 4 Nov 2013 13:14:49 -0500 [thread overview]
Message-ID: <20131104181449.GD7137@phenom.dumpdata.com> (raw)
In-Reply-To: <BLU0-SMTP32749F439D194B6C513B1D08FF40@phx.gbl>
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
next prev parent reply other threads:[~2013-11-04 18:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2013-11-05 13:09 ` 成会明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131104181449.GD7137@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=chm.bj@hotmail.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).