Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp654361pxb; Wed, 29 Sep 2021 07:05:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNySFe4g5CjTUAoKN7hmeGYScoQg0rIi0aHXYMLx3Tn5IyY1Q53eQbi+UI9SoqyaaQlkFW X-Received: by 2002:a17:90a:fe8b:: with SMTP id co11mr6672826pjb.65.1632924350675; Wed, 29 Sep 2021 07:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632924350; cv=none; d=google.com; s=arc-20160816; b=qa9mBGAhadKiJWdDNFxAPwx2EUXArmZkKY8sT/Z+7Q1LQU4/wovjZtX9id7nwVGYTp bz76Ix1mSlB1FQ1wpZIAcIttE19XDza9j+SH/8gFXG8PWeSbN/4+GfeYEcMmurf50pth fKoCfZpUNyIzJOqn2cw3fZRNzqEpCuApgwlOqzDqa6m30uwfFL2a9HvUJrv4dS634Qjs 5rJHDCtb8ZbGQSslVMmOUJqflvclD7YYtJHyel2SXxApCvvWA9mos+6EdoYjKqZzVp/b gbqZL5WWh779TPktaOU/GAsQbKIE1lfOKF1eAiRJIR6dRsZoOCZcubB/wQjDaAKRd1H6 baZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XMANUNGHYgRrWwPQI7d16Ade76A3xSFS206v9+9viU4=; b=rjHLDiVPi7gXXdusapqBP5zvh8dG7sLvcr9ozxoW8dPlk0Phf4sor7l+yucu7PbsDV fC6mPRfGJv/cYzmZmI9dRDrnS9NdZWg7ivaJT7Ffq64u+DMpXTuqXpcbIW+dNNOFjHmg ry2FDrTtFUMrNETXgNOv3Ee6wx/Yj3q4ZRorig0RjevNVndmkg/d1auLcL0JZ11hmZ1F LLWMWrPhYJj7F7GHIWLmvFN0EhqzN5z3kPMoV1x0zawUqs6EG9NdBKHRCuqJOxJs8kfG 9CSjGTxVVKsGOM+K5NnjgQKkZk7B0c64ND3Z6PzIsL2UtL4Jwwv9+XauLqv+KYiiO0fg yP7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TbuNVJDT; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si3038606pfq.70.2021.09.29.07.05.36; Wed, 29 Sep 2021 07:05:50 -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=@alien8.de header.s=dkim header.b=TbuNVJDT; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343491AbhI2Lqc (ORCPT + 99 others); Wed, 29 Sep 2021 07:46:32 -0400 Received: from mail.skyhub.de ([5.9.137.197]:55258 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245757AbhI2Lqa (ORCPT ); Wed, 29 Sep 2021 07:46:30 -0400 Received: from zn.tnic (p200300ec2f0bd1007899710aba6f35e5.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:d100:7899:710a:ba6f:35e5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 630A51EC0570; Wed, 29 Sep 2021 13:44:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1632915888; 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=XMANUNGHYgRrWwPQI7d16Ade76A3xSFS206v9+9viU4=; b=TbuNVJDTbHvOoTmnON+IM24sfuJ09eDKxM8LXoSRJOZ6y5xb7M3N4euQcQGsbgnxZhbCxg Rnnwxtbyjx2qbCMyCBQOxylLrAmrwzPT92WTcJxaByXoasN8BzMgHbc65+njIxuA1Jz4qh dofqPWEeZNw0CHwGo7PyhAiqGXnfBng= Date: Wed, 29 Sep 2021 13:44:48 +0200 From: Borislav Petkov To: "Kalra, Ashish" Cc: Steve Rutherford , Sean Christopherson , "pbonzini@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "joro@8bytes.org" , "Lendacky, Thomas" , "x86@kernel.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Singh, Brijesh" , "dovmurik@linux.ibm.com" , "tobin@linux.ibm.com" , "jejb@linux.ibm.com" , "dgilbert@redhat.com" Subject: Re: [PATCH v6 1/5] x86/kvm: Add AMD SEV specific Hypercall3 Message-ID: References: <20210921095838.GA17357@ashkalra_ubuntu_server> <20210922121008.GA18744@ashkalra_ubuntu_server> <2213EC9B-E3EC-4F23-BC1A-B11DF6288EE3@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2213EC9B-E3EC-4F23-BC1A-B11DF6288EE3@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 07:26:32PM +0000, Kalra, Ashish wrote: > Yes that’s what I mentioned to Boris. Right, and as far as I'm concerned, the x86 bits look ok to me and I'm fine with this going through the kvm tree. There will be a conflict with this: https://lkml.kernel.org/r/20210928191009.32551-1-bp@alien8.de resulting in: arch/x86/kernel/kvm.c: In function ‘setup_efi_kvm_sev_migration’: arch/x86/kernel/kvm.c:563:7: error: implicit declaration of function ‘sev_active’; did you mean ‘cpu_active’? [-Werror=implicit-function-declaration] 563 | if (!sev_active() || | ^~~~~~~~~~ | cpu_active cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:277: arch/x86/kernel/kvm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/Makefile.build:540: arch/x86/kernel] Error 2 make: *** [Makefile:1868: arch/x86] Error 2 make: *** Waiting for unfinished jobs.... but Paolo and I will figure out what to do - I'll likely have a separate branch out which he can merge and that sev_active() will need to be converted to if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) which is trivial. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette