Date: Sat, 10 Aug 2019 08:34:02 +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-11@freebsd.org Subject: svn commit: r350834 - stable/11/sys/amd64/vmm/io Message-ID: <201908100834.x7A8Y27i070841@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Aug 10 08:34:02 2019 New Revision: 350834 URL: https://svnweb.freebsd.org/changeset/base/350834 Log: MFC r350560: bhyve: Ignore MSI/MSI-X interrupts sent to non-active vCPUs in physical destination mode. Modified: stable/11/sys/amd64/vmm/io/vlapic.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/amd64/vmm/io/vlapic.c ============================================================================== --- stable/11/sys/amd64/vmm/io/vlapic.c Sat Aug 10 08:29:23 2019 (r350833) +++ stable/11/sys/amd64/vmm/io/vlapic.c Sat Aug 10 08:34:02 2019 (r350834) @@ -836,7 +836,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?201908100834.x7A8Y27i070841>