Re: [PATCH 3/8] KVM: arm64: Refuse illegal KVM_ARM_VCPU_PMU_V3 at reset time

2020-11-26 Thread Alexandru Elisei
Hi Marc, On 11/26/20 3:25 PM, Marc Zyngier wrote: > Hi Alex, > > On 2020-11-26 14:59, Alexandru Elisei wrote: >> Hi Marc, >> >> On 11/13/20 6:25 PM, Marc Zyngier wrote: >>> We accept to configure a PMU when a vcpu is created, even if the >>> HW (or the host) doesn't support it. This results in fai

Re: [PATCH 3/8] KVM: arm64: Refuse illegal KVM_ARM_VCPU_PMU_V3 at reset time

2020-11-26 Thread Marc Zyngier
Hi Alex, On 2020-11-26 14:59, Alexandru Elisei wrote: Hi Marc, On 11/13/20 6:25 PM, Marc Zyngier wrote: We accept to configure a PMU when a vcpu is created, even if the HW (or the host) doesn't support it. This results in failures when attributes get set, which is a bit odd as we should have f

Re: [PATCH 3/8] KVM: arm64: Refuse illegal KVM_ARM_VCPU_PMU_V3 at reset time

2020-11-26 Thread Alexandru Elisei
Hi Marc, On 11/13/20 6:25 PM, Marc Zyngier wrote: > We accept to configure a PMU when a vcpu is created, even if the > HW (or the host) doesn't support it. This results in failures > when attributes get set, which is a bit odd as we should have > failed the vcpu creation the first place. > > Move

[PATCH 3/8] KVM: arm64: Refuse illegal KVM_ARM_VCPU_PMU_V3 at reset time

2020-11-13 Thread Marc Zyngier
We accept to configure a PMU when a vcpu is created, even if the HW (or the host) doesn't support it. This results in failures when attributes get set, which is a bit odd as we should have failed the vcpu creation the first place. Move the check to the point where we check the vcpu feature set, an