Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-15 Thread Madhavan Srinivasan
On 7/14/21 6:09 PM, Nicholas Piggin wrote: Excerpts from Nicholas Piggin's message of July 12, 2021 12:41 pm: Excerpts from Athira Rajeev's message of July 10, 2021 12:50 pm: On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: KVM PMU management code looks for particular frozen/disabled

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-14 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of July 12, 2021 12:41 pm: > Excerpts from Athira Rajeev's message of July 10, 2021 12:50 pm: >> >> >>> On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: >>> >>> KVM PMU management code looks for particular frozen/disabled bits in >>> the PMU registers

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-12 Thread Athira Rajeev
On 12-Jul-2021, at 8:11 AM, Nicholas Piggin wrote:Excerpts from Athira Rajeev's message of July 10, 2021 12:50 pm:On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote:KVM PMU management code looks for particular frozen/disabled bits inthe PMU registers so it knows whether it must clear them when

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-11 Thread Madhavan Srinivasan
On 7/2/21 5:57 AM, Nicholas Piggin wrote: Excerpts from Madhavan Srinivasan's message of July 1, 2021 11:17 pm: On 6/22/21 4:27 PM, Nicholas Piggin wrote: KVM PMU management code looks for particular frozen/disabled bits in the PMU registers so it knows whether it must clear them when coming

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-11 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 10, 2021 12:50 pm: > > >> On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: >> >> KVM PMU management code looks for particular frozen/disabled bits in >> the PMU registers so it knows whether it must clear them when coming >> out of a guest or

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-09 Thread Athira Rajeev
> On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: > > KVM PMU management code looks for particular frozen/disabled bits in > the PMU registers so it knows whether it must clear them when coming > out of a guest or not. Setting this up helps KVM make these optimisations > without getting

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-08 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of July 2, 2021 10:27 am: > Excerpts from Madhavan Srinivasan's message of July 1, 2021 11:17 pm: >> >> On 6/22/21 4:27 PM, Nicholas Piggin wrote: >>> KVM PMU management code looks for particular frozen/disabled bits in >>> the PMU registers so it knows

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-01 Thread Nicholas Piggin
Excerpts from Madhavan Srinivasan's message of July 1, 2021 11:17 pm: > > On 6/22/21 4:27 PM, Nicholas Piggin wrote: >> KVM PMU management code looks for particular frozen/disabled bits in >> the PMU registers so it knows whether it must clear them when coming >> out of a guest or not. Setting

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-01 Thread Madhavan Srinivasan
On 6/22/21 4:27 PM, Nicholas Piggin wrote: KVM PMU management code looks for particular frozen/disabled bits in the PMU registers so it knows whether it must clear them when coming out of a guest or not. Setting this up helps KVM make these optimisations without getting confused. Longer term

[RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-06-22 Thread Nicholas Piggin
KVM PMU management code looks for particular frozen/disabled bits in the PMU registers so it knows whether it must clear them when coming out of a guest or not. Setting this up helps KVM make these optimisations without getting confused. Longer term the better approach might be to move guest/host