All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Kulke <magnuskulke@linux.microsoft.com>
To: Wei Liu <wei.liu@kernel.org>
Cc: qemu-devel@nongnu.org, "Magnus Kulke" <magnuskulke@microsoft.com>,
	"Doru Blânzeanu" <doru.blanzeanu@microsoft.com>,
	"Doru Blânzeanu" <dblanzeanu@linux.microsoft.com>
Subject: Re: [PATCH] target/i386/mshv: add MshvPutState for vcpu writes
Date: Wed, 11 Nov 2026 20:41:51 +0100	[thread overview]
Message-ID: <avTE/ynd4hd+9CHt@example.com> (raw)
In-Reply-To: <20261109203421.GB3536171@liuwe-devbox-debian-v2.local>

On Mon, Nov 09, 2026 at 12:34:21PM -0800, Wei Liu wrote:
> On Mon, Nov 09, 2026 at 01:39:49PM +0100, Magnus Kulke wrote:
> > Currently QEMU marks a vcpu state as dirty also on merely inspectional
> > reads, e.g. via "info registers", which triggers a writeback to the
> > hypervisor. For MSRs that cause a side-effect when written to this is
> > undesired.
> > 
> > We introduce an MshvPutState flag into the writeback logic to differentiate
> > "runtime" from "full" and "reset" writebacks that should occur e.g. after
> > a migration or startup.
> > 
> > Discrete side-effectful MSRs are excluded in runtime writebacks. So far
> > we only mark one MSR as not runtime-safe, but probably more will be
> > added eventually.
> > 
> > Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
> 
> Reviewed-by: Wei Liu <wei.liu@kernel.org>

queued in pull-20261111


      reply	other threads:[~2026-11-11 19:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 12:39 [PATCH] target/i386/mshv: add MshvPutState for vcpu writes Magnus Kulke
2026-11-09 13:55 ` Mohamed Mediouni
2026-11-09 20:34 ` Wei Liu
2026-11-11 19:41   ` Magnus Kulke [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=avTE/ynd4hd+9CHt@example.com \
    --to=magnuskulke@linux.microsoft.com \
    --cc=dblanzeanu@linux.microsoft.com \
    --cc=doru.blanzeanu@microsoft.com \
    --cc=magnuskulke@microsoft.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wei.liu@kernel.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 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.