OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Konstantin Khorenko <khorenko@virtuozzo.com>,
	Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.1 02/14] ms/KVM: x86: Conditionally resched when restarting REP string emulation
Date: Tue, 1 Dec 2026 00:34:41 +0000	[thread overview]
Message-ID: <010701a22f067412-db5c2ecd-184a-49bb-976d-d571662464b7-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261126-khorenko-vstor-157133-klp-and-kvm-fixes-v1-2-0ec8eaadf1bc@virtuozzo.com>

> From: Sean Christopherson <seanjc@google.com>
> 
> [ Upstream commit ae85ac25eb671d174811cc3101549448671fd505 ]
> 
> When restarting emulation, e.g. of a REP-prefixed string instruction,
> conditionally reschedule as emulating guest writes can be deceptively slow
> and expensive, e.g. when shadow paging is in use and each write can trigger
> write tracking.
> 
> In a perfect world, restarting emulation (or not) would be less arbitrary,
> e.g. would honor not only host events (NEED_RESCHED, signals, etc.) but
> also guest events (e.g. by checking kvm_vcpu_has_events()).  Unfortunately,
> as pointed out by Sashiko, pio_in_emulated()'s read-ahead logic is baked
> into the restart logic, as KVM relies on restarting emulation to drain the
> cache and avoid duplicate reads from the I/O port.  I.e. re-entering the
> [ ... ]
> (cherry picked from commit c1293d2134c2d63741b197a1e5a6363894ed4bce)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-157287
> Feature: fix ms/kvm
> Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261126-khorenko-vstor-157133-klp-and-kvm-fixes-v1-0-0ec8eaadf1bc@virtuozzo.com?part=2


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-12-01  0:36 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 14:30 [Devel] [PATCH hci-8.1 00/14] objtool/klp and KVM fixes for the 8.1 kernel Konstantin Khorenko
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 01/14] ms/KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure Konstantin Khorenko
2026-12-01  0:34   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 02/14] ms/KVM: x86: Conditionally resched when restarting REP string emulation Konstantin Khorenko
2026-12-01  0:34   ` no-reply [this message]
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 03/14] ms/KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry Konstantin Khorenko
2026-12-01  0:35   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 04/14] ms/KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit) Konstantin Khorenko
2026-12-01  0:36   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 05/14] ms/KVM: x86: Unconditionally reset MMU context when emulating INIT Konstantin Khorenko
2026-12-01  0:37   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 06/14] ms/KVM: SVM: Triple fault L1 on unintercepted EFER.SVME clear by L2 Konstantin Khorenko
2026-12-01  0:38   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 07/14] ms/KVM: selftests: Add a test for L2 clearing EFER.SVME without intercept Konstantin Khorenko
2026-12-01  0:38   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 08/14] ms/objtool: Fix data alignment in elf_add_data() Konstantin Khorenko
2026-12-01  0:39   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 09/14] ms/objtool/klp: fix data alignment in __clone_symbol() Konstantin Khorenko
2026-12-01  0:39   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 10/14] ms/objtool/klp: Fix module name normalization for paths with dots Konstantin Khorenko
2026-12-01  0:40   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 11/14] ms/objtool/klp: Normalize Module.symvers paths to module names Konstantin Khorenko
2026-12-01  0:40   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 12/14] ms/objtool/klp: Fix cross-module klp relocation section naming Konstantin Khorenko
2026-12-01  0:41   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 13/14] ms/objtool/klp: Fix detection of corrupt static branch/call entries Konstantin Khorenko
2026-12-01  0:43   ` no-reply
2026-11-26 14:30 ` [Devel] [PATCH hci-8.1 14/14] ms/objtool/klp: Don't match local symbols against exports Konstantin Khorenko
2026-12-01  0:43   ` no-reply
2026-11-26 14:46 ` [Devel] [PATCH hci-8.1 00/14] objtool/klp and KVM fixes for the 8.1 kernel Konstantin Khorenko

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=010701a22f067412-db5c2ecd-184a-49bb-976d-d571662464b7-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    --cc=ptikhomirov@virtuozzo.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