Skip to contentSkip to conversation

KVM: x86: remove duplicated KVM_REQ_EVENT request

PATCH Applied linmiaohe 2 participants 2 messages Feb 7, 2020 – Feb 12, 2020

Subsystems (3)
lore
Share & tools
lore

linmiaohe

author
#0 lore raw

PATCH v2 1/1 KVM: x86: remove duplicated KVM_REQ_EVENT request

From: Miaohe Lin <[email protected]>

The KVM_REQ_EVENT request is already made in kvm_set_rflags(). We should not make it again.

---
v1->v2:
Collected Vitaly's R-b

---
 arch/x86/kvm/x86.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kvm/x86.c +0 -1
index fbabb2f06273..212282c6fb76 100644
@@ -8942,7 +8942,6 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index,
 
 	kvm_rip_write(vcpu, ctxt->eip);
 	kvm_set_rflags(vcpu, ctxt->eflags);
-	kvm_make_request(KVM_REQ_EVENT, vcpu);
 	return 1;
 }
 EXPORT_SYMBOL_GPL(kvm_task_switch);
Signature · 1 line
2.19.1
maintainer Applied
#1 lore raw
Quoted 20 lines · linmiaohe

From: Miaohe Lin <[email protected]>

The KVM_REQ_EVENT request is already made in kvm_set_rflags(). We should not make it again.

---
v1->v2:
Collected Vitaly's R-b

---
 arch/x86/kvm/x86.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kvm/x86.c +0 -0
index fbabb2f06273..212282c6fb76 100644

arch/x86/kvm/x86.c int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index, · line 8947

Quoted 7 lines
arch/x86/kvm/x86.c +0 -1
@@ -8942,7 +8942,6 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index,
 
 	kvm_rip_write(vcpu, ctxt->eip);
 	kvm_set_rflags(vcpu, ctxt->eflags);
-	kvm_make_request(KVM_REQ_EVENT, vcpu);
 	return 1;
 }
 EXPORT_SYMBOL_GPL(kvm_task_switch);

Queued, thanks.

Paolo