On Fri, 2010-02-19 at 00:03 +0000, Ritu kaur wrote:
>
>
> On Thu, Feb 18, 2010 at 8:39 AM, Ian Campbell
> <
Ian.Campbell@xxxxxxxxxx> wrote:
> On Thu, 2010-02-18 at 16:27 +0000, Ritu kaur wrote:
> > Hi,
> >
> > I am modifying netback driver code such that it allows
> access to only
> > one domU(based on lowest domid) when multiple domUs are
> present. When
> > the domU with the lowest domid is suspended then the next
> domU in the
> > list will get access.
>
>
> Why?
>
> > I believe it can be done via xe/xm commands or via Citrix
> Xencenter
> > by selecting or deselecting during vm installation or by
> adding and
> > deleting nics, however, I wanted to control this from
> netback driver.
>
>
> The toolstack is exactly the correct place to make and
> implement this
> sort of policy decision -- it has no place in the kernel
> netback driver.
>
> Hi Ian,
>
> Consider a case when I have multiple domU's and both have NIC's
> installed. From one domU, i would like to run nightly scripts which
> involve
>
> 1. download fpga code
> 2. bringup the driver
> 3. start the test scripts in a domU which checks for packets
> transmitted/received. During this time, I would like exclusive access
> to my domU only.
>
> One way to do it is via xe/xm cli or xencenter deleting the NIC from
> the other domU or letting the user of the other domU know that tests
> are running and not access the NIC (if there is any other way to do it
> let me know), which to me is a overhead