Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp111845lqb; Thu, 23 May 2024 12:17:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7JRRQH/pQSMU749PX4Ebpd2MfvH3lsO0lahn/aTyYBkQrNxpuxfKD+eM0eYBGK4QchyB45iVir6zNDchUMVtr3dSKMKGhdjQDZSN5pQ== X-Google-Smtp-Source: AGHT+IGu78qdbDLJe+KqS6fa7wGWkDj7c+EtiocrEgtl4y+90ZMeLPe409OhftCIG+0PIp1V+wwe X-Received: by 2002:a05:622a:3d0:b0:437:9875:9905 with SMTP id d75a77b69052e-43fb0e7c785mr320131cf.27.1716491858829; Thu, 23 May 2024 12:17:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716491858; cv=pass; d=google.com; s=arc-20160816; b=HqvpyMdtfQ7LswqVhTKpNUfhFRq1y6tcoaMJZNA6hWP6hjFsIfI+mRaiTl30DE64AK 9padBGwaIz90gsudsU9/8RbNFkwbb+p99Vrj99ZnSKwKi3liNGU+PBB6Sw58cB6jrqVm aEWVKqpcV8Xb4IrhabNWVTnGiwyGDvorunpmz11S2L1KaVHJNBW2wHvGnqLiikWmoi9y K1YVpf0MSXgZ0wPWlUZMz7cbyjmbjw4usE/EGzQtHPruAPysxCe35Uo2Mz2NRmvLBkge Os8yQt0ZRiYhpydG70vEGouGG+NiU2K12UMnGKqRewSCXtQABLWHmE8deeK0HM+Vyupd +Ctg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4QGCJNvGWko8B9wup6iwCm4c9keuD69o33VzvSan8uM=; fh=CqxT77qf7v0cyxcEfKNOSCPmdYyfEe8xwwY3GXvpCv4=; b=hmQfIkaHnFukJcWhtseLSDgxSIapFd8mjFDEOQxRSWVNITEb8RkXEH0FLJLBZOepLK rf6ObDmj3yN7xkVJfh6ffQiDkKeNqunVk3b8kNRF88h0XzfApfo2o9ufKVxTgsUZHUik e50dA+wGk1oHIY9xoGD0sfI0SmEjb6MbwYwQmWV3YSCuU0CsrPjCwMnezQAbQiUbdvED bKBDRs22FfLnQhRaGCViYiiG3D/R9zEpLGrBmEP+I3d4crUMNmTHZODDFnJo29OSofyg gTbgp2qYDijhIyN2z9/Kd7pluIk4j8OExoVESar+xXdtpWse2N7NW3U3fgs2oQ803axj gdlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=dW+csAyu; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-187919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df549f421si30688521cf.92.2024.05.23.12.17.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 12:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=dW+csAyu; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-187919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0ED741C22AE4 for ; Thu, 23 May 2024 19:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBE9584FDA; Thu, 23 May 2024 19:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="dW+csAyu" Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 860B785291 for ; Thu, 23 May 2024 19:15:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716491746; cv=none; b=AFq2IbTu4jE4sEP2b3Lat/0IHbxxaHosEy5ZqnpwoYshRCz8FyzGm8zFPsZ8/GCgtdOtbJbU6Cf1SRfcvX/jWRHbbnHPRk2dqrfqgs5wtVr1C+tflFbUDYemW5XuITzzS9Nii9JYVu3vE1qj/gdp0ZTWeglk5kwlY0vMY+rk46U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716491746; c=relaxed/simple; bh=M704MWHwyyg4r3sYtIOpDT3E8SyShb3NiouS2fvBgek=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AwpccCQlGzG/wb9dfSodTi514GF+GI5cdQberQqsNPABLyDzn2tQ2u6cK4q9l7mNfWag41O0HPy7wuPH2W8PN6+taQ1vtihc3td+pS0isgpi/v/hsEbZeOiHYFWM4OLkrsfOwok0Q+n01xVH9sh8iHNxwi/jE4RHa2gkIg+Gyiw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=dW+csAyu; arc=none smtp.client-ip=209.85.219.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-6ab9d3de222so834396d6.2 for ; Thu, 23 May 2024 12:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1716491743; x=1717096543; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4QGCJNvGWko8B9wup6iwCm4c9keuD69o33VzvSan8uM=; b=dW+csAyuVBuhyW7k5fcHs+pPxtx67Lc4kx9/RlvFwMyXlqUGdc6htkvOn+5mMeSDOQ 2CKtUjtK8r+oskuP5Ss+VLsT1/CX4aYRE2XE/ThHASzEtkkFYgN3NIl1MrSrwMn2EVn6 /Mu2FHNJoDhWmTPf5c8AdOyyI1pAuc98FSu4Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716491743; x=1717096543; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4QGCJNvGWko8B9wup6iwCm4c9keuD69o33VzvSan8uM=; b=JcihuX5DJRNSlR5Wx4DvzAVx/7Uf+Y0gijbytNFKMayO8Q4VkvoBOlszMrGK9xfGcU MyZbwhp4MXHhWNs+30KQlfBzKRw9xolq86jDsO0BILkjMNFrY3aZd/lt1aEoHR0srP8y q+KaxvYCR7PSWDmGPXQXkmMpBsGtWT+t7Vb5X74pcS0wyagb/+N/3f/bUNuYi269jg48 IBoTkCh7SW//zJaMNi4ticedomPBxsLYUD5q/4zebBVl1avFx2nJTA1ohl3M6FOBn+Qu 43JhITZf9XDrou7EL/rfUTs+PjXxEACqoHVbXugbmXmf4UQmbdV8gaWmrSqeQXHJ/zlc +tuw== X-Gm-Message-State: AOJu0Ywa9+pAJeiSCWFNqQ30ReKytNuGQXJrFo2EzXXDMMilNlISzHcY nrig0f3H88YxR2+6vCuBueUeO1eHr5HIAX5Xr18prjGSLUinAyKnvYjUcdHhiHmivpgZQ7gwMmh xW88jWkNlqkGBF9xX3OsG3rViBi7CGon7URQ9zt6AF1sw1Zrop/UdP7QDNtQOYRJH5cFSILfqRQ JhdBd/t1q3tmmfWoo6xVuN/W4rFGu5kzYPahy0Rk3HoFhvTp/c2cFo X-Received: by 2002:a05:6214:4888:b0:6a0:cbeb:c5c0 with SMTP id 6a1803df08f44-6abcd0d7813mr50266d6.55.1716491743143; Thu, 23 May 2024 12:15:43 -0700 (PDT) Received: from amakhalov-build-vm.eng.vmware.com ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43e4a89b61dsm21219821cf.45.2024.05.23.12.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 12:15:42 -0700 (PDT) From: Alexey Makhalov To: linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, bp@alien8.de, hpa@zytor.com, dave.hansen@linux.intel.com, mingo@redhat.com, tglx@linutronix.de Cc: x86@kernel.org, netdev@vger.kernel.org, richardcochran@gmail.com, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, zackr@vmware.com, linux-graphics-maintainer@vmware.com, pv-drivers@vmware.com, timothym@vmware.com, akaher@vmware.com, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, airlied@gmail.com, tzimmermann@suse.de, mripard@kernel.org, maarten.lankhorst@linux.intel.com, horms@kernel.org, kirill.shutemov@linux.intel.com, Alexey Makhalov Subject: [PATCH v10 7/8] x86/vmware: Remove legacy VMWARE_HYPERCALL* macros Date: Thu, 23 May 2024 12:14:45 -0700 Message-Id: <20240523191446.54695-8-alexey.makhalov@broadcom.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20240523191446.54695-1-alexey.makhalov@broadcom.com> References: <20240523191446.54695-1-alexey.makhalov@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit No more direct use of these macros should be allowed. vmware_hypercallX api still use new implementation of VMWARE_HYPERCALL macro internally, but it is not exposed outside of the vmware.h. Signed-off-by: Alexey Makhalov --- arch/x86/include/asm/vmware.h | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/x86/include/asm/vmware.h b/arch/x86/include/asm/vmware.h index 5114f4c75c54..78567920b23f 100644 --- a/arch/x86/include/asm/vmware.h +++ b/arch/x86/include/asm/vmware.h @@ -274,30 +274,4 @@ unsigned long vmware_hypercall_hb_in(unsigned long cmd, unsigned long in2, #undef VMW_BP_CONSTRAINT #undef VMWARE_HYPERCALL -/* The low bandwidth call. The low word of edx is presumed clear. */ -#define VMWARE_HYPERCALL \ - ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT) ", %%dx; " \ - "inl (%%dx), %%eax", \ - "vmcall", X86_FEATURE_VMCALL, \ - "vmmcall", X86_FEATURE_VMW_VMMCALL) - -/* - * The high bandwidth out call. The low word of edx is presumed to have the - * HB and OUT bits set. - */ -#define VMWARE_HYPERCALL_HB_OUT \ - ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT_HB) ", %%dx; " \ - "rep outsb", \ - "vmcall", X86_FEATURE_VMCALL, \ - "vmmcall", X86_FEATURE_VMW_VMMCALL) - -/* - * The high bandwidth in call. The low word of edx is presumed to have the - * HB bit set. - */ -#define VMWARE_HYPERCALL_HB_IN \ - ALTERNATIVE_2("movw $" __stringify(VMWARE_HYPERVISOR_PORT_HB) ", %%dx; " \ - "rep insb", \ - "vmcall", X86_FEATURE_VMCALL, \ - "vmmcall", X86_FEATURE_VMW_VMMCALL) #endif -- 2.39.0