From nobody Thu Feb 16 22:39:34 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PHqd22pzHz3qRYM; Thu, 16 Feb 2023 22:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PHqd228Lsz4HTZ; Thu, 16 Feb 2023 22:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676587174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7w6uRHtMVoP06Bh577t89f3rEmV2HJj5t9stLFl4DnE=; b=sCrKL1urIftx2r9du0nrdmcH4TR/ivj8VTvUjUEQ/Ejf4yHW9Sw1yC3NyW10ysIbA8EvNt MkbEb07aGE8c4Hr8i7CYoMe2lwPKd0frO6RvoFdTaZrxNzvqdrsu+7QzSLyrmnFYBRT0HS BXVV+hUrcxu46xeFCRUoiI7Zy9bpucjpV9GR56outNa9yOxY0VcIFuYbxqSOgN8BLFvXEH SauyQ9v3xIRxLO19KhP1mA+YOy6Z+f+59jsxUlHdTHR3OPNfUlsuX9r4ercr/C7jKXI+wt P+xLYXQGqdnfgnDBnzZOKEDHtKjUtE7KaFsCss/TRn0a9lQRdBHYZQeO4khs0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676587174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7w6uRHtMVoP06Bh577t89f3rEmV2HJj5t9stLFl4DnE=; b=SGYRUp5m4hU4XyyIRMCCpUe3sbQkslDUtymFveEVjrhff7UnVXBGeOpwCQXmj04mLg+h0C 0aoPurqmYkTEATvxSqpPFl+T7GxkD1i/GzHHJqLmGYOpHkBm3i+wk4gl28LttCuQfF+LRW J6BO5gQCoq9tIqM+raEleC5tPH5u9iqseQlpe/77gdR3IxvtmAjVU267xYZblkRsSio4mX XAVZyeKkvEIkkYUS9+WMA2glwe4aKYtSjKFhxOn5kRO4kqbrwClQqz+9CsM8AG0PTbdAr2 x+vpWgcEDIq8LrcAJ5xCfO27vWlV5nzjGIMS+CgpXHgDEuSTCwdCamg7OwL3bg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676587174; a=rsa-sha256; cv=none; b=tbJkeYYQdS8HK2xjBXGU5gMEgANFnet3JUCOxHfk91JmpLAwlSqZAbG5m+nRC741posOzF /twqIxkYqU+gXY6TIeiomViHmnR6DayAa6SskU2ExmTxL8Naoli0NWLyJ/d0ZSzvWOmvsK 9jpLN1TdJXzFUFPBMAXgPUk4BfPmOaV3Nt6aqlL4Bt6++dNXO0JaQ3XIEn6gvon54YpHiO H/4Vascj3BTjp10YHTY2fX3mmSIHQHje9gzshsg4GVwks5vCs7YV1G/zLplETeTCH77zC7 SXmKNtsy7iGU1z9LzExr5+g6GDQMC73TEX/YWWQ56aMt16kU84geZgcF6aaj5Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PHqd21FVTzLVK; Thu, 16 Feb 2023 22:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31GMdYSS075046; Thu, 16 Feb 2023 22:39:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GMdYQ2075045; Thu, 16 Feb 2023 22:39:34 GMT (envelope-from git) Date: Thu, 16 Feb 2023 22:39:34 GMT Message-Id: <202302162239.31GMdYQ2075045@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 8f3dc8ec46b9 - stable/13 - vmm: Collapse identical case statements in vlapic_icrlo_write_handler() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8f3dc8ec46b9b1a94ac05ee622acf34cbbe9ce5c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8f3dc8ec46b9b1a94ac05ee622acf34cbbe9ce5c commit 8f3dc8ec46b9b1a94ac05ee622acf34cbbe9ce5c Author: Mark Johnston AuthorDate: 2023-02-09 20:49:40 +0000 Commit: Mark Johnston CommitDate: 2023-02-16 21:55:37 +0000 vmm: Collapse identical case statements in vlapic_icrlo_write_handler() No functional change intended. Reviewed by: jhb, corvink MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38446 (cherry picked from commit f3bbd0e818008ddc4fbf1f6ade0f7e411b1dfee5) --- sys/amd64/vmm/io/vlapic.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sys/amd64/vmm/io/vlapic.c b/sys/amd64/vmm/io/vlapic.c index 44641cc29035..a68c68073893 100644 --- a/sys/amd64/vmm/io/vlapic.c +++ b/sys/amd64/vmm/io/vlapic.c @@ -1118,22 +1118,6 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic, bool *retu) break; case APIC_DELMODE_INIT: - if (!vlapic->ipi_exit) { - if (!phys) - break; - - i = vm_apicid2vcpuid(vlapic->vm, dest); - if (i >= vm_get_maxcpus(vlapic->vm) || - i == vlapic->vcpuid) - break; - - CPU_SETOF(i, &ipimask); - - break; - } - - CPU_COPY(&dmask, &ipimask); - break; case APIC_DELMODE_STARTUP: if (!vlapic->ipi_exit) { if (!phys)