From patchwork Tue Jan 7 17:39:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11321515 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BF90138C for ; Tue, 7 Jan 2020 17:40:25 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 27D7A20848 for ; Tue, 7 Jan 2020 17:40:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bHHqAz7M" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 27D7A20848 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iosp9-0004cW-E5; Tue, 07 Jan 2020 17:39:23 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iosp8-0004cP-9h for xen-devel@lists.xenproject.org; Tue, 07 Jan 2020 17:39:22 +0000 X-Inumbo-ID: a0caea22-3174-11ea-bf56-bc764e2007e4 Received: from mail-wm1-x342.google.com (unknown [2a00:1450:4864:20::342]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a0caea22-3174-11ea-bf56-bc764e2007e4; Tue, 07 Jan 2020 17:39:17 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id p9so421731wmc.2 for ; Tue, 07 Jan 2020 09:39:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=44vjlrhcAqVkUEK0qSVPAI0qz3c0oR69g1CT4yXLODk=; b=bHHqAz7MRO8J1ArPuQ+z4f9LNuMq7QlEe8YPsiIgXlPNR7kfEm5JDkb/KTgyLYGCDk hMt4edQAvN+rmwLyn0WXB8BH/symGeLCCg6LvzrT6BJEz6ZKEt5xRFuZSEv722lwSVg4 4qdiBP88QX65FG+Kzuc5R/PUfKfs6mcMYAy4rJoIoV0UzpfaEEZd9FxxJ5xj2Cq2Pxjw qi5Z1A+d9ze91qyhXVRKzZpjuxTxuLL5hNP4VrjqmHLSkfuzQ0Bk8HNOV+fgBqDKODBN YOz7JBj2GRdG8wbyZSwyx0PqVBkZJGMPs8Ty17CzevuhTzwDsHwgztxNuGZIhBKlCz4Y d1fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=44vjlrhcAqVkUEK0qSVPAI0qz3c0oR69g1CT4yXLODk=; b=CmkrxNDBIqc2ClPc6yX0mYCWM7EF9zDGdJnQ1NpyPyWwASpDIy9roJUoW8VGqWcxJp W/vqp6KaE+C5i6juCpLX8boTodCBoJ3TjQaDI7Ltuq5NQf7Kbt6zKejOs4BoUU7L9/33 ykzwXZ9I55vqr6aVWVrzlEWB3MWl/vik/C2J1xatlpahMPu0OfB2dhlAYyAEDeqNyUXM 2K3PJspkscB0UlTXJHRWFCbE3td8WreK5Mwt5lSI2DcQw8Is+ft0U0Gg79ybDzyFhS7O BNdCtf8kJbVB878ey333QhJlAmAx0RZtjOyalGtvLwtIRwKMRMv3UsqVXhwP0Qn79yda wnYg== X-Gm-Message-State: APjAAAXJY8BszYE9cBDDt3i8q2m5Pbmoj7eksEJpXZfWNnm7rIk5X4wj VfQz+IpRNh6vBgtMDgXm01saOZG2ZnY= X-Google-Smtp-Source: APXvYqz3mBMiDGFjNTjc11Zx+ZqWkIoqVKj1afWLePMbJ/izkRMkgCDLpCPDZcI3iKdKSfTa+ynj9Q== X-Received: by 2002:a1c:9e4c:: with SMTP id h73mr134022wme.177.1578418756742; Tue, 07 Jan 2020 09:39:16 -0800 (PST) Received: from localhost.localdomain (38.163.200.146.dyn.plus.net. [146.200.163.38]) by smtp.gmail.com with ESMTPSA id u18sm648235wrt.26.2020.01.07.09.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 09:39:16 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Tue, 7 Jan 2020 17:39:01 +0000 Message-Id: <20200107173902.13768-2-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200107173902.13768-1-liuwe@microsoft.com> References: <20200107173902.13768-1-liuwe@microsoft.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 1/2] x86/hyperv: drop usage of GENMASK_ULL from hyperv-tlfs.h X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , Wei Liu , Paul Durrant , Andrew Cooper , Michael Kelley , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" I'm told that GENMASK_ULL shouldn't be used outside of Arm code in its current form. Requested-by: Jan Beulich Signed-off-by: Wei Liu Acked-by: Jan Beulich --- xen/include/asm-x86/guest/hyperv-tlfs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/include/asm-x86/guest/hyperv-tlfs.h b/xen/include/asm-x86/guest/hyperv-tlfs.h index 5b43f99de8..e4183c802c 100644 --- a/xen/include/asm-x86/guest/hyperv-tlfs.h +++ b/xen/include/asm-x86/guest/hyperv-tlfs.h @@ -415,13 +415,13 @@ enum HV_GENERIC_SET_FORMAT { HV_GENERIC_SET_ALL, }; -#define HV_HYPERCALL_RESULT_MASK GENMASK_ULL(15, 0) +#define HV_HYPERCALL_RESULT_MASK 0xffff /* GENMASK_ULL(15, 0) */ #define HV_HYPERCALL_FAST_BIT BIT(16, UL) #define HV_HYPERCALL_VARHEAD_OFFSET 17 #define HV_HYPERCALL_REP_COMP_OFFSET 32 -#define HV_HYPERCALL_REP_COMP_MASK GENMASK_ULL(43, 32) +#define HV_HYPERCALL_REP_COMP_MASK 0xfff00000000 /* GENMASK_ULL(43, 32) */ #define HV_HYPERCALL_REP_START_OFFSET 48 -#define HV_HYPERCALL_REP_START_MASK GENMASK_ULL(59, 48) +#define HV_HYPERCALL_REP_START_MASK 0xfff000000000000 /* GENMASK_ULL(59, 48) */ /* hypercall status code */ #define HV_STATUS_SUCCESS 0