[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.