All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: Max Dmitrichenko <dmitrmax@gmail.com>, xen-devel@lists.xensource.com
Subject: Re: state of guest at start-up
Date: Wed, 04 Apr 2007 10:49:39 +0100	[thread overview]
Message-ID: <C2393343.CC2E%keir@xensource.com> (raw)
In-Reply-To: <eed7af970704040146k21cd5db5t955fe82bc0642fa@mail.gmail.com>

On 4/4/07 09:46, "Max Dmitrichenko" <dmitrmax@gmail.com> wrote:

> 1) What are the status of event channels mask at the start of the day?
> My experiments showed that all the event channels are unmasked - is
> this right? In the sources of Mini-OS, I have found a comment saying
> that event channels are masked at the start. But this seems to be
> obsolete, or do I make something wrong?

The vcpu_info[cpu].evtchn_upcall_mask fields are all set to 1. This prevents
upcalls on all vcpus. The per-event-channel masks (shared_info.evtchn_mask)
is initialised to all zeroes.

> 2) What is the meaning of shared_info.vcpu_info[0].evtchn_upcall_mask?
> I thought that it masks all the event channels on the VCPU #0, but
> this seems wrong, i.e. when I set this to 0xff, the hypervisor
> callback is still being called. I have to set the
> shared_info.evtchn_mask to all ones in order to mask all the event
> channels. Is this behavour correct?

No. vcpu_info[cpu].evtchn_upcall_mask definitely stops callbacks via the
hypervisor_callback.

> 3) How to determine current VCPU number?

As you would if running natively -- probably by stack-pointer arithmetic and
have some per-cpu info stashed at the bottom of the stack page.

> 4) When I map the shared_info MFN into my OS's space via
> update_va_mapping hypercall and then take the dump of the domain with
> `xm dump-core -C ...`, the page where the shared_info supposed to be
> mapped to is filled with all zeroes. Is this normal, of that means
> that mapping was unsuccessful.

If you don't include the shared_info page in your phys-to-machine map then
dump-core will not dump the page contents.

 -- Keir

  reply	other threads:[~2007-04-04  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04  8:46 state of guest at start-up Max Dmitrichenko
2007-04-04  9:49 ` Keir Fraser [this message]
2007-04-04 22:39   ` Ответ: " Max Dmitrichenko
2007-04-05  6:28     ` Keir Fraser
2007-04-05  7:11       ` Max Dmitrichenko

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=C2393343.CC2E%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=dmitrmax@gmail.com \
    --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.