Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp875033rbd; Fri, 23 Feb 2024 06:21:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXX0aLvmXppFvz/KZ0uITpZA3rLiW0WCLrad+WUckVu61ikEZebYm51RUNYGVHgG4WWOWQEfVDq5u2VCYBOSOexYtpA1TWRfSNTUdO91A== X-Google-Smtp-Source: AGHT+IF8UdNh1/mZOPS0XnN9XSJWRCo0olZDQmBoJU8Pa3wziq+LmVl+gJSzoVncpOZxjZbESenc X-Received: by 2002:a05:6402:372:b0:565:6c62:a15c with SMTP id s18-20020a056402037200b005656c62a15cmr1246150edw.32.1708698083334; Fri, 23 Feb 2024 06:21:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708698083; cv=pass; d=google.com; s=arc-20160816; b=z5R4XO4XBGOCLbW/f1XUtWP2FojiV/F6hjutuCiEm26U0B+/fRK91ycr411SF6QtC8 M95fDBGPzdahEBT5KtzXCRAW5xix7U0zVVqB8TphAnLy6o0VCxk7EqaaM0BgAnv8OY2b GyvvZ16IM4qj8PKtsNESo55Cq8/f5ctubTvKxQj9bLEp6a5Al3FkD6mp5o0T18d2HOrT Fp/2/lKaGUTmztFu1IUgAwv8wa+4UhS3iE49Y1dOQCJ/k89XTp3dA1ZvojJYjkTFZWF3 JVppU+PwJJoB21TwFe/CTF2TePY5Z7J7UNa26cGKp5rfxH32bQO7HBv0IqbdwScqijyQ TwNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=vZuuePe5dJSpQ6kc+Papl7SiBSTZFtVsqxBtzBME+JE=; fh=snuN8lTu7CCcd4L/3/zvkp75hhbwDFXBlKsWrCpSFxM=; b=vpFpARsFQfb76NevZJutpiBOat3l1a0aRTE0l0C6nqjSq1dLxKO9cukT3tAli5UFi6 OLgiho9EjHBcOc5jPbvUHCfWbctElIs9oP9VR+algQePjmnBFEGHD+BKdp9SsUOWV0aG 3JWeZ8B1XckclYeeRYtrOn97Sg4BuqYIgmWfi8VPoLvdVb+fqMbCPwvXHJS80rzUWZor L5ERazuE/U0g6FhHFHMgDsvWcdmtdPJ0ptqMsozFzAASJkn/4HzNFKSHc226VZtsG67L 72VahSdfnQBmJ+qAWnsMAharxxtPBYYub/1iDBaay19/nAM1iyV4zPRbUlfmD073ar4X 0IUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OB3PH38m; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-78473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o9-20020a509b09000000b00564f9e0f8c4si2504643edi.474.2024.02.23.06.21.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 06:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OB3PH38m; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-78473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 147661F24840 for ; Fri, 23 Feb 2024 14:21:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AF1B823B1; Fri, 23 Feb 2024 14:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OB3PH38m" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 608AD823A1 for ; Fri, 23 Feb 2024 14:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708698036; cv=none; b=VFhho9DqLXo8QhuldV60KZXPPjBEgRiM3/LNK1cxc6lVjv4GECyOcw/P/6s4dqHAG2W+w82TS1OAMZLjDECAM8CwNSbDv9B+kTYtqxDYK2ZCq/1vcnySWH3z9s1qPXZt6WfWp7PmO96m/1lR1RdL54gHth9wSHOMNke5UELOEXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708698036; c=relaxed/simple; bh=TV2TbTF5HNR+UtY5N1ayGaJ+DSc7ezRUbJP15SLdHEs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Bt7BXhVNc3p/k6P+MPlF+WGz2Vxy0G+MKgB2T/0BokIHiczQDlzjh1SzzknMeTvYo50Ebyl66LGpTSHlgV+hRwBhi1F+Sf2Ikp9bNaMgMnvQTSGoe0feWipdwjn693U43b1irnqJZahQ61Lf36iYz3FUkE1WTRkKcnu7Y0iHSv4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=OB3PH38m; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-607cd6c11d7so14918317b3.0 for ; Fri, 23 Feb 2024 06:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708698034; x=1709302834; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=vZuuePe5dJSpQ6kc+Papl7SiBSTZFtVsqxBtzBME+JE=; b=OB3PH38ms84+EJDNBwr36sET2bW4ceLtNv9nCdqb2omIt12D/4M2vxSQUpi6Fboxfu Fafz0Jgyg9syPxARJyz/IoaAxtU+dxFPf9R/Wgd3d4EwksPRd+KmY4w7BvWoo4+YST28 D4qNK5TMTUKXGCdnd4MShH3QYtooc4dE2PM9rsztuPgN/oFU99eDdE+kMnVipW0bsZk8 d+uDkZC/AjdnLADO/Nk6m55Bu9LuhyjeAcXPDWD9K8p2haVOjof67W5PrEJXJiVLlnEJ 58US+g4X56tgPFIoY2r5LhCoOampJGEvjObRdmYeH0gWupLYnMF1MCEJIfiXlNRYEk// lmlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708698034; x=1709302834; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vZuuePe5dJSpQ6kc+Papl7SiBSTZFtVsqxBtzBME+JE=; b=j447cVQ8zq+N+7HMZfn+rkVNSpy8cCvVVzCe9Pr1sFtmEaHhsmOFYKtXBJs5nZJuKs L5ItYUc54YAhlTy3CpvbZeTOg89guKRGm1ZSMZVQTbb2LH5rSCI8NtkbzN1qTqTEKvmN uUIxoqYRj6DjBRj6fVVD0DUAELZYbefNKe8xTpFWpuIrJ5wdpEKw/2L3hO7QhGhGn91/ mis/eRixcdK1Dv50pujEpnYO48ufxVoAn6BBz8x2lKCuT8FrSI8GKKlJSHzE4bXVy1hw iQ4wg3IEac6jWsrWdQ8YK5k8cKRkTcXKQk23HdgpiwX6TWGwMCOdZ8mWIW3Wa0DSVBcG cvmA== X-Gm-Message-State: AOJu0Yz2JvuzQLZh9MOp+C4gj7yLbpnpdxP/RVbbmMt5lHVzDauMgwrt Xm0zcNwmoy2q+d+A+evnbpj74dZRVf9W0BvVhfVrGW4OVFwa8iDNPJDMEGhg+czki6cjlyC9698 rWw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a0d:d7d4:0:b0:608:788f:8cfa with SMTP id z203-20020a0dd7d4000000b00608788f8cfamr361155ywd.1.1708698034257; Fri, 23 Feb 2024 06:20:34 -0800 (PST) Date: Fri, 23 Feb 2024 06:20:32 -0800 In-Reply-To: <20240223104009.632194-2-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240223104009.632194-1-pbonzini@redhat.com> <20240223104009.632194-2-pbonzini@redhat.com> Message-ID: Subject: Re: [PATCH v2 01/11] KVM: SEV: fix compat ABI for KVM_MEMORY_ENCRYPT_OP From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, michael.roth@amd.com, aik@amd.com Content-Type: text/plain; charset="us-ascii" On Fri, Feb 23, 2024, Paolo Bonzini wrote: > The data structs for KVM_MEMORY_ENCRYPT_OP have different sizes for 32- and 64-bit > kernels, but they do not make any attempt to convert from one ABI to the other. > Fix this by adding the appropriate padding. Maybe call out that SEV+ is 64-bit only, so this doesn't matter in practice? Or does this affect .compat_ioctl()? > No functional change intended for 64-bit userspace. > > Signed-off-by: Paolo Bonzini > Message-Id: <20240209183743.22030-2-pbonzini@redhat.com> > Reviewed-by: Michael Roth > Signed-off-by: Paolo Bonzini Heh, you've double-stamped several of the patches in this series. Reviewed-by: Sean Christopherson