Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp958350pxf; Thu, 8 Apr 2021 17:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnRE+MASlGPXCnA+YfLwDE1AWqTMpVp7pQkn94fnWmk+YBamCJDBs0oYq/cYeF7FU6RK85 X-Received: by 2002:a17:90a:528b:: with SMTP id w11mr11120018pjh.162.1617929441649; Thu, 08 Apr 2021 17:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617929441; cv=none; d=google.com; s=arc-20160816; b=wr6OlJ05We4DQvP0+mmlpQJiOoFCrZ3naGOIcRsUuP/6XhUxZyld5TyeeQf2crk4k8 FUie3gTpXMkAC5ObNQ/9I9vZ1lDoFBmzLVLMoWUvQ+Rcy3wpCMNV7ir8/q4Uo3ECmfD6 naRB+JKSfgmMWy2ROunA/pgSTK+R0Zr0lqpPmjDvVy0gNFQKviHINhlBTrNByKyLJaTi FyDhFDETNkaEPDaaIYh9jdCTr/PrcVkqU+YxDBALaUpNLqGtwafNA6ffifUufPhba422 Voyg7LiXRqQLr3wCc+3ghwGd7y5ETIhTujdgXQwQm3VvtFjDUzKLJEbBuFRcQTI6S04+ crWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qC3DsFQp9eza9W51XDdceHkd/83cTsDDXTbOAJ2cHK8=; b=GA8ISKqp14m92QUuhI9M5EPaNFUgFrZIguLPO7OY1qYE0v+OktXIFPRmiAv/309GgY 3lFWnbHlKSs/RaMMutBZgnSu6tUCvGwCZ0zwXMkZgzNt+bMwOf+fQ1Amgda0hnt1011J k0n/KQIR9EovkyZl4EfIKlNBWRKdd7d1WBqafALCtagAS3KTCPL/jjXuPtOASvQxVnje 1dBOBW4vN09P/cjdAh0f1axGNpircDgF3x3+QHUC9U1eLRNeWVrzLKlDP3+zfhd5IhfM bw1RN2FNMrcAPs8UEXTaLqxRscBpgW1YnhYVgmI7hRY7MKq1xzGL0w4l3VtYoqAVswWy uqmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gA6fWvlZ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si919221pfv.213.2021.04.08.17.50.28; Thu, 08 Apr 2021 17:50:41 -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=@google.com header.s=20161025 header.b=gA6fWvlZ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233118AbhDIAt5 (ORCPT + 99 others); Thu, 8 Apr 2021 20:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232996AbhDIAt4 (ORCPT ); Thu, 8 Apr 2021 20:49:56 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7D9C061761 for ; Thu, 8 Apr 2021 17:49:42 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id j26so4163634iog.13 for ; Thu, 08 Apr 2021 17:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qC3DsFQp9eza9W51XDdceHkd/83cTsDDXTbOAJ2cHK8=; b=gA6fWvlZ9g0kFHdw3sUl6sZ5HCwFuvplDoXb1X9MAxOoy2KevrNJL56W/XyAmFztfJ HwFikiUchh0N8FHDQBARJaIgVKH+mr8S/3RhQmNLYcwNtXILFpoJKLhBRZmkkJ2RPvZr PMlq78+0qgvQCq0ZrKxdpQlNzRHyVPlJYUUhCMzcQnfOcvwxkPdWl5wRTr3umy9vvNIj i6s3lUIB7JXrO50wvIkANmN0XNrgsDv0ejYn10xOZYdTwAPNhZuPovJD0SCg627z1KFF +fR5jvEq7yseIt/WYGPSFEgLVOYb04QW0XbmOiMheeRGSbGn7eX9IWtCtnTux1wsr4BT fXTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qC3DsFQp9eza9W51XDdceHkd/83cTsDDXTbOAJ2cHK8=; b=hvQRG88ove6u/Dbk3yjKDIL208NjHDXcNvq4kmi64PJm1tmUdHjjlfdmk0ERG81zod RT9LjkfuqpuAEL6lIcGW5TJNCJDpKjquDaQbKWp12sGXtu54dApCXwbrUyXxMyrZx2Dt r3MLuwhul6r5EdQgcTPMADLb4OlGCPEVc8AbOPZj7fgV9O5JRXgNYnyJSxbTzGeBoZ2B V7xsCkoTKUtWdAO74r/eANoua3z3Os0KG96eM9ItyYmj6Yt7X/NbsiMQcY/NJFZJgtv+ DAq4YgBwg2Tfw29xGDKLFp2HAiow1zPh5820kPCfEuT3h/opgFdRw08S8OUAHm1hvzXH 5q1A== X-Gm-Message-State: AOAM532Kv27Q89N82PFxVPll5eNrcwaO7i6DVPSTRflj6nWj1gxuT5Qz zfGHAxEBDDEGMUSIVE2awLU/em2a21KT8rTuircMPVboe04= X-Received: by 2002:a02:ca13:: with SMTP id i19mr11782983jak.47.1617929381986; Thu, 08 Apr 2021 17:49:41 -0700 (PDT) MIME-Version: 1.0 References: <20210402014438.1721086-1-srutherford@google.com> <18c68409-5fcf-2f2c-61f2-e8e52aab277e@amd.com> In-Reply-To: <18c68409-5fcf-2f2c-61f2-e8e52aab277e@amd.com> From: Steve Rutherford Date: Thu, 8 Apr 2021 17:49:05 -0700 Message-ID: Subject: Re: [PATCH] KVM: SVM: Add support for KVM_SEV_SEND_CANCEL command To: Brijesh Singh Cc: KVM list , LKML , Nathan Tempelman , Ashish Kalra , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 8, 2021 at 3:27 PM Brijesh Singh wrote: > > > On 4/1/21 8:44 PM, Steve Rutherford wrote: > > After completion of SEND_START, but before SEND_FINISH, the source VMM can > > issue the SEND_CANCEL command to stop a migration. This is necessary so > > that a cancelled migration can restart with a new target later. > > > > Signed-off-by: Steve Rutherford > > --- > > .../virt/kvm/amd-memory-encryption.rst | 9 +++++++ > > arch/x86/kvm/svm/sev.c | 24 +++++++++++++++++++ > > include/linux/psp-sev.h | 10 ++++++++ > > include/uapi/linux/kvm.h | 2 ++ > > 4 files changed, 45 insertions(+) > > > Can we add a new case statement in sev_cmd_buffer_len() > [drivers/crypto/ccp/sev-dev.c] for this command ? I understand that the > command just contains the handle. I have found dyndbg very helpful. If > the command is not added in the sev_cmd_buffer_len() then we don't dump > the command buffer. > > With that fixed. > > Reviewed-by: Brijesh Singh Nice catch, will follow-up shortly. Steve