RE: [PATCH] i386: Disable BTS and PEBS

2022-08-18 Thread Duan, Zhenzhong
>-Original Message- >From: Paolo Bonzini On Behalf Of Paolo Bonzini >Sent: Wednesday, July 20, 2022 2:19 AM >To: Christopherson,, Sean >Cc: Duan, Zhenzhong ; qemu- >de...@nongnu.org; mtosa...@redhat.com; lik...@tencent.com; Ma, >XiangfeiX >Subject: Re: [

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-20 Thread Like Xu
On 20/7/2022 2:53 am, Sean Christopherson wrote: On Tue, Jul 19, 2022, Paolo Bonzini wrote: On 7/18/22 22:12, Sean Christopherson wrote: On Mon, Jul 18, 2022, Paolo Bonzini wrote: This needs to be fixed in the kernel because old QEMU/new KVM is supported. I can't object to adding a quirk

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-20 Thread Sean Christopherson
On Wed, Jul 20, 2022, Duan, Zhenzhong wrote: > >On Tue, Jul 19, 2022, Paolo Bonzini wrote: > >> On 7/18/22 22:12, Sean Christopherson wrote: > >> > On Mon, Jul 18, 2022, Paolo Bonzini wrote: > >> > > This needs to be fixed in the kernel because old QEMU/new KVM is > >> > > supported. > >> > > >>

RE: [PATCH] i386: Disable BTS and PEBS

2022-07-19 Thread Duan, Zhenzhong
>-Original Message- >From: Sean Christopherson >Sent: Wednesday, July 20, 2022 2:53 AM >To: Paolo Bonzini >Cc: Duan, Zhenzhong ; qemu- >de...@nongnu.org; mtosa...@redhat.com; lik...@tencent.com; Ma, >XiangfeiX >Subject: Re: [PATCH] i386: Disable BTS and PEBS

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-19 Thread Sean Christopherson
On Tue, Jul 19, 2022, Paolo Bonzini wrote: > On 7/18/22 22:12, Sean Christopherson wrote: > > On Mon, Jul 18, 2022, Paolo Bonzini wrote: > > > This needs to be fixed in the kernel because old QEMU/new KVM is > > > supported. > > > > I can't object to adding a quirk for this since KVM is breaking

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-19 Thread Paolo Bonzini
On 7/18/22 22:12, Sean Christopherson wrote: On Mon, Jul 18, 2022, Paolo Bonzini wrote: This needs to be fixed in the kernel because old QEMU/new KVM is supported. I can't object to adding a quirk for this since KVM is breaking userspace, but on the KVM side we really need to stop

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-18 Thread Sean Christopherson
On Mon, Jul 18, 2022, Paolo Bonzini wrote: > This needs to be fixed in the kernel because old QEMU/new KVM is supported. I can't object to adding a quirk for this since KVM is breaking userspace, but on the KVM side we really need to stop "sanitizing" userspace inputs unless it puts the host at

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-18 Thread Paolo Bonzini
On 7/18/22 05:22, Zhenzhong Duan wrote: Since below KVM commit, KVM hided BTS as it's not supported yet. b9181c8ef356 ("KVM: x86/pmu: Avoid exposing Intel BTS feature") After below KVM commit, it gave control of MSR_IA32_MISC_ENABLES to userspace. 9fc222967a39 ("KVM: x86: Give host userspace

RE: [PATCH] i386: Disable BTS and PEBS

2022-07-18 Thread Duan, Zhenzhong
>-Original Message- >From: Like Xu >Sent: Monday, July 18, 2022 11:57 AM >To: Duan, Zhenzhong >Cc: pbonz...@redhat.com; mtosa...@redhat.com; Christopherson,, Sean >; Ma, XiangfeiX ; qemu- >de...@nongnu.org >Subject: Re: [PATCH] i386: Disable BTS and PEBS

Re: [PATCH] i386: Disable BTS and PEBS

2022-07-17 Thread Like Xu
On 18/7/2022 11:22 am, Zhenzhong Duan wrote: Since below KVM commit, KVM hided BTS as it's not supported yet. b9181c8ef356 ("KVM: x86/pmu: Avoid exposing Intel BTS feature") After below KVM commit, it gave control of MSR_IA32_MISC_ENABLES to userspace. 9fc222967a39 ("KVM: x86: Give host