svn commit: r307258 - stable/10/sys/x86/x86
Sepherosa Ziehau
sephe at FreeBSD.org
Fri Oct 14 04:14:00 UTC 2016
Author: sephe
Date: Fri Oct 14 04:13:59 2016
New Revision: 307258
URL: https://svnweb.freebsd.org/changeset/base/307258
Log:
MFC 306481
x86/ioapic: Fix destination cpu for Hyper-V
On Hyper-V:
- Stick to the first cpu for all I/O APIC pins.
- And don't allow destination cpu changes.
Reviewed by: jhb
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7949
Modified:
stable/10/sys/x86/x86/io_apic.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/x86/x86/io_apic.c
==============================================================================
--- stable/10/sys/x86/x86/io_apic.c Fri Oct 14 03:37:35 2016 (r307257)
+++ stable/10/sys/x86/x86/io_apic.c Fri Oct 14 04:13:59 2016 (r307258)
@@ -325,6 +325,18 @@ ioapic_assign_cpu(struct intsrc *isrc, u
u_int old_id;
/*
+ * On Hyper-V:
+ * - Stick to the first cpu for all I/O APIC pins.
+ * - And don't allow destination cpu changes.
+ */
+ if (vm_guest == VM_GUEST_HV) {
+ if (intpin->io_vector)
+ return (EINVAL);
+ else
+ apic_id = 0;
+ }
+
+ /*
* keep 1st core as the destination for NMI
*/
if (intpin->io_irq == IRQ_NMI)
More information about the svn-src-all
mailing list