Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp962020pxb; Fri, 13 Aug 2021 10:07:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyfU9RthOBuqFsN50tLQHwlUae2mi8wj/n0Ug1NJxKU6/FYdEghFzJkXBxYs8zwkiQ9bsx X-Received: by 2002:a05:6e02:194c:: with SMTP id x12mr2562056ilu.155.1628874465472; Fri, 13 Aug 2021 10:07:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628874465; cv=pass; d=google.com; s=arc-20160816; b=oVf8xFyIFdX4HOVPPSGn3HwKzZo625+gS1Wus8AFtNhAWMQ30+IdFyohKFdfX9rphi H8Q2nQ/+YsD/rW5RhZMwqBy72Rf1h2/6Yblk8T7SM8/i2EfZGGxTWl1oejof4PJ+y0PS jPf1zM4z4PGthk9bqEULk+xdG712JxzZbFlYsXgH9xCvvSd34rL2vAXPa9LXkDx/v0cK UykzAN9SvAwOJffI2fGp2ZhLORYb5k27Vyvn/vItpdgrJ/0wd7hCmmDBipv8TLFSdoKJ 4AZF1Ux9+BMpxQmSQfq4ePiN+oipSw+6hOEXAdRrFU4N3cy6/tO7IsUcLqjsksC+NBxE SSeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PsmJ+lrGUjWxw5OB9HQtUyacIoyhf/JdHwzsAlQqhUg=; b=GhvKMnhrVKDe2ofjZzj24Tpap5d9kT4TA0MAXflP0H53qMRpdhPRZZ5EFcBl9gsPYh cHufXSsnbygLnbJrLIFVBwVr9zi+yX1YMdUwdJKeKz7zFAMy9+gJJZGL1vnt1/gdWkJP ZoSDXdUEybI72qvIu9GElqIbaeO1wcaaayzotNyk8kjvxf1ziqrF6tpm2aCHS0CWCwRO LiGi+BE+lLIxVjqLymXgOAKKwav2GC9+vRy6GCN4bJjZWFFZuUNX91ZZuuyotFp47e9G pBQ9m7t+qZHRQ/q/wmnDiK3TUdxutVuRB///bSdn0rlpT4QBSIMnIN3ktGOYw1g3tFaf eFbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=3AaBXuY0; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si1310559ilv.82.2021.08.13.10.07.33; Fri, 13 Aug 2021 10:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=3AaBXuY0; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233897AbhHMRCN (ORCPT + 99 others); Fri, 13 Aug 2021 13:02:13 -0400 Received: from mail-bn8nam12on2089.outbound.protection.outlook.com ([40.107.237.89]:46753 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233693AbhHMRBy (ORCPT ); Fri, 13 Aug 2021 13:01:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NgPglQ3hh8QXHsCq07WqlCvEBYspDRuTjNvxA7r605JlEfSKClcXnWTfb2KOQLypPsBZflBJ0ZEHNCzErIXg+/zeEQ/gM5d/FXumaPtOxeZPbRhOpOlWGStI1rhEgPXgY+a3tPiQ9Tbybsc75kvOY3PiExZXviJGJ72qiKVzWCIQupQYz1+Ws1VSy3h0zSL7FkxS76laYnAxwdPcXf3bmEUE3YCH/DxMchhgvNTa9BSRLaGgBtgu+usUepSsDlIqAWauXrf6GaB/tH78ovk7+T0RgNZx2flP1ASolbxuJ7XsGTw+EyOcyCpi9ZnKhZ6fdMEVxOB2l0XlkW7tMVLFkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PsmJ+lrGUjWxw5OB9HQtUyacIoyhf/JdHwzsAlQqhUg=; b=e1+j+CYtqdl80sjGFVhXbkRRvbxRJa/ME10ntXCmtNA7kMxwCKboKCOrmMzWEikTXrbJp4vUYFQjMafP58laQAKeo3HN2qCRxNjVMKReoS65L4XxfFOVozIsSzPFWrlgkTKw4t8lsgI3oLqUD+tf0hbevywF+hF4qweqmyTqbPIJFxPTT20W7pnLOPkPm7aXCnzox1cvlXK+BF30xi2+ALhKm83+xkPZXIKN/nbOuuSYgObYJcV6hkmIWJ+TC8Bk0QfCYIapJ+xz3nLAPuHYfE3yp7ps3VUD/iorhD863qJKdzOQqJwceFrTU5va1Y0ci35JTAqjHjDa0Qj/qEJsow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PsmJ+lrGUjWxw5OB9HQtUyacIoyhf/JdHwzsAlQqhUg=; b=3AaBXuY0j4UKVFy64KSfAHh6ST3vBAtbIXsQh71TnJS4XSzO6owU4oj85hyM3BiqeANzQaDqHPN9w2MmoGMFBL6FZnIvTLXsjO2AzUPDeFteM/pwKNq9dMp9R+TioNE7TG6oB/1ZDC8EQKsh4+TKFchDhA46ze0m8OVAW0Wzwo4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) by DM4PR12MB5247.namprd12.prod.outlook.com (2603:10b6:5:39b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Fri, 13 Aug 2021 17:01:13 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::d560:d21:cd59:9418]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::d560:d21:cd59:9418%6]) with mapi id 15.20.4415.019; Fri, 13 Aug 2021 17:01:13 +0000 From: Tom Lendacky To: linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-graphics-maintainer@vmware.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org Cc: Borislav Petkov , Brijesh Singh , Joerg Roedel , Andi Kleen , Sathyanarayanan Kuppuswamy , Tianyu Lan , Thomas Gleixner , Ingo Molnar , Joerg Roedel Subject: [PATCH v2 10/12] x86/sev: Remove the now unused mem_encrypt_active() function Date: Fri, 13 Aug 2021 11:59:29 -0500 Message-Id: <974f50588528f046b98963f6978a13ba4d98b157.1628873970.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA9PR13CA0117.namprd13.prod.outlook.com (2603:10b6:806:24::32) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by SA9PR13CA0117.namprd13.prod.outlook.com (2603:10b6:806:24::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.11 via Frontend Transport; Fri, 13 Aug 2021 17:01:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 188bd990-3eab-428e-6915-08d95e7bf50c X-MS-TrafficTypeDiagnostic: DM4PR12MB5247: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:901; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CyvY0ibNbFHz5Bw8+mMlMbt8HDez/UJoJxV3Opp8hVRJHuKr6wa7/YTkvnHnZz6kpwO0Q9l5HWunw3gImZkXWWt5TciZH0l8G5z51YAh9r8JKcXMalg8zprXwXgHg/6z/ACNuwXCodXekY2qX5/a3wav9l70PYO+PVcFW4zZGUaNBXRFRC5KDRtN3PXpF6rRZSgjPPrAs9/2ZtB/GuXpvSt0hfYJxxUADpfU6K60jr36OYbYOmVgnquoLjGiZoXY7QF1TlkVvxKOalGcd/Xph/019ZcVl+ZyskmO99hIYpef7f9fX6B6L89p2CotXITSM43KP0EW+h8lC4j6iu49nr3oqPcGYwgfh94InMcRJh+CYdwfykVuhtcpaUtqGa8/o7kmaeFBIus7CaDrVoVHnvVlMhMbaMQS129Osgy3v4kyeKYMJ9A2ziLwRuMDbVgeLzK1d+S9IZRcvSl6VaTgirJKRT8H4PZAf1m0xJXgfOM4VLTVwsQrOtVoSzBY+yhAzq6HH9bM0Fty9EiKJggtxGDxVBzxIPTpUDjwHyK1PfIlKw5Ma2qd2D+b2S/KegdvihARUpJw9NQZICvmKcD053dBEggbRNBJ0WIYZNghdIRr0xQAGcPFk9ATn4hoqndTbqg6TgBv2ryzgRFpDYrn0/rYERwKil1dxRCfLzYg2FSQ9i75gPGzfjGnHdHOlwnKBf36e7DmSg8OcdUtFQiUPw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5229.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(366004)(39860400002)(136003)(376002)(396003)(186003)(956004)(83380400001)(4744005)(2616005)(86362001)(921005)(2906002)(66476007)(5660300002)(7696005)(6486002)(478600001)(8676002)(8936002)(66946007)(7416002)(4326008)(52116002)(66556008)(54906003)(316002)(38350700002)(36756003)(6666004)(26005)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/kIBO3AdsHeL5PmWHLKHGIlWc4XMAXAaqUD28ol4+cj9slrT8RrWdPYagro4?= =?us-ascii?Q?mKZ5Is3Ov4P2nGQnhqBTmI33LUy4nHsN17/9di401gEx8zcnBgZ/zRW2m5U3?= =?us-ascii?Q?IdHLDpxF52PKUAHQpTAPvZgq3NqkQ4djT3BuX3cbdvLH/w5mDuA/SqgGD31X?= =?us-ascii?Q?tSZ31U8rB7BSv0c8hSK/GaUvegdPV+pkXFgjc/MrRjOC/aPHoesVFF0OmtZn?= =?us-ascii?Q?+NgC2JS2lN9SsiYcBqyB5gxMxURL4rp3xboJ9XoPrrzKhvYX61O1CuXUbllb?= =?us-ascii?Q?MUJQJHDS8p2d9F7QRNEndT47eGfZgwLRapXTShmcDy2f2A103KFFdZDsCgI2?= =?us-ascii?Q?T2QE9yevNcgg9WbkK9Dh7yb2nC0c/r6MULE1uK8S6cz2E/eNfIToT/rJa80e?= =?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9j4jia4DKTsn3MMQ41XKSTNR9b/h/?= =?us-ascii?Q?d8sI5uHG0uhRV9m9MQGkhV4J?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 188bd990-3eab-428e-6915-08d95e7bf50c X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2021 17:01:13.6319 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PTzgG9RxmIifR+f4OJlJeU+tWLiwP7ME3scsXw9ZyFKn+HbF1xNxXM8CnfIyE/OwbbbtUxCiEirtYUwpFyeApg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5247 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mem_encrypt_active() function has been replaced by prot_guest_has(), so remove the implementation. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Reviewed-by: Joerg Roedel Signed-off-by: Tom Lendacky --- arch/x86/include/asm/mem_encrypt.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/include/asm/mem_encrypt.h b/arch/x86/include/asm/mem_encrypt.h index 797146e0cd6b..94c089e9ea69 100644 --- a/arch/x86/include/asm/mem_encrypt.h +++ b/arch/x86/include/asm/mem_encrypt.h @@ -97,11 +97,6 @@ static inline void mem_encrypt_free_decrypted_mem(void) { } extern char __start_bss_decrypted[], __end_bss_decrypted[], __start_bss_decrypted_unused[]; -static inline bool mem_encrypt_active(void) -{ - return sme_me_mask; -} - static inline u64 sme_get_me_mask(void) { return sme_me_mask; -- 2.32.0