Re: [Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-12 Thread Michael S. Tsirkin
On Tue, Mar 12, 2013 at 10:25:20AM -0600, Alex Williamson wrote: > On Tue, 2013-03-12 at 17:50 +0200, Michael S. Tsirkin wrote: > > On Tue, Mar 12, 2013 at 09:36:49AM -0600, Alex Williamson wrote: > > > On Tue, 2013-03-12 at 16:46 +0200, Michael S. Tsirkin wrote: > > > > On Mon, Mar 11, 2013 at 03:

Re: [Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-12 Thread Alex Williamson
On Tue, 2013-03-12 at 17:50 +0200, Michael S. Tsirkin wrote: > On Tue, Mar 12, 2013 at 09:36:49AM -0600, Alex Williamson wrote: > > On Tue, 2013-03-12 at 16:46 +0200, Michael S. Tsirkin wrote: > > > On Mon, Mar 11, 2013 at 03:18:49PM -0600, Alex Williamson wrote: > > > > When creating capabilities

Re: [Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-12 Thread Michael S. Tsirkin
On Tue, Mar 12, 2013 at 09:36:49AM -0600, Alex Williamson wrote: > On Tue, 2013-03-12 at 16:46 +0200, Michael S. Tsirkin wrote: > > On Mon, Mar 11, 2013 at 03:18:49PM -0600, Alex Williamson wrote: > > > When creating capabilities devices need to know what kind of bus > > > they're on. If we're on

Re: [Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-12 Thread Alex Williamson
On Tue, 2013-03-12 at 16:46 +0200, Michael S. Tsirkin wrote: > On Mon, Mar 11, 2013 at 03:18:49PM -0600, Alex Williamson wrote: > > When creating capabilities devices need to know what kind of bus > > they're on. If we're on an express bus without a parent_dev, then > > we're on the root complex a

Re: [Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-12 Thread Michael S. Tsirkin
On Mon, Mar 11, 2013 at 03:18:49PM -0600, Alex Williamson wrote: > When creating capabilities devices need to know what kind of bus > they're on. If we're on an express bus without a parent_dev, then > we're on the root complex and need to use integrated endpoints > rather than standard endpoints.

[Qemu-devel] [RFC PATCH] pci: Differentiate PCI Express bus

2013-03-11 Thread Alex Williamson
When creating capabilities devices need to know what kind of bus they're on. If we're on an express bus without a parent_dev, then we're on the root complex and need to use integrated endpoints rather than standard endpoints. When we're on an express bus with a parent_dev we need to negotiate lin