From: Tom Rotenberg Subject: Question about the dynamic sizing of the PCI hole Date: Mon, 25 May 2009 12:01:15 +0300 Message-ID: <8686c3cd0905250201u5eb546a5n35b7600e4b264feb@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2104326663==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2104326663== Content-Type: multipart/alternative; boundary=0016e64618a443c7c5046ab8dafb --0016e64618a443c7c5046ab8dafb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I am reviewing the code of the hvmloader from Xen 3.4, and i saw that in changeset 19021, there was a patch which added the ability to dynamically size the PCI hole. I have seen that this patch calculates the total memory size, but i failed to understand the following lines: while ( (mmio_total > (pci_mem_end - pci_mem_start)) && ((pci_mem_start << 1) != 0) ) pci_mem_start <<= 1; It looks as if the pci mem start will be increased if there isn't enough space for the PCI devices, although, as far as i understand, it should be decreased (so the PCI hole will be enlarged). So, shouldn't it be: "pci_mem_start >> = 1" ? Thanks, Tom --0016e64618a443c7c5046ab8dafb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I am reviewing the code of the= hvmloader from Xen 3.4, and i saw that in changeset 19021, there was a pat= ch which added the ability to dynamically size the PCI hole. I have seen th= at this patch calculates the total memory size, but i failed to understand = the following lines:

while ( (mmio_total > (pci_mem_end - pci_mem_start)) &&
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ((pci_mem_start << 1) !=3D 0) )
= =A0=A0=A0=A0=A0=A0=A0 pci_mem_start <<=3D 1;

It looks as if th= e pci mem start will be increased if there isn't enough space for the P= CI devices, although, as far as i understand, it should be decreased (so th= e PCI hole will be enlarged). So, shouldn't it be: "pci_mem_start = >> =3D 1" ?

Thanks,
=A0=A0=A0=A0=A0=A0 Tom
--0016e64618a443c7c5046ab8dafb-- --===============2104326663== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2104326663==--