Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445AbdIMVHp (ORCPT ); Wed, 13 Sep 2017 17:07:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:57239 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751117AbdIMVHm (ORCPT ); Wed, 13 Sep 2017 17:07:42 -0400 Date: Wed, 13 Sep 2017 23:07:34 +0200 From: Borislav Petkov To: Brijesh Singh Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, Thomas Gleixner , Joerg Roedel , "Michael S . Tsirkin" , Paolo Bonzini , =?utf-8?B?XCJSYWRpbSBLcsSNbcOhxZlcIg==?= , Tom Lendacky Subject: Re: [RFC Part2 PATCH v3 16/26] KVM: SVM: Add support for SEV LAUNCH_UPDATE_DATA command Message-ID: <20170913210734.grfwb26rwudgbm2s@pd.tnic> References: <20170724200303.12197-1-brijesh.singh@amd.com> <20170724200303.12197-17-brijesh.singh@amd.com> <20170913175537.wlfk3tmipx3xtbun@pd.tnic> <6f38ed16-376e-6716-981e-20bdf31c58b3@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6f38ed16-376e-6716-981e-20bdf31c58b3@amd.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 812 Lines: 19 On Wed, Sep 13, 2017 at 02:45:37PM -0500, Brijesh Singh wrote: > Actually I don't know what should be sane upper bound in this case -- > typically we encrypt the guest BIOS using LAUNCH_UPDATE_DATA command. > I have heard that some user may want to create a pre-encrypted image > (which may contains guest BIOS + kernel + initrd) -- this can be huge. > > For SEV guest, we have been needing to pin the memory hence how about if > we limit the number of pages to pin with rlimit ? The rlimit check can > also include the guest RAM pinning. rlimit sounds like a sensible thing to do. It would be interesting to hear what the general policy is wrt guest sizes that KVM folk do ... -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --