Patch "KVM: nVMX: vmx_complete_nested_posted_interrupt() can't fail" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
KVM: nVMX: vmx_complete_nested_posted_interrupt() can't fail
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
kvm-nvmx-vmx_complete_nested_posted_interrupt-can-t-fail.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6342c50ad12e8ce0736e722184a7dbdea4a3477fMon Sep 17 00:00:00 2001
From: David Hildenbrand <[email protected]>
Date: Wed, 25 Jan 2017 11:58:58 +0100
Subject: KVM: nVMX: vmx_complete_nested_posted_interrupt() can't fail
From: David Hildenbrand <[email protected]>
commit 6342c50ad12e8ce0736e722184a7dbdea4a3477f upstream.
vmx_complete_nested_posted_interrupt() can't fail, let's turn it into a void function.
--- arch/x86/kvm/vmx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/x86/kvm/vmx.c +5 -5
@@ -4738,7 +4738,7 @@ static bool vmx_get_enable_apicv(void)return enable_apicv; } -static int vmx_complete_nested_posted_interrupt (struct kvm_vcpu *vcpu) +static void vmx_complete_nested_posted_interrupt (struct kvm_vcpu *vcpu) {struct vcpu_vmx *vmx =to_vmx (vcpu);int max_irr;
@@ -4749,13 +4749,13 @@ static int vmx_complete_nested_posted_in vmx->nested.pi_pending) { vmx->nested.pi_pending = false;if (!pi_test_and_clear_on (vmx->nested.pi_desc)) -return 0 ; +return ; max_irr =find_last_bit ( (unsigned long *)vmx->nested.pi_desc->pir,256 );if (max_irr ==256 ) -return 0 ; +return ; vapic_page =kmap (vmx->nested.virtual_apic_page);if (!vapic_page) {
@@ -4772,7 +4772,6 @@ static int vmx_complete_nested_posted_invmcs_write16 (GUEST_INTR_STATUS , status); } } -return 0 ; }static inline bool kvm_vcpu_trigger_posted_interrupt (struct kvm_vcpu *vcpu)
@@ -10493,7 +10492,8 @@ static int vmx_check_nested_events(strucreturn 0 ; } -return vmx_complete_nested_posted_interrupt (vcpu); +vmx_complete_nested_posted_interrupt (vcpu); +return 0 ; }static u32 vmx_get_preemption_timer_value (struct kvm_vcpu *vcpu)
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/kvm-nvmx-eliminate-vmcs02-pool.patch queue-4.9/kvm-nvmx-vmx_complete_nested_posted_interrupt-can-t-fail.patch