All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: george.dunlap@eu.citrix.com,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	xen-devel@lists.xen.org, Ben Catterall <Ben.Catterall@citrix.com>
Subject: Re: RFC: HVM de-privileged mode scheduling considerations
Date: Mon, 3 Aug 2015 17:09:55 +0200	[thread overview]
Message-ID: <1438614595.16912.195.camel@citrix.com> (raw)
In-Reply-To: <1438612487.31129.9.camel@citrix.com>


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

On Mon, 2015-08-03 at 15:34 +0100, Ian Campbell wrote:
> On Mon, 2015-08-03 at 14:54 +0100, Andrew Cooper wrote:

> > I think it would be entirely reasonable to have a deadline for a single
> > execution of depriv mode, after which the domain is declared malicious
> > and killed.
> 
> I think this could make sense, it's essentially a harsher variant of Ben's
> suggestion to abort an attempt to process the MMIO in order to migrate to
> another pcpu, but it has the benefit of being easier to implement and
> easier to reason about 
>
Indeed.

I think it very much depends on what we expect the common/legit case to
be, how long it would last, etc. If, as Andrew is saying, and as it
seems sane, we expect things to be pretty quick this solution sounds
good to me, and we can avoid the complexity of bouncing the operation
among pcpus.

> > We already have this for host pcpus - the watchdog defaults to 5
> > seconds.  Having a similar cutoff for depriv mode should be fine.
> 
> That's a reasonable analogy.
> 
> Perhaps we would want the depriv-watchdog to be some 1/N fraction of the
> pcpu -watchdog, for a smallish N, to avoid the risk of any slop in the
> timing allowing the pcpu watchdog to fire. N=3 for example (on the grounds
> that N=2 is probably sufficient, so N=3 must be awesome).
> 
I like this too.

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:[~2015-08-03 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 13:35 RFC: HVM de-privileged mode scheduling considerations Ben Catterall
2015-08-03 13:54 ` Andrew Cooper
2015-08-03 14:34   ` Ian Campbell
2015-08-03 15:09     ` Dario Faggioli [this message]
2015-08-04 13:46     ` George Dunlap
2015-08-11 10:40       ` Ben Catterall

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=1438614595.16912.195.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=Ben.Catterall@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.campbell@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 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.