All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Vijay Kilari <vijay.kilari@gmail.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: xen/arm: VCPU scheduling
Date: Mon, 22 Dec 2014 11:36:58 +0100	[thread overview]
Message-ID: <5497F44A.7030201@linaro.org> (raw)
In-Reply-To: <CALicx6tEQ+MXu51UN55KtVwDRPECNgqnvMaAM_MivubB7AsO+g@mail.gmail.com>

On 20/12/2014 20:48, Vijay Kilari wrote:
> Hi,

Hi Vijay,

>
>     I want to know what is the criteria followed in Xen for scheduling VCPUs.
> Assume below scenario:
>
>   - Run 2 VPCUs on 1 Physical CPU
>   - VCPUs does not trap on WFE or WFE ( either by WFI/WFE trap is
> disabled in HCR OR no WFE/WFI in EL1 is executed).
>
> In such scenario, does Xen assumes that VCPU0 is always running because it has
> NOT trapped on WFI and WFE (not yielded voluntary) and does not
> schedule VCPU1? or is it time shared?

The scheduler allocates time slice to each VCPU. Once the slice is 
ending, another VCPU may be scheduled.

Xen is also trapping WFE/WFI to allow better performance. Why would you 
want to disable WFE/WFI traps?

Regards,

-- 
Julien Grall

      reply	other threads:[~2014-12-22 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-20 19:48 xen/arm: VCPU scheduling Vijay Kilari
2014-12-22 10:36 ` Julien Grall [this message]

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=5497F44A.7030201@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=vijay.kilari@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /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.