xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Juergen Gross <JGross@suse.com>
Cc: george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
	dgdegra@tycho.nsa.gov, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: add hypercall option to temporarily pin a vcpu
Date: Fri, 26 Feb 2016 14:07:18 +0100	[thread overview]
Message-ID: <1456492038.2959.170.camel@citrix.com> (raw)
In-Reply-To: <56D0559C02000078000D6AFE@prv-mh.provo.novell.com>


[-- Attachment #1.1: Type: text/plain, Size: 2880 bytes --]

On Fri, 2016-02-26 at 05:39 -0700, Jan Beulich wrote:
> > 
> > > > On 26.02.16 at 12:20, <dario.faggioli@citrix.com> wrote:
> > On Fri, 2016-02-26 at 12:14 +0100, Juergen Gross wrote:
> > > 
> > > EBUSY vs. EAGAIN: by returning EAGAIN I would signal to Xen tools
> > > that
> > > the hypervisor is currently not able to do the desired operation
> > > (especially removing a cpu from a cpupool), but the situation
> > > will
> > > change automatically via scheduling. EBUSY will stop retries in
> > > Xen
> > > tools and this is want I want here: I can't be sure the situation
> > > will change soon.
> > > 
> > I agree with this.
> I'm of two minds here: I can see your viewpoint, but considering
> this is called "temporarily pin a vcpu" the condition is supposed to
> be going away again soon.
> 
Maybe one difference is that it won't go away "by itself". I.e., just
retrying in a while, especially if from inside Xen, and without anyone
explicitly calling the hypercall again with proper argument, nothing
will change.

> > > > Wouldn't it be even better to make this the "else" to the
> > > > preceding if(), since in the suspend case this is otherwise
> > > > going
> > > > to be printed for every vCPU not currently running on pCPU0?
> > > Yes, I'll change it.
> > > 
> > On this, can (either of) you elaborate a bit more? I don't think
> > I'm
> > following...
> In addition to Jürgen's reply: My main concern here is that on
> a bug system this message would get printed for almost every
> vCPU in the system, which could end up being a lot of noise.
> 
> And there's a similar message on the resume side I think -
> perhaps that one should be silenced too.
> 
What I don't understand is this part of your first comment "in the
suspend case this is otherwise going to be printed for every vCPU not
currently running on pCPU0".

First, do you mean with Juergen's patch, or even right now?

And anyway, this is going to be printed for all the vCPUs that does not
have, in their hard affinity, any of the pCPUs that are going to remain
online (or to remain in the domain's cpupool).

In shutdown and suspend, when we try to move everything to pCPU 0, it
will get printed for all the vCPUs that does not have pCPU 0 in their
hard affinity.

We can argue about that being useful or not, and about it being
(potentially) too noisy or not. I personally think it could be useful
(it's XENLOG_DEBUG, after all), but I won't oppose getting rid of it...
I am just not getting why you're saying "not currently running on
pCPU0".

Thanks and Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-02-26 13:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-25 16:50 [PATCH] xen: add hypercall option to temporarily pin a vcpu Juergen Gross
2016-02-26 10:39 ` Jan Beulich
     [not found] ` <56D0395702000078000D69A6@suse.com>
2016-02-26 11:14   ` Juergen Gross
2016-02-26 11:20     ` Dario Faggioli
2016-02-26 11:43       ` Juergen Gross
2016-02-26 12:39       ` Jan Beulich
2016-02-26 13:07         ` Dario Faggioli [this message]
2016-02-26 13:32           ` Jan Beulich
2016-02-26 13:39             ` Dario Faggioli
     [not found]       ` <56D0559C02000078000D6AFE@suse.com>
2016-02-26 12:49         ` Juergen Gross
2016-02-26 13:34           ` Jan Beulich

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=1456492038.2959.170.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=JGross@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.jackson@eu.citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).