[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190829212016.GV5447@tassilo.jf.intel.com>
Date: Thu, 29 Aug 2019 14:20:16 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Luwei Kang <luwei.kang@...el.com>
Cc: pbonzini@...hat.com, rkrcmar@...hat.com,
sean.j.christopherson@...el.com, vkuznets@...hat.com,
wanpengli@...cent.com, jmattson@...gle.com, joro@...tes.org,
tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, hpa@...or.com,
x86@...nel.org, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC v1 3/9] KVM: x86: Implement MSR_IA32_PEBS_ENABLE read/write
emulation
> + case MSR_IA32_PEBS_ENABLE:
> + if (pmu->pebs_enable == data)
> + return 0;
> + if (!(data & pmu->pebs_enable_mask) &&
> + (data & MSR_IA32_PEBS_OUTPUT_MASK) ==
> + MSR_IA32_PEBS_OUTPUT_PT) {
> + pebs_enable_changed(pmu, data);
> + return 0;
> + }
Need #GP for bad values
Powered by blists - more mailing lists