[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <170864807002.3089764.1263409460793232398.b4-ty@google.com>
Date: Thu, 22 Feb 2024 17:35:42 -0800
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Like Xu <like.xu.linux@...il.com>
Subject: Re: [PATCH 0/4] KVM: Clean up "preempted in-kernel" logic
On Tue, 09 Jan 2024 16:39:34 -0800, Sean Christopherson wrote:
> Provide a dedicated helper to query if a *different* vCPU was preempted
> in-kernel. x86's VMX is an oddball and can only check if the vCPU is in
> kernel (versus userspace) if the vCPU is loaded on the current pCPU.
>
> The existing kvm_arch_vcpu_in_kernel() "works", but it's an ugly mess as
> KVM x86 is forced to check kvm_get_running_vcpu() to effectively undo the
> multiplexing.
>
> [...]
Applied to kvm-x86 misc, thanks!
[1/4] KVM: Add dedicated arch hook for querying if vCPU was preempted in-kernel
https://github.com/kvm-x86/linux/commit/77bcd9e6231a
[2/4] KVM: x86: Rely solely on preempted_in_kernel flag for directed yield
https://github.com/kvm-x86/linux/commit/9b8615c5d37f
[3/4] KVM: x86: Clean up directed yield API for "has pending interrupt"
https://github.com/kvm-x86/linux/commit/322d79f1db4b
[4/4] KVM: Add a comment explaining the directed yield pending interrupt logic
https://github.com/kvm-x86/linux/commit/dafc17dd529a
--
https://github.com/kvm-x86/linux/tree/next
Powered by blists - more mailing lists