From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brijesh Singh Subject: Re: [PATCH v6 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active Date: Mon, 10 Sep 2018 11:14:10 -0500 Message-ID: <564fd92f-04b5-d28c-03a3-59d11ab4c6cd@amd.com> References: <1536343050-18532-1-git-send-email-brijesh.singh@amd.com> <1536343050-18532-6-git-send-email-brijesh.singh@amd.com> <20180910122727.GE21815@zn.tnic> <026d5ca5-7b77-de6c-477e-ff39f0291ac0@amd.com> <20180910155329.GB20286@zn.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: brijesh.singh@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Tom Lendacky , Thomas Gleixner , "H. Peter Anvin" , Paolo Bonzini , Sean Christopherson , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= To: Borislav Petkov Return-path: In-Reply-To: <20180910155329.GB20286@zn.tnic> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 09/10/2018 10:53 AM, Borislav Petkov wrote: > On Mon, Sep 10, 2018 at 08:15:38AM -0500, Brijesh Singh wrote: >>> Now, the real question from all this SNAFU is, why can't all those point >>> to a single struct pvclock_vsyscall_time_info and all CPUs read a single >>> thing? Why do they have to be per-CPU and thus waste so much memory? > > You forgot to answer to the real question - why do we need those things > to be perCPU and why can't we use a single instance to share with *all* > CPUs? > > Because if we can, then we're golden! > I did not forgot to answer it. Maybe Paolo or someone more knowledgeable in that area of code can comment why those are perCpu. -Brijesh