[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220705083732.168-1-wangguangju@baidu.com>
Date: Tue, 5 Jul 2022 16:37:32 +0800
From: Wang Guangju <wangguangju@...du.com>
To: <seanjc@...gle.com>, <pbonzini@...hat.com>, <vkuznets@...hat.com>,
<jmattson@...gle.com>, <wanpengli@...cent.com>, <bp@...en8.de>,
<joro@...tes.org>, <suravee.suthikulpanit@....com>,
<hpa@...or.com>, <tglx@...utronix.de>, <mingo@...hat.com>,
<kvm@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <wangguangju@...du.com>
Subject: [PATCH] KVM: x86: Add EOI exit bitmap handlers for Hyper-V SynIC vectors
From: wangguangju <wangguangju@...du.com>
Hyper-V SynIC vectors were added into EOI exit bitmap in func
synic_set_sint().But when the Windows VM VMEXIT due to
EXIT_REASON_EOI_INDUCED, there are no EOI exit bitmap handlers
for Hyper-V SynIC vectors.
This patch fix it.
Change-Id: I2404ebf7bda60326be3f6786e0e34e63aa81bbd4
Signed-off-by: wangguangju <wangguangju@...du.com>
---
arch/x86/kvm/lapic.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 0e68b4c..59096f8 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -1303,6 +1303,10 @@ void kvm_apic_set_eoi_accelerated(struct kvm_vcpu *vcpu, int vector)
trace_kvm_eoi(apic, vector);
+ if (to_hv_vcpu(apic->vcpu) &&
+ test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap))
+ kvm_hv_synic_send_eoi(apic->vcpu, vector);
+
kvm_ioapic_send_eoi(apic, vector);
kvm_make_request(KVM_REQ_EVENT, apic->vcpu);
}
--
2.9.4
Powered by blists - more mailing lists