Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp368828lqs; Thu, 13 Jun 2024 12:21:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUW29qShiurlV7DDJHUS/d4AV9BaY+PVjBong9boJBOkhPj3kMuGtscTKIzt3velt1JImjjwRWZru4F/cm8rxma52G8FVdwAgzlpX/UEQ== X-Google-Smtp-Source: AGHT+IG11T1SnoUQRZ2M4n2UoWAPaqeMl6M4WhR7XDNsABhHwWrwu2ntI4/RA9X0QzW/gIdwYRUj X-Received: by 2002:a17:906:fa15:b0:a6f:4f1f:2dae with SMTP id a640c23a62f3a-a6f60dc1f75mr45171066b.62.1718306481637; Thu, 13 Jun 2024 12:21:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718306481; cv=pass; d=google.com; s=arc-20160816; b=ox1RyXGvNDYUwFY3qtHvPcxHVPkpC8wMsgBLu8EZKXESHd9G4QKrje12L+jezU6cey gF+TE7JjJJB2tLD3B1nie/xA8iJKvNMwHDHS7BhkK5MTYzF7/yXMVAvHppeGRrbktyem cLKIdOMO1rz/cVyEEXjEsMb6Z9XrXYD6P/vxNAc7LTr7tO2uGNrDWXV09prQkB8Z6Nal 5Ch9fRgkT4LfsCDJYNXhnnmrWz5mpvYLH7vdmtcoKAPDTWtvy8AJ7+lOSkonyncI7cHC oRRNBtsPh2j1dNBBUjU6lwEUylfeVma+l59fsiV6FVpYwUTs787OA0yQaEVC5Rs734f1 gsPQ== 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=nvm0BsFAFI1cdP2yPyZHFfaL98AuxIoGBUiXiDXnc2A=; fh=CqxT77qf7v0cyxcEfKNOSCPmdYyfEe8xwwY3GXvpCv4=; b=WTpMeggCi0Lvo/i9N9TlqRNdp5Sm5Q+d4l83Gw//+DJl5QfIjr4OGPAYmOVJe3fFyb nxBFwaDwuhEhB9mkwfZ6+Rhg/9aeH2RznR1TDf7g6NT3dgv/mjN/Dnnp1RZ7Fp+v8dg2 C/GT0Y2FdUp8sWMJCpq7daCMYNuBtschXnCbAiwOrb1Zc2o1rVog9EXlC90GnzCol1sz DoYXgH1UM/G90Zm5klz/LpP8IlyJ53V6qyOsS+ELIZAZ+0kF1CxwPE4emcghA9MU0nHS XXL+c6T9KJDiOHi2D7fR84lGMgx+0LW+TX8DrW97/zr6F8LxV3Nl4HSBaC3KYioc4SHm 7Cug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=MnOpkS3q; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-213906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e8137bsi98667266b.999.2024.06.13.12.21.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=MnOpkS3q; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-213906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213906-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2F1181F25641 for ; Thu, 13 Jun 2024 19:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93EAF1586D3; Thu, 13 Jun 2024 19:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="MnOpkS3q" Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 3251E14E2D6 for ; Thu, 13 Jun 2024 19:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306269; cv=none; b=nOpKqfw9WzroFYKBgpnPIkPT9gKEm99GsVanljmFKavX5RqbDxgG2GYRUiPV/1lgdTCryP2Hg2+4OfKT0e1lOU+AUC4WVnDbJYwUXL1yOxoOEhpOhJcB2e6YVmhxzhBCVrRGbSY0HUvMjt2DQ+TL2XFLF1wxqUH8IoslEdIfGSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306269; c=relaxed/simple; bh=Q/3uwJcP0awQ0cZ0zuOOajZzP1zhz0U9p5QjUO0IuwE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tGvpmRpzIPvEG8IQtKV8Rjvf/yOxFY0mmGitdXMnflTWKU7aJFwJBFDcFRbbuC1zGXapWo9SDjWVwh1dJ0Eb0kdOymAvnexXJswEVuE+b4bf5abAggvzbrbTufFKlP1MnLewjvqyVdGREQ7VyxjBt2DGGetpUitpB+ORD+wnYzo= 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=MnOpkS3q; arc=none smtp.client-ip=209.85.128.170 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-yw1-f170.google.com with SMTP id 00721157ae682-630640c1e14so20344127b3.1 for ; Thu, 13 Jun 2024 12:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718306267; x=1718911067; 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=nvm0BsFAFI1cdP2yPyZHFfaL98AuxIoGBUiXiDXnc2A=; b=MnOpkS3qY/AcUnB3iHdlNZNicTqe9wOWurJFGMRwZOoPZlDFUGT6fHqXpwxfDkOjGW AQbsOOC1D1kFDc0q3uvVTJJbwebqs8NCtmjHNCRzhDqrKCLSpZcHTuqaDTDnEckWbz/k MR5Zcxu+l46UDSPNypFK05eLE1tmfdJWloDxo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718306267; x=1718911067; 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=nvm0BsFAFI1cdP2yPyZHFfaL98AuxIoGBUiXiDXnc2A=; b=xCcH4gTxi7T63O4oo5bgLto3iXI1NbXalNV59tAEE1VV9Wu28l6sBX2GSzchj7YQjM WZmkdycAnEHzCWv9u9Z8uxwMHkiG8M5NVTo1reuOjPTyeBPpCzkbPptXg+lqNmnE9ER6 /7RuwSEUzVseKlIch3RvGVyPo+qRiws3gV7NXNHp+tWyrKSa0oGigI6SyNODRHr5OTys 9ZIEgX3ubEVJxZRm2Oerj21TAyAorroQ5Me4gPikSVMZtFjS+cdHY4vSpgsrs89vnmo8 m2a7DpbpsDb02LNrLmJHdjZC6QlNeDywIFrGbMzS63c5LPdKo2N4o20E+EbTJqeQ4WFR cS2A== X-Gm-Message-State: AOJu0YzuZ1TLqJfYHgtnjx7jeaKhfAndWKDJ+7vbSbpZcCgbc1qo9sZq NUFsgQ+Rcg0VXn8mb+R/I8wYbwMc3TkGIprC7BU4PVw/uDwZmc/zkkAOyz76E53R0nSjZH8s6Uc 53jqx12Gt7dnUVBDWYW6baPM77Hxd3X1LjHYUUMdGYgeFs1i0JbY2ZLQhD7jXVpXEi+DCYEdHhY vW126KF7WfDfucuXBbheh/fRJ6OijqOJ5JbJJYQ6JJy0BxApYfdfGl X-Received: by 2002:a81:8d13:0:b0:62f:b04c:2442 with SMTP id 00721157ae682-63222070cafmr4181267b3.7.1718306266717; Thu, 13 Jun 2024 12:17:46 -0700 (PDT) Received: from amakhalov-build-vm.eng.vmware.com ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b2a5eb47f6sm9714106d6.82.2024.06.13.12.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:17:46 -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 v11 7/8] x86/vmware: Remove legacy VMWARE_HYPERCALL* macros Date: Thu, 13 Jun 2024 12:16:49 -0700 Message-Id: <20240613191650.9913-8-alexey.makhalov@broadcom.com> X-Mailer: git-send-email 2.39.4 In-Reply-To: <20240613191650.9913-1-alexey.makhalov@broadcom.com> References: <20240613191650.9913-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 724c8b9b4b8d..d83444f03969 100644 --- a/arch/x86/include/asm/vmware.h +++ b/arch/x86/include/asm/vmware.h @@ -279,30 +279,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.4