From patchwork Tue Jan 5 15:05:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 11999191 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B403C433DB for ; Tue, 5 Jan 2021 15:06:01 +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 EDBE822B45 for ; Tue, 5 Jan 2021 15:06:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDBE822B45 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aepfle.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.62033.109551 (Exim 4.92) (envelope-from ) id 1kwnu9-000515-Uc; Tue, 05 Jan 2021 15:05:49 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 62033.109551; Tue, 05 Jan 2021 15:05:49 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kwnu9-00050y-R4; Tue, 05 Jan 2021 15:05:49 +0000 Received: by outflank-mailman (input) for mailman id 62033; Tue, 05 Jan 2021 15:05:47 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kwnu7-00050t-SG for xen-devel@lists.xenproject.org; Tue, 05 Jan 2021 15:05:47 +0000 Received: from mo4-p01-ob.smtp.rzone.de (unknown [85.215.255.50]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 4aae6f7c-46a5-46b4-9fac-63bcd04126a4; Tue, 05 Jan 2021 15:05:47 +0000 (UTC) Received: from sender by smtp.strato.de (RZmta 47.12.1 DYNA|AUTH) with ESMTPSA id h0968ex05F5c1Ws (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)) (Client did not present a certificate); Tue, 5 Jan 2021 16:05:38 +0100 (CET) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 4aae6f7c-46a5-46b4-9fac-63bcd04126a4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1609859146; s=strato-dkim-0002; d=aepfle.de; h=Message-Id:Date:Subject:Cc:To:From:From:Subject:Sender; bh=RCIeAMmsz1lC/d54ot/izHw5jg/Wf50eFkPMyZ2m3xc=; b=jOGfKHpJhOrnKcjG9gGxurs3y5PJ9nvJRBQb60JAxK7F+MK7qziTeLR/LtQJkojZ+m vBIgikAzprJYG71TffAgdeBqbDH6zUzJpt/xc2LdFP+fyGCIa+i90yMs4R0o/cq/4sby KHGVkDexVpW9PP1bXcFsv1TqmKW0seuvK1/UcprUhQJcmXrhMx1XFZ8GyOtBTX4ZRPhq VI2krlVm9j+ICzKL/4CiEjJuXgL2DropYll4vyIWmed8DWSKdOvX4uaBKo0jh79fjJ0c 8CBjFEdkuyOCgtPOsMbkwCdHjXK8pWJ4yA6O7nzOSXtUuCmC9RHvdNbQXuw7TqqFq/0u Jaug== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzBW/OdlBZQ4AHSS321Mjw==" X-RZG-CLASS-ID: mo00 From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: Olaf Hering , Ian Jackson , Wei Liu , Anthony PERARD Subject: [PATCH v1] tools: remove FOLD_CR3 from xg_save_restore.h Date: Tue, 5 Jan 2021 16:05:36 +0100 Message-Id: <20210105150536.22797-1-olaf@aepfle.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 The last user was removed with commit b15bc4345e772df92e5ffdbc4c1e9ae2a6206617 Signed-off-by: Olaf Hering --- tools/libs/guest/xg_save_restore.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/libs/guest/xg_save_restore.h b/tools/libs/guest/xg_save_restore.h index e4fe747c4e..a9c1a2dbe3 100644 --- a/tools/libs/guest/xg_save_restore.h +++ b/tools/libs/guest/xg_save_restore.h @@ -49,16 +49,6 @@ #define M2P_SIZE(_m) ROUNDUP(((_m) * sizeof(xen_pfn_t)), M2P_SHIFT) #define M2P_CHUNKS(_m) (M2P_SIZE((_m)) >> M2P_SHIFT) -#define UNFOLD_CR3(_c) \ - ((uint64_t)((dinfo->guest_width == 8) \ - ? ((_c) >> 12) \ - : (((uint32_t)(_c) >> 12) | ((uint32_t)(_c) << 20)))) - -#define FOLD_CR3(_c) \ - ((uint64_t)((dinfo->guest_width == 8) \ - ? ((uint64_t)(_c)) << 12 \ - : (((uint32_t)(_c) << 12) | ((uint32_t)(_c) >> 20)))) - #define MEMCPY_FIELD(_d, _s, _f, _w) do { \ if ((_w) == 8) \ memcpy(&(_d)->x64._f, &(_s)->x64._f,sizeof((_d)->x64._f)); \