2023-12-08 02:07:50

by Sean Christopherson

[permalink] [raw]
Subject: [GIT PULL] KVM: x86: Fixes for 6.7-rcN

Please pull a handful of fixes for 6.7-rcN (hopefully N=5). These have all
been in -next for a week or so.

The following changes since commit ffc253263a1375a65fa6c9f62a893e9767fbebfa:

Linux 6.6 (2023-10-29 16:31:08 -1000)

are available in the Git repository at:

https://github.com/kvm-x86/linux.git tags/kvm-x86-fixes-6.7-rcN

for you to fetch changes up to ef8d89033c3f1f6a64757f066b2c17e76d1189f8:

KVM: x86: Remove 'return void' expression for 'void function' (2023-12-01 08:14:27 -0800)

----------------------------------------------------------------
KVM fixes for 6.7-rcN:

- When checking if a _running_ vCPU is "in-kernel", i.e. running at CPL0,
get the CPL directly instead of relying on preempted_in_kernel, which
is valid if and only if the vCPU was preempted, i.e. NOT running.

- Set .owner for various KVM file_operations so that files refcount the
KVM module until KVM is done executing _all_ code, including the last
few instructions of kvm_put_kvm(). And then revert the misguided
attempt to rely on "struct kvm" refcounts to pin KVM-the-module.

- Fix a benign "return void" that was recently introduced.

----------------------------------------------------------------
Like Xu (2):
KVM: x86: Get CPL directly when checking if loaded vCPU is in kernel mode
KVM: x86: Remove 'return void' expression for 'void function'

Sean Christopherson (2):
KVM: Set file_operations.owner appropriately for all such structures
Revert "KVM: Prevent module exit until all VMs are freed"

arch/x86/kvm/debugfs.c | 1 +
arch/x86/kvm/x86.c | 9 ++++++---
virt/kvm/kvm_main.c | 18 ++++++++----------
3 files changed, 15 insertions(+), 13 deletions(-)


2023-12-08 18:16:17

by Paolo Bonzini

[permalink] [raw]
Subject: Re: [GIT PULL] KVM: x86: Fixes for 6.7-rcN

On Fri, Dec 8, 2023 at 3:07 AM Sean Christopherson <[email protected]> wrote:
>
> Please pull a handful of fixes for 6.7-rcN (hopefully N=5). These have all
> been in -next for a week or so.
>
> The following changes since commit ffc253263a1375a65fa6c9f62a893e9767fbebfa:
>
> Linux 6.6 (2023-10-29 16:31:08 -1000)
>
> are available in the Git repository at:
>
> https://github.com/kvm-x86/linux.git tags/kvm-x86-fixes-6.7-rcN
>
> for you to fetch changes up to ef8d89033c3f1f6a64757f066b2c17e76d1189f8:
>
> KVM: x86: Remove 'return void' expression for 'void function' (2023-12-01 08:14:27 -0800)

Pulled, thanks.

Paolo