From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kelly Subject: Re: Setting up hypervisor_callback and testing Date: Fri, 17 Feb 2006 17:58:37 +0000 Message-ID: <20060217175835.GB3587@ivankelly.net> References: <20060215114903.GA3745@ivankelly.net> <873bik7qdy.wl%simon.kagstrom@bth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <873bik7qdy.wl%simon.kagstrom@bth.se> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Kagstrom Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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