From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [RFC Part2 PATCH v3 16/26] KVM: SVM: Add support for SEV LAUNCH_UPDATE_DATA command Date: Wed, 13 Sep 2017 23:07:34 +0200 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-Transfer-Encoding: 8bit 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 To: Brijesh Singh Return-path: Content-Disposition: inline In-Reply-To: <6f38ed16-376e-6716-981e-20bdf31c58b3@amd.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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) --