All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Kelly <ivan@ivankelly.net>
To: Simon Kagstrom <simon.kagstrom@bth.se>
Cc: xen-devel@lists.xensource.com
Subject: Re: Setting up hypervisor_callback and testing
Date: Fri, 17 Feb 2006 17:58:37 +0000	[thread overview]
Message-ID: <20060217175835.GB3587@ivankelly.net> (raw)
In-Reply-To: <873bik7qdy.wl%simon.kagstrom@bth.se>

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

  reply	other threads:[~2006-02-17 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-15 11:49 Setting up hypervisor_callback and testing Ivan Kelly
2006-02-15 12:33 ` Simon Kagstrom
2006-02-17 17:58   ` Ivan Kelly [this message]
2006-02-17 19:53     ` Ivan Kelly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060217175835.GB3587@ivankelly.net \
    --to=ivan@ivankelly.net \
    --cc=simon.kagstrom@bth.se \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.