mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Rhett Rhett <rhett.kernel@gmail.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>,
	tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM:Hyper-V reduce one kvm_write_guest operation
Date: Wed, 20 Dec 2017 10:45:02 +0100	[thread overview]
Message-ID: <2ee6e3c6-f1c1-a5e4-a2ca-934f3414f3a9@redhat.com> (raw)
In-Reply-To: <CABvbLL00cQP4Xbgz7T-4WqRu6Ar8dWBLtuTqgvadeaahsUMowg@mail.gmail.com>

On 20/12/2017 10:33, Rhett Rhett wrote:
> tsc_sequence  had been set to 0 before,  so the tsc page won't function.
> guest has no chance to read tsc page before the last write.
> 

kvm_write_guest is not atomic.  The guest can see a non-zero sequence
before the other fields have been set.

Paolo

      parent reply	other threads:[~2017-12-20  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d1e55d03-1a21-e42b-8d10-af55e67eb567@gmail.com>
2017-12-20  9:01 ` Paolo Bonzini
     [not found]   ` <CABvbLL00cQP4Xbgz7T-4WqRu6Ar8dWBLtuTqgvadeaahsUMowg@mail.gmail.com>
2017-12-20  9:45     ` Paolo Bonzini [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=2ee6e3c6-f1c1-a5e4-a2ca-934f3414f3a9@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=hpa@zytor.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rhett.kernel@gmail.com \
    --cc=rkrcmar@redhat.com \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®