From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>, kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] KVM: Start lock documentation
Date: Tue, 15 Feb 2011 19:07:12 +0200 [thread overview]
Message-ID: <4D5AB2C0.3050202@redhat.com> (raw)
In-Reply-To: <20110215164414.GA12410@amt.cnet>
On 02/15/2011 06:44 PM, Marcelo Tosatti wrote:
> On Wed, Feb 09, 2011 at 03:11:28PM +0100, Jan Kiszka wrote:
>> The goal of this document shall be
>> - overview of all locks used in KVM core
>> - provide details on the scope of each lock
>> - explain the lock type, specifically of a raw spin locks
>> - provide a lock ordering guide
>>
>> Start with one dependency chain and two locks.
>>
>> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
>> ---
>> Documentation/kvm/locking.txt | 30 ++++++++++++++++++++++++++++++
>> 1 files changed, 30 insertions(+), 0 deletions(-)
>> create mode 100644 Documentation/kvm/locking.txt
>>
>> diff --git a/Documentation/kvm/locking.txt b/Documentation/kvm/locking.txt
>> new file mode 100644
>> index 0000000..23f9092
>> --- /dev/null
>> +++ b/Documentation/kvm/locking.txt
>> @@ -0,0 +1,30 @@
>> +KVM Lock Overview
>> +=================
>> +
>> +1. Acquisition Orders
>> +---------------------
>> +
>> +kvm_lock
>> ++-> kvm::srcu / kvm::lock
>> + +-> kvm::slots_lock
>> + +-> kvm::mmu_lock
>> +...
> Its not easy to understand what you mean here. What kvm_lock has to do
> with the ordering described below it?
>
Yeah, I meant to make the same comment but forgot. I suggest a union of
paths:
kvm::srcu (read) -> { fields }
| kvm::slots_lock(write) -> { fields }
but let's start with the reference section.
next prev parent reply other threads:[~2011-02-15 17:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 14:11 [PATCH] KVM: Start lock documentation Jan Kiszka
2011-02-09 14:18 ` Jan Kiszka
2011-02-15 16:44 ` Marcelo Tosatti
2011-02-15 17:07 ` Avi Kivity [this message]
2011-02-15 17:08 ` Jan Kiszka
2011-02-16 9:03 ` Avi Kivity
2011-03-06 9:40 ` Avi Kivity
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=4D5AB2C0.3050202@redhat.com \
--to=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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.