From nobody Thu Feb 09 21:15:18 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 4PCV525PSBz3nkCb; Thu, 9 Feb 2023 21:15:18 +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 4PCV524vjDz44xh; Thu, 9 Feb 2023 21:15:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675977318; 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=t8aCnB4ZQZddVQIKT2dbgbA3AqVwON7gQk74DMeWO3I=; b=bU/i/Lz7Q1h7iD14kCn+N1f3f6i6lSLyWHvQRviyE/QBRZ8A+zOs4U9r2shD+ik6Yy6iKa amBvSe+78UuZoqTUrlCW+CHqcJnTH5dgUueI5XuxXWM50ldR1ys43B7XEt55jyeFUKn67G Wq+hqz3MvkombIyeMQM8h3jY4KupuwsUnwOF1QG77fxO0E1g8qu7wotkWHvSAMtdOCFlgP 26oMs//MPiC4sdyeIwzu7w0uKRoE0rPJRgxPNTWVGsRufsw3Rq3u2ynwTPOdhO63ZTmeK4 Jn9lKHuhmOO9H8sXCcAMjJ+WXX7MT+oSE210vVwh/GZpPeNfxXO66RV8O72rwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675977318; 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=t8aCnB4ZQZddVQIKT2dbgbA3AqVwON7gQk74DMeWO3I=; b=K/qlwYw1XTx/LzY7vVsu6B0IoTqCZTdB4Lp4hWkhr8qXemok2dVRUIfWfLNTfXC9BC3+Xs nz4yBxEhVVjIEbNG/KDJdn90MK89MO3yv5OF8bvDObNuBI22Ku1gmQhodP7MmljvpEiGix lVGvc8pnH8+WshftvsOEegYTWEiUm7YCKOyoOmgM/sKzfDQjaCdrYChIeCTqkNSf4RKhvH gO4xLrB7e5ZUCOVMqCWmVyVa/zvwEZ6UWTeaNt4vvP94iLkWYJ9DaHOpkVCLcpdOs5EY3d EiwoOX+awShhwvC8iQl2w2E2Qww1wNDVB+qXgl3vAEpLo8+IaIYE7jkMLXomnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675977318; a=rsa-sha256; cv=none; b=Ut01tFhVc30FNGuoensuWX0eByBZWE3Kp3ug9svknx4mE1gtfKBjQZXgJvh5bHTjPmsq+p 4FsTWAnb47Lcfta9F3ggAqzOupebG7bIgq3JbxWA6zZvPeaJFKwd5lIY9z34WOjnsd2Mfb tbIx2rJiQ6UzZVHvr9k0CjORFnFAuYVh6jj8zwI4geWiHyXdyaROijc2AIWD65x1aS0dX4 qRwPGHAOrBY1gLnthNCZC1QwOHC179Y8Ced2sKuXhVnjKlS5MBdDY+RIHDj7cUVLxuvVGK FUn4smRd4MKUmvzudwQCujbwUNn5JuFrxanpqFhR/2clve/tIgLDd/isttIKaA== 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 4PCV523yc5zsKw; Thu, 9 Feb 2023 21:15:18 +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 319LFI3K042962; Thu, 9 Feb 2023 21:15:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 319LFI8G042961; Thu, 9 Feb 2023 21:15:18 GMT (envelope-from git) Date: Thu, 9 Feb 2023 21:15:18 GMT Message-Id: <202302092115.319LFI8G042961@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f3bbd0e81800 - main - 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/main X-Git-Reftype: branch X-Git-Commit: f3bbd0e818008ddc4fbf1f6ade0f7e411b1dfee5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f3bbd0e818008ddc4fbf1f6ade0f7e411b1dfee5 commit f3bbd0e818008ddc4fbf1f6ade0f7e411b1dfee5 Author: Mark Johnston AuthorDate: 2023-02-09 20:49:40 +0000 Commit: Mark Johnston CommitDate: 2023-02-09 21:14:33 +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 --- 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)