From: dinesh chandrasekaran Subject: FW: [Xen-users] Re: Xen - Guest memory allocation Date: Mon, 23 Jun 2008 05:50:44 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2132728892==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen developers community , xen users community List-Id: xen-devel@lists.xenproject.org --===============2132728892== Content-Type: multipart/alternative; boundary="_1851ee45-d5fa-4bc6-97bc-4de3727ec3b2_" --_1851ee45-d5fa-4bc6-97bc-4de3727ec3b2_ Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Yeah milos, But the PCI device should be allowed access by all DomUs. Hiding the device from Dom0 is not what I really want to achieve. I have to stick to xen source code (and not dom0 or domU) to make this possible. As ou said in the previous mail, Im working on the populate _physmap() to force xen allocate memory for all domUs from the memory available behind the PCI device. I could not understand how hiding the PCI device from Dom0 related to my goal. Thanks alot, Dinesh C > Date: Fri, 20 Jun 2008 18:03:20 +0100 > From: gm281@cam.ac.uk > To: dinesh_chan8@hotmail.com > Subject: Re: [Xen-users] Re: [Xen-devel] Xen - Guest memory allocation > CC: xen-devel@lists.xensource.com; xen-users@lists.xensource.com > > >> Why do you want to restrict DomU to use frames from certain range > >> only? What's the logic behind that? > > > > Im trying to allocate memory for domUs from memory behind a PCI device. The > > machine_addr_start is obtained by probing the device (as I know the vendor > > and device info) during xen boot-up. > > That's what I was suspecting. I think you should give PCI passthrough > a go first. > PCI passthrough allows a PCI device to be hidden away from Dom0 and > exported to a DomU. You achieve the first by passing > pciback.hide=(XX:XX.X) option to Dom0 kernel and adding pci = [ > 'XX:XX.X′ ] to DomU config file. You'll also need > CONFIG_XEN_PCIDEV_FRONTEND=y and CONFIG_XEN_PCIDEV_BACKEND=y in your > DomU and Dom0 kernel configs. > > Hope this helps > Gr(z)egor(z) CoolHotmail : Your crazy personality deserves a unique email identity like yourname@iamcrazy.in. Choose from this and hundreds other unique email ids now Try it! _________________________________________________________________ Timely update on all current affairs, sports, events and all thats in News here on MSN videos. http://video.msn.com/?mkt=en-in --_1851ee45-d5fa-4bc6-97bc-4de3727ec3b2_ Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit
Yeah milos,
                  But the PCI  device should be allowed access by all DomUs.
Hiding the device from Dom0 is not what I really want to achieve.
I have to stick to xen source code (and not dom0 or domU) to make this possible.

As ou said in the previous mail, Im working on the populate
_physmap() to force xen alloca te memory for all domUs from the memory available
behind the PCI device.

I could not understand how hiding the PCI device from Dom0 related to my goal.

Thanks alot,
Dinesh C



> Date: Fri, 20 Jun 2008 18:03:20 +0100
> From: gm281@cam.ac.uk
> To: dinesh_chan8@hotmail.com
> Subject: Re: [Xen-users] Re: [Xen-devel] Xen - Guest memory allocation
> CC: xen-devel@lists.xensource.com; xen-users@lists.xensource.com
>
> >> Why do you want to restrict DomU to use frames from certain range
> >> only? What's the logic behind that?
> >
> > Im trying to allocate memory for domUs from memory behind a PCI device. The
> > machine_addr_start is obtained by probing the device (as I know the vendor
> > and device info) during xen boot-up.
>
> That's what I was suspecting. I think you should give PCI passthrough
> a go first.
> PCI passthrough allows a PCI device to be hidden away from Dom0 and
> exported to a DomU. You achieve the first by passing
> pciback.hide=(XX:XX.X) option to Dom0 kernel and adding pci = [
> 'XX:XX.X′ ] to DomU config file. You'll also need
> CONFIG_XEN_PCIDEV_FRONTEND=y and CONFIG_XEN_PCIDEV_BACKEND=y in your
> DomU and Dom0 kernel configs.
>
> Hope this helps
> Gr(z)egor(z)


CoolHotmail : Your crazy personality deserves a unique email identity like yourname@iamcrazy.in. Choose from this and hundreds other unique email ids now Try it!


Placements ? No Problem. Register Here! Try it! --_1851ee45-d5fa-4bc6-97bc-4de3727ec3b2_-- --===============2132728892== 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 --===============2132728892==--