All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Paul Durrant <Paul.Durrant@citrix.com>
Cc: James Harper <james.harper@bendigoit.com.au>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: xenbus stress testing
Date: Fri, 18 Feb 2011 13:01:10 +0100	[thread overview]
Message-ID: <20110218120110.GA20514@aepfle.de> (raw)
In-Reply-To: <291EDFCB1E9E224A99088639C47620228CFFAD8287@LONPMAILBOX01.citrite.net>

On Fri, Feb 18, Paul Durrant wrote:

> How do you propose to lock against another VM updating a counter in shared memory?

I thought xenstore uses the same ringbuffer as defined by
DEFINE_RING_TYPES(). But reading the code in
include/xen/interface/io/xs_wire.h shows it has its own logic.

And reading further in xenpaging code, which I had in mind while I wrote
the mail, shows there is a separate spinlock.

I can imagine that even if a lock exists, a VM crashing while holding
the lock can stall all other VMs. So its probably not the best idea.

Olaf

  reply	other threads:[~2011-02-18 12:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  9:01 xenbus stress testing James Harper
2011-02-17 19:06 ` Ian Jackson
2011-02-17 22:17   ` James Harper
2011-02-18 11:05     ` Olaf Hering
2011-02-18 11:43       ` Paul Durrant
2011-02-18 12:01         ` Olaf Hering [this message]
2011-02-18 12:43           ` James Harper
2011-02-18 12:25     ` Ian Jackson
2011-02-18 12:42       ` James Harper
2011-02-18 13:08         ` Keir Fraser
2011-02-18 15:30         ` Ian Jackson
2011-02-18 22:36           ` James Harper

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=20110218120110.GA20514@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=james.harper@bendigoit.com.au \
    --cc=xen-devel@lists.xensource.com \
    /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.