forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/x86/kvm/irq.c
....@@ -1,23 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * irq.c: API for in kernel interrupt controller
34 * Copyright (c) 2007, Intel Corporation.
45 * Copyright 2009 Red Hat, Inc. and/or its affiliates.
56 *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17
- * Place - Suite 330, Boston, MA 02111-1307 USA.
187 * Authors:
198 * Yaozu (Eddie) Dong <Eddie.dong@intel.com>
20
- *
219 */
2210
2311 #include <linux/export.h>
....@@ -93,6 +81,7 @@
9381
9482 return kvm_apic_has_interrupt(v) != -1; /* LAPIC */
9583 }
84
+EXPORT_SYMBOL_GPL(kvm_cpu_has_injectable_intr);
9685
9786 /*
9887 * check if there is pending interrupt without
....@@ -154,6 +143,8 @@
154143 {
155144 __kvm_migrate_apic_timer(vcpu);
156145 __kvm_migrate_pit_timer(vcpu);
146
+ if (kvm_x86_ops.migrate_timers)
147
+ kvm_x86_ops.migrate_timers(vcpu);
157148 }
158149
159150 bool kvm_arch_irqfd_allowed(struct kvm *kvm, struct kvm_irqfd *args)