All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@linux.intel.com>
To: speck@linutronix.de
Subject: [MODERATED] Re: Interrupts policy for SMT
Date: Fri, 6 Jul 2018 09:46:35 -0700	[thread overview]
Message-ID: <20180706164635.GA25550@tassilo.jf.intel.com> (raw)
In-Reply-To: <1e833994-40b4-babe-d941-ac07d979a944@redhat.com>

>  Of course it is impossible to handle userspace, but the same handwavy
> justifications used for (3) apply even more there, since userspace
> should hardly run on a properly configured guest.

What do you mean?  user space on the host would be handled by
the scheduler in this case (e.g. exclusive cpuset)

This proposal was merely about interrupts.

> Since we are at it, we could add a sticky bit "I am in an interrupt"
> sticky (bit 0 = am I in an interrupt, bit 1 = have I been in an
> interrupt since the flag was cleared).  Then:
> 
> - the interrupt handler writes 3 on entry and 2 on exit;
> 
> - KVM writes 0 just before setting IF=1 and checks the sticky bit just
> before vmentry to check whether to do a L1D flush.

Not sure what the point of this is, but if we wanted something
like that the easiest would be to maintain a interrupt count
per CPU.

-Andi

  reply	other threads:[~2018-07-06 16:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05 23:07 [MODERATED] Interrupts policy for SMT Andi Kleen
2018-07-06 12:35 ` [MODERATED] " Paolo Bonzini
2018-07-06 16:46   ` Andi Kleen [this message]
2018-07-06 17:13     ` Paolo Bonzini
2018-07-06 18:07       ` Andi Kleen
2018-07-06 18:52         ` Jon Masters
2018-07-06 18:56 ` Jon Masters
2018-07-11 14:31   ` Jon Masters

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=20180706164635.GA25550@tassilo.jf.intel.com \
    --to=ak@linux.intel.com \
    --cc=speck@linutronix.de \
    /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.