Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2097538pxb; Fri, 5 Mar 2021 07:15:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzV0I4yEb8a7yebC6s/KlM9SbGkQ00zdkI5ZWfav3OReLc5de2BvQJo0obH/pSnn9U7HGmw X-Received: by 2002:a17:907:766f:: with SMTP id kk15mr2689553ejc.24.1614957309348; Fri, 05 Mar 2021 07:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614957309; cv=none; d=google.com; s=arc-20160816; b=qVsFaAUl0PqoURESuqkUmNy6nmtdLIaJDA88eckvAk3Ki6V3cas0LIMMdQh1MG1gaC uexHCtCF4TGY4K5ot5PvDx5mD3F0eryIgC+zYjDMKDMGdF7dDgNPbpwDeZ36RZs2HW3z p1+dcKK9GLWZMCtvaKefuPdUkJ2LNbM3aTjK+fEtmoh6UcwjFgygpqjt+VU3hnS8+IFg +/MEGQ4VHenUKovQAG3Olvj+NoVU/zTGfxpzXwydUOD5czjFHwpXLQYYQh5PSLPDWDrL CfKxnFWrWr5JQgN8rd7aDBh5I0ZM+IcX3wMr09+p+RCOlLdQ4E+cpytlBoArLZ3wJlXP ouDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=asQEDK/IFlF1AzTuh7B6Z7PmHKHnowQYucM/TtzqZLc=; b=s5toD3U8ElDupEYMeYyvESoh/U8OcaijsCDqookV1mfFCXIdDtrZ3SVAvBfXpzA28C noblMRPhTmtfx3mFFVSvsip5Ad3zA7ZaWeEnaBF8GHlW5iHyJSFbC/YcknQKu0kB5sZd LdtMy/0icSRbqHpOVFYld4fqaZv/rP35HhOTGbasHT4WCMDMZIQvD9VZGJXcKZHGGiCC JpTJAA6eutN3K6rn7Ylyk2xOB1viuL43Ch0+ArUF+S4yeHhI3AFu7rMoRSiJRRq0ankv 1sD4hvp1nywB/AFOn0VWtGi2WpNgjMqsDsM6lQ0ivuiIFR6/SjT6SuvkWBLTYYbiRZ+z 4a7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=duOYCxHJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si1737931edd.179.2021.03.05.07.14.36; Fri, 05 Mar 2021 07:15:09 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=duOYCxHJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbhCEPNg (ORCPT + 99 others); Fri, 5 Mar 2021 10:13:36 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:47102 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbhCEPNg (ORCPT ); Fri, 5 Mar 2021 10:13:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614957215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=asQEDK/IFlF1AzTuh7B6Z7PmHKHnowQYucM/TtzqZLc=; b=duOYCxHJaWN5UetkXmSatKuTgtT26bQUNXjKJA1sSFaZKCUclpKTQVstSvou6yDllNn1I9 277+dfbUZq2d81DJAH6aT1gbDNPRnpcWzt5ziflXq8RpwW2Vdzo0XLaUge+5+IqoOuW74l e403N48Qvf9LfbqDeYM8UDI4FKmC9N4= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-548-uUd4ZzuVMtmFNIe5-QynGg-1; Fri, 05 Mar 2021 10:13:34 -0500 X-MC-Unique: uUd4ZzuVMtmFNIe5-QynGg-1 Received: by mail-wr1-f69.google.com with SMTP id e7so1187486wrw.18 for ; Fri, 05 Mar 2021 07:13:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=asQEDK/IFlF1AzTuh7B6Z7PmHKHnowQYucM/TtzqZLc=; b=GRKLq2Aji/n0cHkr0T3rYCtrH+ZKV2B81zWRSmaN1uZDi9qInAfKgjmHU4UPEjKzmV gx57JiDCbwOt6kxjSfEAxzQR2vmBsdOkryDz7NV4tjiW8RQ2qgHTM3h20NkAY+WNciTX uHKkBvkgFoIFBrN1AXjSYZ6HgjQy5lBLumbFDNwjuxaBl5GeZX946EqZl0QTw81pweYD a1OxwihVxjkmUoPJQ0skZGOln+73FPlDp9EDXWRaSfJjc/hrCWx84xH5NNyqnOgiKvQ4 11BH2ueyGb1PnuDjN/fxfy1VqEQy90EZ4XxxoE8MuYBeOY8jOB/rsIa5a9GKun6tvGo8 7Mvw== X-Gm-Message-State: AOAM533UZVbMVUYKoFq7FrJPNa/bKzGSg5vcaMR8yF9AwuUxFVHWYr7L BUxQcKOUR2OZ2AD9l3ZisGTl7OCmSw1XgAOhF80OP5Wd+K5zPwSvH0QUE0VvFscX3quCPotKbrm PLzz5IvMbVdvCdwm/WidIJhDz X-Received: by 2002:a05:6000:250:: with SMTP id m16mr10096776wrz.325.1614957213006; Fri, 05 Mar 2021 07:13:33 -0800 (PST) X-Received: by 2002:a05:6000:250:: with SMTP id m16mr10096752wrz.325.1614957212735; Fri, 05 Mar 2021 07:13:32 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id n6sm5213171wrt.1.2021.03.05.07.13.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Mar 2021 07:13:31 -0800 (PST) Subject: Re: [RFC] KVM: x86: Support KVM VMs sharing SEV context To: Ashish Kalra , Nathan Tempelman Cc: thomas.lendacky@amd.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, srutherford@google.com, seanjc@google.com, rientjes@google.com, brijesh.singh@amd.com References: <20210224085915.28751-1-natet@google.com> <20210305140409.GA2116@ashkalra_ubuntu_server> From: Paolo Bonzini Message-ID: Date: Fri, 5 Mar 2021 16:13:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210305140409.GA2116@ashkalra_ubuntu_server> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/03/21 15:04, Ashish Kalra wrote: >> + /* Mirrors of mirrors should work, but let's not get silly */ >> + if (is_mirroring_enc_context(kvm)) { >> + ret = -ENOTTY; >> + goto failed; >> + } > How will A->B->C->... type of live migration work if mirrors of > mirrors are not supported ? Each host would only run one main VM and one mirror, wouldn't it? Paolo