From: Paolo Bonzini Subject: Re: [PATCH v6 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active Date: Tue, 11 Sep 2018 11:26:21 +0200 Message-ID: <3b8b4c9c-b0f6-1e08-3d26-0e146cd7189e@redhat.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> <1536586152.11460.40.camel@intel.com> <097eb5f5-2cd9-8b08-32c5-d90c8e0cbb6d@amd.com> <1536593297.11460.72.camel@intel.com> <11618b8b-4d1f-9307-35f0-3c0f0fc856ca@amd.com> <20180910164851.GC20286@zn.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Tom Lendacky , Thomas Gleixner , "H. Peter Anvin" , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= To: Borislav Petkov , Brijesh Singh , Sean Christopherson Return-path: In-Reply-To: <20180910164851.GC20286@zn.tnic> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 10/09/2018 18:48, Borislav Petkov wrote: > > so *maybe* - and I pretty much have no clue about virt - but just > *maybe*, that kvmclock thing can be shared by all CPUs in a *guest* > then. As in: the guest should see stable clocks which are the same > regardless from which vCPU they're read and so on... Usually the kvmclock structs are all the same, but there is support for old machines with inconsistent TSCs (across different sockets typically). Paolo