Re: [Xen-devel] [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Gordan Bobic
On Tue, 29 Oct 2013 11:11:29 -0400, Konrad Rzeszutek Wilk wrote: On Tue, Oct 29, 2013 at 02:55:13PM +, Jan Beulich wrote: >>> On 29.10.13 at 15:45, Konrad Rzeszutek Wilk wrote: > On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: >> >>> On 28.10.13 at 17:58, Konrad Rzeszutek

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Jan Beulich
>>> On 29.10.13 at 16:11, Konrad Rzeszutek Wilk wrote: > On Tue, Oct 29, 2013 at 02:55:13PM +, Jan Beulich wrote: >> >>> On 29.10.13 at 15:45, Konrad Rzeszutek Wilk >> >>> wrote: >> > On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: >> >> >>> On 28.10.13 at 17:58, Konrad

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Konrad Rzeszutek Wilk
On Tue, Oct 29, 2013 at 02:55:13PM +, Jan Beulich wrote: > >>> On 29.10.13 at 15:45, Konrad Rzeszutek Wilk > >>> wrote: > > On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: > >> >>> On 28.10.13 at 17:58, Konrad Rzeszutek Wilk > >> >>> wrote: > >> > On Fri, Oct 25, 2013 at

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Jan Beulich
>>> On 29.10.13 at 15:45, Konrad Rzeszutek Wilk wrote: > On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: >> >>> On 28.10.13 at 17:58, Konrad Rzeszutek Wilk >> >>> wrote: >> > On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: >> >> If you can look at PCI host bridge

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Konrad Rzeszutek Wilk
On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: > >>> On 28.10.13 at 17:58, Konrad Rzeszutek Wilk > >>> wrote: > > On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: > >> If you can look at PCI host bridge apertures instead of BARs, that > >> would solve both problems.

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Jan Beulich
>>> On 28.10.13 at 17:58, Konrad Rzeszutek Wilk wrote: > On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: >> If you can look at PCI host bridge apertures instead of BARs, that >> would solve both problems. Reassigning those apertures is >> theoretically possible but is not even a

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Jan Beulich
On 28.10.13 at 17:58, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: If you can look at PCI host bridge apertures instead of BARs, that would solve both problems. Reassigning those apertures is theoretically possible but is

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Konrad Rzeszutek Wilk
On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: On 28.10.13 at 17:58, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: If you can look at PCI host bridge apertures instead of BARs, that would solve both

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Jan Beulich
On 29.10.13 at 15:45, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: On 28.10.13 at 17:58, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: If you can look

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Konrad Rzeszutek Wilk
On Tue, Oct 29, 2013 at 02:55:13PM +, Jan Beulich wrote: On 29.10.13 at 15:45, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: On 28.10.13 at 17:58, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Fri, Oct

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Jan Beulich
On 29.10.13 at 16:11, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Oct 29, 2013 at 02:55:13PM +, Jan Beulich wrote: On 29.10.13 at 15:45, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: On 28.10.13 at

Re: [Xen-devel] [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-29 Thread Gordan Bobic
On Tue, 29 Oct 2013 11:11:29 -0400, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Oct 29, 2013 at 02:55:13PM +, Jan Beulich wrote: On 29.10.13 at 15:45, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Oct 29, 2013 at 08:23:30AM +, Jan Beulich wrote: On

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-28 Thread Konrad Rzeszutek Wilk
On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: > On Fri, Oct 25, 2013 at 9:03 AM, Konrad Rzeszutek Wilk > wrote: > > On bootup the E820 "gaps" or E820_RESV regions are marked as > > identity regions. Meaning that any lookup done in the P2M > > will return the same value:

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-28 Thread Jan Beulich
>>> On 26.10.13 at 00:08, Bjorn Helgaas wrote: > On Fri, Oct 25, 2013 at 9:03 AM, Konrad Rzeszutek Wilk > wrote: >> + unsigned long pfn, start, end, ok_pfns; >> + char bus_addr[64]; >> + char *fmt; >> + >> + if (!pci_resource_len(pci_dev,

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-28 Thread Jan Beulich
On 26.10.13 at 00:08, Bjorn Helgaas bhelg...@google.com wrote: On Fri, Oct 25, 2013 at 9:03 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: + unsigned long pfn, start, end, ok_pfns; + char bus_addr[64]; + char *fmt; + + if

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-28 Thread Konrad Rzeszutek Wilk
On Fri, Oct 25, 2013 at 04:08:19PM -0600, Bjorn Helgaas wrote: On Fri, Oct 25, 2013 at 9:03 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On bootup the E820 gaps or E820_RESV regions are marked as identity regions. Meaning that any lookup done in the P2M will return the same

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-25 Thread Bjorn Helgaas
On Fri, Oct 25, 2013 at 9:03 AM, Konrad Rzeszutek Wilk wrote: > On bootup the E820 "gaps" or E820_RESV regions are marked as > identity regions. Meaning that any lookup done in the P2M > will return the same value: pfn_to_mfn(pfn) == pfn. > > This is needed for PCI devices so that drivers can

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-25 Thread Konrad Rzeszutek Wilk
On Fri, Oct 25, 2013 at 11:03:20AM -0400, Konrad Rzeszutek Wilk wrote: > On bootup the E820 "gaps" or E820_RESV regions are marked as > identity regions. Meaning that any lookup done in the P2M > will return the same value: pfn_to_mfn(pfn) == pfn. > > This is needed for PCI devices so that

[v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-25 Thread Konrad Rzeszutek Wilk
On bootup the E820 "gaps" or E820_RESV regions are marked as identity regions. Meaning that any lookup done in the P2M will return the same value: pfn_to_mfn(pfn) == pfn. This is needed for PCI devices so that drivers can reference the correct bus address. Unfortunatly there are also PCIe devices

[v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-25 Thread Konrad Rzeszutek Wilk
On bootup the E820 gaps or E820_RESV regions are marked as identity regions. Meaning that any lookup done in the P2M will return the same value: pfn_to_mfn(pfn) == pfn. This is needed for PCI devices so that drivers can reference the correct bus address. Unfortunatly there are also PCIe devices

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-25 Thread Konrad Rzeszutek Wilk
On Fri, Oct 25, 2013 at 11:03:20AM -0400, Konrad Rzeszutek Wilk wrote: On bootup the E820 gaps or E820_RESV regions are marked as identity regions. Meaning that any lookup done in the P2M will return the same value: pfn_to_mfn(pfn) == pfn. This is needed for PCI devices so that drivers can

Re: [v1 1/2] xen/p2m: Create identity mappings for PFNs beyound E820 and PCI BARs

2013-10-25 Thread Bjorn Helgaas
On Fri, Oct 25, 2013 at 9:03 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On bootup the E820 gaps or E820_RESV regions are marked as identity regions. Meaning that any lookup done in the P2M will return the same value: pfn_to_mfn(pfn) == pfn. This is needed for PCI devices so that