From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Tamas Lengyel <tamas.lengyel@zentific.com>,
Razvan Cojocaru <rcojocaru@bitdefender.com>
Cc: Xen-devel <xen-devel@lists.xen.org>,
"Aravindh Puthiyaparambil (aravindp)" <aravindp@cisco.com>
Subject: Re: [PATCH 0/2] Xen/mem_event: Do not rely on the toolstack being bug-free
Date: Thu, 17 Jul 2014 23:42:50 +0100 [thread overview]
Message-ID: <53C8516A.4090607@citrix.com> (raw)
In-Reply-To: <CAErYnsiC+=n6XQat40ZM9FN13eP5SY=dM3_eh8fUAbWObh5P5g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1605 bytes --]
On 17/07/2014 23:17, Tamas Lengyel wrote:
> I've also tested the patch with LibVMI and everything works fine. The
> pause/unpause reference count now does take effect, so the previous
> issue I reported (a paused domain getting unpaused by
> mem_event_enable) is fixed by this patch.
>
> One question I have, what if the toolstack wants to unconditionally
> (force) unpause a domain? Right now with this patch if someone runs
> 'xl pause domain' a couple times he has no other recourse then to
> issue 'xl unpause domain' at least the same number of times, or to
> restart the entire domain. Might be user-friendlier if there was an
> override provided in case a domain got paused a million times by accident.
>
> Cheers,
> Tamas
I don't think that would be a good idea. The entire point of the proper
refcounting is so bits of toolstack subsystems can guarentee that the
domain stays paused during a critical set of operations. Providing a
"DOMCTL_unpausedomain --force" would undermine the whole purpose of this.
As already expressed, there are plenty of ways a buggy/dumb toolstack
can shoot itself in the foot with regards to a domain. I include in
this users with dom0 root access and `xl`.
The two key points are that:
1) a buggy toolstack can't cause Xen perform an unintentional action
(e.g. walking off the end of an array, as demonstrated in patch 1 of
this series) and
2) several non-buggy parts of a toolstack can operate safely together
with respect to a Xen resource.
Any attempt to work around a buggy bit of a toolstack in Xen is effort
better spent fixing the toolstack.
~Andrew
[-- Attachment #1.2: Type: text/html, Size: 2455 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2014-07-17 22:42 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 13:10 [PATCH 0/2] Xen/mem_event: Do not rely on the toolstack being bug-free Andrew Cooper
2014-07-17 13:10 ` [PATCH 1/2] Xen/mem_event: Validate the response vcpu_id before acting on it Andrew Cooper
2014-07-17 18:33 ` Andres Lagar Cavilla
2014-07-17 13:10 ` [PATCH 2/2] Xen/mem_event: Prevent underflow of vcpu pause counts Andrew Cooper
2014-07-17 18:38 ` Andres Lagar Cavilla
[not found] ` <CAGU+auv8zMj+xqU8KhbQSZXM+J+HovjV=TZMab5Z+nzNCvpjaQ@mail.gmail.com>
2014-07-17 18:51 ` Aravindh Puthiyaparambil (aravindp)
2014-07-17 18:54 ` Andres Lagar Cavilla
2014-07-17 18:57 ` Aravindh Puthiyaparambil (aravindp)
2014-07-17 19:07 ` Andrew Cooper
2014-07-17 19:18 ` Aravindh Puthiyaparambil (aravindp)
2014-07-17 18:55 ` Andrew Cooper
2014-07-18 9:42 ` Ian Campbell
2014-07-18 10:41 ` [PATCH v2 " Andrew Cooper
2014-07-18 13:47 ` Razvan Cojocaru
2014-07-18 13:53 ` [PATCH v3 " Andrew Cooper
2014-07-18 16:37 ` Andres Lagar Cavilla
2014-07-18 16:44 ` Andrew Cooper
2014-07-18 17:29 ` Aravindh Puthiyaparambil (aravindp)
2014-07-17 13:23 ` [PATCH 0/2] Xen/mem_event: Do not rely on the toolstack being bug-free Tim Deegan
2014-07-17 14:40 ` Razvan Cojocaru
2014-07-17 14:46 ` Andrew Cooper
2014-07-17 14:50 ` Razvan Cojocaru
[not found] ` <CAGU+auuzOr5HSErrxmyhtxtP74gn=0L5TAZGR8FWBF6MeGFxUA@mail.gmail.com>
2014-07-17 19:01 ` Aravindh Puthiyaparambil (aravindp)
2014-07-17 20:26 ` Razvan Cojocaru
2014-07-17 22:17 ` Tamas Lengyel
2014-07-17 22:42 ` Andrew Cooper [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=53C8516A.4090607@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=aravindp@cisco.com \
--cc=rcojocaru@bitdefender.com \
--cc=tamas.lengyel@zentific.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).