WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Setting up hypervisor_callback and testing

To: Simon Kagstrom <simon.kagstrom@xxxxxx>
Subject: Re: [Xen-devel] Setting up hypervisor_callback and testing
From: Ivan Kelly <ivan@xxxxxxxxxxxxx>
Date: Fri, 17 Feb 2006 17:58:37 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 17 Feb 2006 18:11:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <873bik7qdy.wl%simon.kagstrom@xxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Ivan Kelly <ivan@xxxxxxxxxxxxx>, Simon Kagstrom <simon.kagstrom@xxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20060215114903.GA3745@xxxxxxxxxxxxx> <873bik7qdy.wl%simon.kagstrom@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Wed, Feb 15, 2006 at 01:33:45PM +0100, Simon Kagstrom wrote:
> #define __sti()                                                         \
> do {                                                                    \
>         vcpu_info_t *_vcpu;                                             \
>         barrier();                                                      \
>         _vcpu = &HYPERVISOR_shared_info->vcpu_info[smp_processor_id()]; \
>         _vcpu->evtchn_upcall_mask = 0;                                  \
>         barrier(); /* unmask then check (avoid races) */                \
>         if ( unlikely(_vcpu->evtchn_upcall_pending) )                   \
>                 force_evtchn_callback();                                \
> } while (0)
> 
> the events should be masked on startup I think, so maybe that's your
> problem.
Ok, Ive setup up this. I hadn't the shared info mapped properly and took me a
while to figure out. now when i run the interrupt test i get:
(XEN) (file=/usr/src/xen/xen-2.0/xen/include/asm/mm.h, line=157) Error pfn
00000000: ed=fc59e6c0, sd2
Then the code seems to return to the entry point, and run again continuously.
I think it's trying to jump to an address that doesnt exist even though i have
callback_event set to _hypervisor_callback.
-Ivan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>