Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp722435pxb; Wed, 6 Oct 2021 14:02:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpRWR68S77Avom9XlcoVrVRuDATDpEAEKX0QfUVo5ZB95wPFQO/+LasXp8SC5RDXR8vjWo X-Received: by 2002:a17:90b:1106:: with SMTP id gi6mr1045121pjb.144.1633554174733; Wed, 06 Oct 2021 14:02:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633554174; cv=pass; d=google.com; s=arc-20160816; b=aAPfWt82+qmWj1yVT0VMCS32y/q7CJEd8aP0qEpMRokgTM9pA7ShagR5TGce+tz9Gj +5lUoSVbdeHgnbMqV5LQ8fzvzM0+C+TPNjx3Xe1w8ZgkAPkVei4FfitRTxZl6hdxOLX1 lCCdbhh0FDRrfRyZNIb4ksd1ugS5dzQ1I+yFlt35Uv54sXr4IyxwraFQv5iUrSBxOhjX ocsk0tsFZJ1x3ZKiuZzkZH6gO4HkgHBrwcNk0QslaJiQTOXGwemRDYD7rt45fmV/5WR+ 8P5x/5ALSwYW7NFKI3q4gbf2aLjWg3DNR51/frd/SoWvs32SwD4199W1Umf1GMUqD80p Y4Ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oo2vuVuBt78XL2gCB+rMeHvP5D0GQJlAQXXE/8ToVX4=; b=a3IG2PS+fBQd97+MJIg85HXztwltmwDT/lJR2rx+nA/dgSYcj3E/R800jY+lDVNC4l EPwmP5U0nqlD3wJh17nHddcb7IECAJImyBSWZZb8gdRxPdUu/8GlNpHXGN+yADwRV02T rt5LMB3Hp4blfZrR63r6pFUa3RzyS0axFQrKWoI26aRPGzquDTWGR1fJFxNmCU4qxC9B gjLcW27NllsCNpiGB4mQXu5GruMBJ0ToRbJ0Tc+/9pJyZv8dyusb5NeXV947iRtCpafd cUuVWmNk++awE9dEfPwEHJcGqgm0KKCnssuwMNbWi13KH7hP/w6bxr3zgYi++DNWqKHj Ul2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=g4fG4Awy; 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 z130si6471851pgz.341.2021.10.06.14.02.41; Wed, 06 Oct 2021 14:02:54 -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=g4fG4Awy; 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 S239547AbhJFVCP (ORCPT + 99 others); Wed, 6 Oct 2021 17:02:15 -0400 Received: from mail-dm6nam11on2082.outbound.protection.outlook.com ([40.107.223.82]:20768 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229657AbhJFVCO (ORCPT ); Wed, 6 Oct 2021 17:02:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WaYJFKCDExQsKblQmNDSOxRy5DQfpBdWeObMgwHgc55DiHMd2tZXfeerZ6okWKr8MDyseiLeaqF+zl8gDI2qbr2l3O5ABgNKLr0fGh4O1hA+VC+CfI7IRwiCiAZH+duJ+AxOcRQAtPeIMiDAuNQT9876jj6/oa2bHnwpFe9Qo3Fbmsxwm0S3hQYU1c6ha5gvg7zbTrr7PEwLA7IaOjaXaxOeMFy/Ty5WR1BPGSHvxzBod4Kh8htig7Klx2vxZaQlMEaig5oW2J8L26ook98hn97uMAJN2gNzr9NKX8DM329gnA1FMwfZOQOjVvEfWNSEi9hV+4lj3OyHVboK/HStpA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oo2vuVuBt78XL2gCB+rMeHvP5D0GQJlAQXXE/8ToVX4=; b=Fjw2oJSmNantivXXuyQ4bTkHfNTvKsDAReCrKLA5XHTTvoLfKHxk/1XHQMmLBNtU7M5C8lxeD0IPmUqi6i+M4qqiMgkSj8ypjMosKS/XJ3hVvnGmYjrti7Xh8EskG9IoAQytgBoa8cYiwGxBnBgUdOMTIBe2q3SGHVfiAYSVtUdSQHVGSq3RnYABsliN/qbINL6/Kh0NbOOwCtVZRHiOwfKYb8vpz2+SH4wcXPzboEj3Osi27UXbus2fOQ4E8zb1PU8puKPCE39WWduUuqSPp3sXer5/zhphxcLWvJemtgTPbQHshCbuRvr5UruGvyDpht9M6SxIByy/pJCr/XRtBA== 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=oo2vuVuBt78XL2gCB+rMeHvP5D0GQJlAQXXE/8ToVX4=; b=g4fG4AwyJm3278Y5UB9ygoZ+bV5A9y85LM/NxWojvIdj3w6azSrXa7Aw1m1bOqjc87ZyxPt9N4w9SJDHt0nsce4bH5twtaMy1KVHA9fMdc34SiZV0WMfG+Y1oEEJmntpdJtazpxRfhchD1iMGsXbmu5RNeyTOgEhAkg39DMdqKk= 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 CH2PR12MB4133.namprd12.prod.outlook.com (2603:10b6:610:7a::13) by CH2PR12MB3943.namprd12.prod.outlook.com (2603:10b6:610:2d::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.16; Wed, 6 Oct 2021 21:00:19 +0000 Received: from CH2PR12MB4133.namprd12.prod.outlook.com ([fe80::59b0:c983:56:ec27]) by CH2PR12MB4133.namprd12.prod.outlook.com ([fe80::59b0:c983:56:ec27%5]) with mapi id 15.20.4587.019; Wed, 6 Oct 2021 21:00:19 +0000 Date: Wed, 6 Oct 2021 15:59:54 -0500 From: Michael Roth To: linux-kselftest@vger.kernel.org Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Nathan Tempelman , Marc Orr , Steve Rutherford , Sean Christopherson , Mingwei Zhang , Brijesh Singh , Tom Lendacky , Varad Gautam , Shuah Khan , Vitaly Kuznetsov , David Woodhouse , Ricardo Koller , Jim Mattson , Wanpeng Li , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" Subject: Re: [RFC 04/16] KVM: selftests: add library for creating/interacting with SEV guests Message-ID: <20211006205954.64ot72jkcdmhptsx@amd.com> References: <20211005234459.430873-1-michael.roth@amd.com> <20211006202805.12360-1-michael.roth@amd.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211006202805.12360-1-michael.roth@amd.com> X-ClientProxiedBy: SA9PR13CA0130.namprd13.prod.outlook.com (2603:10b6:806:27::15) To CH2PR12MB4133.namprd12.prod.outlook.com (2603:10b6:610:7a::13) MIME-Version: 1.0 Received: from localhost (165.204.77.1) by SA9PR13CA0130.namprd13.prod.outlook.com (2603:10b6:806:27::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.4 via Frontend Transport; Wed, 6 Oct 2021 21:00:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a249d36-486d-475a-5095-08d9890c4dd8 X-MS-TrafficTypeDiagnostic: CH2PR12MB3943: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O63vRs/YdZISA9z0DAblLbtbE+zzjjYtj4hOanVKBTeoEVy7KFPN6Il7s4uxInqbiHSByOQ5Q1/XDQh4Z8PkCMGckR2vmAi8lxM8+uM9aSLs6qaez8IQZB7oUeC20CD2yFyOW6m/zdmCMTwhigKgllVODdfCmNbNa+zuVbMXXD7j7eHDmjr06FIfYRDoMHZ/u56rKDV8YUDnZnJLK9Wt7aRkUPnvVCQTykjhKz3LZyb/SJlMz3VtKCdGgbBkT4N36PeobjZpLKlE92QgNOWl5SRSsAynEGoGLtf5IhdVBZ7JRvBCMpIs078tRDOEGHh6s6z/owwiKWABy31nBOQf56Rg1cCbPYNi6eSKlTceYptxoGRnxCFK1p1Orz8/sv9jy49qm8usptcx1G3pNiA5W4z1unm0pgDeA3admv6AxK9hjXMPeZWtUESTicogsMtXoH8AS4+6XLH5WTzY+SJxWH5y2VEXfCj2Hqmiv2VL8YS5PzlPQg+gfXxFMnFaTOEMsrAWPf7duz+PE7GVwnMfEsynJXHDsv5WzVHisA9fUuqwy2CsxKuDyVaOlAvy3eWPjsCpKpZRgtEzeGpwhuuJ/Vx2C/wwBFL9DKncyP8xaAcpO8+ZXPSJOx1unZd16iH8C5Td9x7ET3oURJ0rPDCTAMwMyTt1GTRJSekdINLdPBX5Igxdf14bDhF50/ubZG7oXCNX+zjYk4p132S8qOrI8g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR12MB4133.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(508600001)(44832011)(66946007)(1076003)(5660300002)(66556008)(66476007)(6496006)(2906002)(54906003)(6486002)(36756003)(4744005)(6916009)(52116002)(316002)(7416002)(86362001)(8676002)(8936002)(4326008)(6666004)(2616005)(186003)(38100700002)(38350700002)(26005)(956004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3arkl/XJW3cPGzgKj06/UZawD2w1ALyapLRmvOsBR2PW0SuKVxI5wPbnixcX?= =?us-ascii?Q?hirg48cUmmKO+0A6PwVyyiE1UAXBZhAxlYfrAIx/ut11TvK+qXEW+ipSNF6O?= =?us-ascii?Q?7v8iqQcgO08f7IfjA018KA0ucuqYz4FzCpbiNuftjjpq0QO9KgXb/08mW1YL?= =?us-ascii?Q?5HIAJ5+vlnNHvzHPReKKSuQjptTtWiTFbYNOKpzlmuChwaT1MFMCyMsHUYIf?= =?us-ascii?Q?BZ4v3AYK0ZTZ7NZxgUdkp/iHn8qa5zjixtA1A6iw+ggfoKaHzn6y0s+fIZxl?= =?us-ascii?Q?9YNw8mYJa/8GD6nnUfhR1sQLGMllRKvKc/6T8PMVNMDZ+IgAoHio/P6PSJHo?= =?us-ascii?Q?CBn6IVC7MDWOMygpy6z7XPXJha1uzcmkTk5kGJxgnclGCCI7ijAclaakGVcW?= =?us-ascii?Q?muPyYwe+1FGjykoTZ7sEYnULIqNPN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Cu9fx+81t11xWYkl8qyE?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a249d36-486d-475a-5095-08d9890c4dd8 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4133.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2021 21:00:18.9784 (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: 3QYv5E0OaZEDTBp5Og/oTWrM16L9976x4iBkyLunTQncdtHzxcgNfhur5GOpast/5GzP14pq5v6c/qSTT78A+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3943 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 03:28:05PM -0500, Michael Roth wrote: > Add interfaces to allow tests to create/manage SEV guests. The > additional state associated with these guests is encapsulated in a new > struct sev_vm, which is a light wrapper around struct kvm_vm. These > VMs will use vm_set_memory_encryption() and vm_get_encrypted_phy_pages() > under the covers to configure and sync up with the core kvm_util > library on what should/shouldn't be treated as encrypted memory. > > Signed-off-by: Michael Roth Please ignore this patch, it is a dupe of 06/16. Some patches got caught in our spam filter and I messed up the numbering when resending this. Hopefully now all the patches are present.