All of lore.kernel.org
 help / color / mirror / Atom feed
* [Query] How does Xen X86 does pci enumeration
@ 2014-07-15  6:24 Xenbegn developer
  2014-07-15 14:51 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 6+ messages in thread
From: Xenbegn developer @ 2014-07-15  6:24 UTC (permalink / raw)
  To: xen-devel


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

Hi,

Small beginner query. Where in Xen X86 code pci ep enumeration is done?
I believe it this should be the flow of events
a)  from ACPI enumerate all the PCI controllers
b) On each Controller start enumerating the pci devices.

I started from _start_xen in arch/x86/setup.c but couldnt find the top
level function.
Can anyone please provide pointer.

Thanks

[-- Attachment #1.2: Type: text/html, Size: 502 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] 6+ messages in thread

* Re: [Query] How does Xen X86 does pci enumeration
  2014-07-15  6:24 [Query] How does Xen X86 does pci enumeration Xenbegn developer
@ 2014-07-15 14:51 ` Konrad Rzeszutek Wilk
  2014-07-16 11:55   ` Xenbegn developer
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-07-15 14:51 UTC (permalink / raw)
  To: Xenbegn developer; +Cc: xen-devel

On Tue, Jul 15, 2014 at 11:54:34AM +0530, Xenbegn developer wrote:
> Hi,
> 
> Small beginner query. Where in Xen X86 code pci ep enumeration is done?
> I believe it this should be the flow of events
> a)  from ACPI enumerate all the PCI controllers
> b) On each Controller start enumerating the pci devices.

No. You can also query the PCI via the configuration registers.

Look in the 'pci.c' files.
> 
> I started from _start_xen in arch/x86/setup.c but couldnt find the top
> level function.
> Can anyone please provide pointer.
> 
> Thanks

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

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

* Re: [Query] How does Xen X86 does pci enumeration
  2014-07-15 14:51 ` Konrad Rzeszutek Wilk
@ 2014-07-16 11:55   ` Xenbegn developer
  2014-07-16 13:49     ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 6+ messages in thread
From: Xenbegn developer @ 2014-07-16 11:55 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel

On 7/15/14, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Tue, Jul 15, 2014 at 11:54:34AM +0530, Xenbegn developer wrote:
>> Hi,
>>
>> Small beginner query. Where in Xen X86 code pci ep enumeration is done?
>> I believe it this should be the flow of events
>> a)  from ACPI enumerate all the PCI controllers
>> b) On each Controller start enumerating the pci devices.
>
> No. You can also query the PCI via the configuration registers.
>
> Look in the 'pci.c' files.
>>
>> I started from _start_xen in arch/x86/setup.c but couldnt find the top
>> level function.
>> Can anyone please provide pointer.
>>
One supplement question, does Xen do PCI devices enumeration or Dom0 does it ?


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

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

* Re: [Query] How does Xen X86 does pci enumeration
  2014-07-16 11:55   ` Xenbegn developer
@ 2014-07-16 13:49     ` Konrad Rzeszutek Wilk
  2014-07-22  9:51       ` Xenbegn developer
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-07-16 13:49 UTC (permalink / raw)
  To: Xenbegn developer; +Cc: xen-devel

On Wed, Jul 16, 2014 at 05:25:07PM +0530, Xenbegn developer wrote:
> On 7/15/14, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > On Tue, Jul 15, 2014 at 11:54:34AM +0530, Xenbegn developer wrote:
> >> Hi,
> >>
> >> Small beginner query. Where in Xen X86 code pci ep enumeration is done?
> >> I believe it this should be the flow of events
> >> a)  from ACPI enumerate all the PCI controllers
> >> b) On each Controller start enumerating the pci devices.
> >
> > No. You can also query the PCI via the configuration registers.
> >
> > Look in the 'pci.c' files.
> >>
> >> I started from _start_xen in arch/x86/setup.c but couldnt find the top
> >> level function.
> >> Can anyone please provide pointer.
> >>
> One supplement question, does Xen do PCI devices enumeration or Dom0 does it ?

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

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

* Re: [Query] How does Xen X86 does pci enumeration
  2014-07-16 13:49     ` Konrad Rzeszutek Wilk
@ 2014-07-22  9:51       ` Xenbegn developer
  2014-07-22 19:26         ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 6+ messages in thread
From: Xenbegn developer @ 2014-07-22  9:51 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


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

On Wed, Jul 16, 2014 at 7:19 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Wed, Jul 16, 2014 at 05:25:07PM +0530, Xenbegn developer wrote:
> > On 7/15/14, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > > On Tue, Jul 15, 2014 at 11:54:34AM +0530, Xenbegn developer wrote:
> > >> Hi,
> > >>
> > >> Small beginner query. Where in Xen X86 code pci ep enumeration is
> done?
> > >> I believe it this should be the flow of events
> > >> a)  from ACPI enumerate all the PCI controllers
> > >> b) On each Controller start enumerating the pci devices.
> > >
> > > No. You can also query the PCI via the configuration registers.
> > >
> > > Look in the 'pci.c' files.
> > >>
> > >> I started from _start_xen in arch/x86/setup.c but couldnt find the top
> > >> level function.
> > >> Can anyone please provide pointer.
> > >>
> > One supplement question, does Xen do PCI devices enumeration or Dom0
> does it ?
>
> Both.
>

What is the use case for dom0 and xen both to do pci devices enumeration.
What purpose it solves for xen ?


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

[-- Attachment #1.2: Type: text/html, Size: 2228 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] 6+ messages in thread

* Re: [Query] How does Xen X86 does pci enumeration
  2014-07-22  9:51       ` Xenbegn developer
@ 2014-07-22 19:26         ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 6+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-07-22 19:26 UTC (permalink / raw)
  To: Xenbegn developer; +Cc: xen-devel

On Tue, Jul 22, 2014 at 03:21:31PM +0530, Xenbegn developer wrote:
> On Wed, Jul 16, 2014 at 7:19 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Wed, Jul 16, 2014 at 05:25:07PM +0530, Xenbegn developer wrote:
> > > On 7/15/14, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > > > On Tue, Jul 15, 2014 at 11:54:34AM +0530, Xenbegn developer wrote:
> > > >> Hi,
> > > >>
> > > >> Small beginner query. Where in Xen X86 code pci ep enumeration is
> > done?
> > > >> I believe it this should be the flow of events
> > > >> a)  from ACPI enumerate all the PCI controllers
> > > >> b) On each Controller start enumerating the pci devices.
> > > >
> > > > No. You can also query the PCI via the configuration registers.
> > > >
> > > > Look in the 'pci.c' files.
> > > >>
> > > >> I started from _start_xen in arch/x86/setup.c but couldnt find the top
> > > >> level function.
> > > >> Can anyone please provide pointer.
> > > >>
> > > One supplement question, does Xen do PCI devices enumeration or Dom0
> > does it ?
> >
> > Both.
> >
> 
> What is the use case for dom0 and xen both to do pci devices enumeration.
> What purpose it solves for xen ?

To figure out which PCI interrupts should be assigned to the guest and also
do the MSI and MSI-X writes to the BAR space of PCI devices - instead of
the guest doing it.

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

end of thread, other threads:[~2014-07-22 19:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  6:24 [Query] How does Xen X86 does pci enumeration Xenbegn developer
2014-07-15 14:51 ` Konrad Rzeszutek Wilk
2014-07-16 11:55   ` Xenbegn developer
2014-07-16 13:49     ` Konrad Rzeszutek Wilk
2014-07-22  9:51       ` Xenbegn developer
2014-07-22 19:26         ` Konrad Rzeszutek Wilk

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.