lkml.org 
[lkml]   [2017]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/4] Add support for AMD Core Perf Extension in guest
On Thu, Nov 16, 2017 at 11:13:47AM -0600, Natarajan, Janakarajan wrote:
> On 11/15/2017 1:07 PM, Borislav Petkov wrote:
> > On Wed, Nov 15, 2017 at 01:04:03PM -0600, Natarajan, Janakarajan wrote:
> > > So, when the amd_pmu_init is called, a query to guest_cpuid_family() gives a
> > > value of -1.
> > And that is because...? And it can be fixed to give the proper guest family I
> > presume ...?
>
> Qemu initially creates a vcpu with KVM_CREATE_VCPU which in kvm initializes
> the pmu. Later on
> the cpuid is set using KVM_SET_CPUID2 which sets all the cpuid entries in
> kvm and the pmu refresh is called.

That doesn't answer my questions above.

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
--
\
 
 \ /
  Last update: 2017-11-17 17:18    [W:0.088 / U:2.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site