From mboxrd@z Thu Jan 1 00:00:00 1970 From: Security Initiative Team Subject: RE: [Xen-users] Xen --> Guest Date: Wed, 21 Mar 2007 09:17:21 -0700 (PDT) Message-ID: <447790.96098.qm@web35308.mail.mud.yahoo.com> References: <907625E08839C4409CE5768403633E0B018E1AF7@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0272395258==" Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E1AF7@sefsexmb1.amd.com> 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: "Petersson, Mats" , xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0272395258== Content-Type: multipart/alternative; boundary="0-1454338760-1174493841=:96098" Content-Transfer-Encoding: 8bit --0-1454338760-1174493841=:96098 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Yes, that's what I figured. But, I haven't really been able to figure out how to actually implement a new event channel. I did create a new Virtual interrupt and registered it on the DomU side. I was able to bind to it on the Xen side. However, the vcpu_info->evtchn_upcall_pending variable doesn't seem to get set correctly. I have v->vcpu_info->evtchn_upcall_mask = 0. Plus, I'm not quite sure how to do the polling on the DomU side. If you have a good idea as to how to implement it, please do let me know. "Petersson, Mats" wrote: > -----Original Message----- > From: Security Initiative Team [mailto:passrete@yahoo.com] > Sent: 21 March 2007 15:55 > To: Petersson, Mats; xen-devel@lists.xensource.com; > xen-users@lists.xensource.com > Subject: RE: [Xen-users] Xen --> Guest > > I have some monitoring capabilities set up in Xen > and when that is triggered, I want to notify the DomU > to take some action. > > Example: If a certain part of memory is touched, Xen > sees that and wants to inform the DomU of this. > > So, all I need is to set a bit somewhere that can > be constantly polled by the DomU (waiting for it to flip) And isn't this EXACTLY what the event-channel does? -- Mats > > Thanks, > -Brian > > "Petersson, Mats" wrote: > > > > > -----Original Message----- > > From: xen-users-bounces@lists.xensource.com > > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > > Security Initiative Team > > Sent: 21 March 2007 01:03 > > To: xen-devel@lists.xensource.com; > xen-users@lists.xensource.com > > Subject: [Xen-users] Xen --> Guest > > > > What's the easiest way to send 1-bit of information from > > Xen to a guest domain? > > What do you want this 1-bit of information to achieve > at the other > end... > > Without actually knowing what you're trying to achieve, > it's kind of > hard to answer the question. > > -- > Mats > > > > The event channel mechanism seems fairly complicated. > > > > Thanks, > > -Brian > > > > > > ________________________________ > > > > It's here! Your new message! > > Get new email alerts > > om/toolbar/features/mail/> with the free Yahoo! Toolbar. > > om/toolbar/features/mail/> > > > > > > > > ________________________________ > > No need to miss a message. Get email on-the-go > > with Yahoo! Mail for Mobile. Get started. > > --------------------------------- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. --0-1454338760-1174493841=:96098 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Yes, that's what I figured.

But, I haven't really been able to figure out how to actually implement
a new event channel.

I did create a new Virtual interrupt and registered it on the
DomU side.
I was able to bind to it on the Xen side.
However, the
vcpu_info->evtchn_upcall_pending variable doesn't seem
to get set correctly.
I have v->vcpu_info->evtchn_upcall_mask = 0.

Plus, I'm not quite sure how to do the polling on the DomU side.

If you have a good idea as to how to implement it,
please do let me know.


"Petersson, Mats" <Mats.Petersson@amd.com> wrote:


> -----Original Message-----
> From: Security Initiative Team [mailto:passrete@yahoo.com]
> Sent: 21 March 20 07 15:55
> To: Petersson, Mats; xen-devel@lists.xensource.com;
> xen-users@lists.xensource.com
> Subject: RE: [Xen-users] Xen --> Guest
>
> I have some monitoring capabilities set up in Xen
> and when that is triggered, I want to notify the DomU
> to take some action.
>
> Example: If a certain part of memory is touched, Xen
> sees that and wants to inform the DomU of this.
>
> So, all I need is to set a bit somewhere that can
> be constantly polled by the DomU (waiting for it to flip)

And isn't this EXACTLY what the event-channel does?

--
Mats
>
> Thanks,
> -Brian
>
> "Petersson, Mats" wrote:
>
>
>
> > -----Original Message-----
> > From: xen-users-bounces@lists.xensource.com
> > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of
> > S ecurity Initiative Team
> > Sent: 21 March 2007 01:03
> > To: xen-devel@lists.xensource.com;
> xen-users@lists.xensource.com
> > Subject: [Xen-users] Xen --> Guest
> >
> > What's the easiest way to send 1-bit of information from
> > Xen to a guest domain?
>
> What do you want this 1-bit of information to achieve
> at the other
> end...
>
> Without actually knowing what you're trying to achieve,
> it's kind of
> hard to answer the question.
>
> --
> Mats
> >
> > The event channel mechanism seems fairly complicated.
> >
> > Thanks,
> > -Brian
> >
> >
> > ________________________________
> >
> > It's here! Your new message!
> > Get new email alerts
> > om/toolbar/features/mail/> with the free Yahoo! Toolbar. >
> om/toolbar/features/mail/>
> >
>
>
>
>
>
> ________________________________
>
> No need to miss a message. Get email on-the-go
>
> with Yahoo! Mail for Mobile. Get started.
>
>




Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A. --0-1454338760-1174493841=:96098-- --===============0272395258== 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 --===============0272395258==--