From: dinesh chandrasekaran Subject: xen:domU - boot from memory behind PCI device Date: Sat, 29 Nov 2008 03:00:09 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1175103797==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: xen developers community , xen users community List-Id: xen-devel@lists.xenproject.org --===============1175103797== Content-Type: multipart/alternative; boundary="_7d9a958f-073f-4480-b839-6164e3e60903_" --_7d9a958f-073f-4480-b839-6164e3e60903_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey All=2C if I want to allocate memory for a domainU from memory behind= a PCI device and NOT from the xen allocation pool=2C How to go about it?? common/memory.c does have a populate_physmap() function which does the memo= ry allocation for all domain where=2C=20 if (d->is_privilaged) {=20 do normal memory allocation } else { @DOMU: take memory from behind pci device } could be used to seperate the domain0 and domainU memory allocation process= . @DOMU - how to convert the machine addresses behind the pci to pages for do= mainU? =20 Can anyone help me solve this and boot a domainU from behind a pci device (= by allocating memory from behind the pci device).. Thanks in Advance=2C Dinesh C _________________________________________________________________ Searching for weekend getaways? Try Live.com http://www.live.com/?scope=3Dvideo&form=3DMICOAL= --_7d9a958f-073f-4480-b839-6164e3e60903_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey All=2C
 =3B =3B =3B =3B =3B =3B =3B = =3B =3B =3B =3B =3B =3B if I want to allocate memory fo= r a domainU from memory behind a PCI device and NOT from the xen allocation= pool=2C
How to go about it??

common/memory.c does have a populat= e_physmap() function which does the memory allocation for all domain where= =2C

if (d->=3Bis_privilaged) {
 =3B  =3B  =3B &nb= sp=3B  =3B  =3B  =3B do normal memory allocation
}
else {=
 =3B  =3B  =3B  =3B  =3B =3B @DOMU: take memory= from behind pci device
}

could be used to seperate the domain0 a= nd domainU memory allocation process.

@DOMU - how to convert the mac= hine addresses behind the pci to pages for domainU?
 =3B =3B&nbs= p=3B =3B =3B =3B =3B =3B =3B =3B =3B = =3B =3B =3B
Can anyone help me solve this and boot a domainU fr= om behind a pci device (by allocating memory from behind the pci device)..<= br>
Thanks in Advance=2C
Dinesh C




Calling TV b= uffs! Get TV listings=2C gossip on your fave stars and updates on hot new s= hows Try it= now! = --_7d9a958f-073f-4480-b839-6164e3e60903_-- --===============1175103797== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============1175103797==--