Date: Sat, 10 Aug 2019 08:26:11 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r350831 - stable/12/sys/amd64/vmm/io Message-ID: <201908100826.x7A8QBot065035@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Aug 10 08:26:10 2019 New Revision: 350831 URL: https://svnweb.freebsd.org/changeset/base/350831 Log: MFC r350560: bhyve: Ignore MSI/MSI-X interrupts sent to non-active vCPUs in physical destination mode. Modified: stable/12/sys/amd64/vmm/io/vlapic.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/amd64/vmm/io/vlapic.c ============================================================================== --- stable/12/sys/amd64/vmm/io/vlapic.c Sat Aug 10 04:15:36 2019 (r350830) +++ stable/12/sys/amd64/vmm/io/vlapic.c Sat Aug 10 08:26:10 2019 (r350831) @@ -838,7 +838,8 @@ vlapic_calcdest(struct vm *vm, cpuset_t *dmask, uint32 */ CPU_ZERO(dmask); vcpuid = vm_apicid2vcpuid(vm, dest); - if (vcpuid < vm_get_maxcpus(vm)) + amask = vm_active_cpus(vm); + if (vcpuid < vm_get_maxcpus(vm) && CPU_ISSET(vcpuid, &amask)) CPU_SET(vcpuid, dmask); } else { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908100826.x7A8QBot065035>