mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roman Kagan <rkagan@virtuozzo.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: <linux-kernel@vger.kernel.org>, <kvm@vger.kernel.org>,
	<dvyukov@google.com>
Subject: Re: [PATCH v2] KVM: hyperv: fix locking of struct kvm_hv fields
Date: Mon, 12 Dec 2016 14:27:47 +0300	[thread overview]
Message-ID: <20161212112747.GA2087@rkaganb.sw.ru> (raw)
In-Reply-To: <20161212091253.19780-1-pbonzini@redhat.com>

On Mon, Dec 12, 2016 at 10:12:53AM +0100, Paolo Bonzini wrote:
> Introduce a new mutex to avoid an AB-BA deadlock between kvm->lock and
> vcpu->mutex.  Protect accesses in kvm_hv_setup_tsc_page too, as suggested
> by Roman.
> 
> Reported-by: Dmitry Vyukov <dvyukov@google.com>
> Cc: Roman Kagan <rkagan@virtuozzo.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  Documentation/virtual/kvm/locking.txt |  8 ++++++--
>  arch/x86/include/asm/kvm_host.h       |  1 +
>  arch/x86/kvm/hyperv.c                 | 24 +++++++++++++++---------
>  arch/x86/kvm/x86.c                    |  1 +
>  4 files changed, 23 insertions(+), 11 deletions(-)

Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>

      reply	other threads:[~2016-12-12 12:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12  9:12 Paolo Bonzini
2016-12-12 11:27 ` Roman Kagan [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=20161212112747.GA2087@rkaganb.sw.ru \
    --to=rkagan@virtuozzo.com \
    --cc=dvyukov@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome