Re: [PATCH v5 20/21] KVM: Allow for different capacities in kvm_mmu_memory_cache structs

2022-05-15 Thread Anup Patel
On Sat, May 14, 2022 at 1:59 AM David Matlack wrote: > > Allow the capacity of the kvm_mmu_memory_cache struct to be chosen at > declaration time rather than being fixed for all declarations. This will > be used in a follow-up commit to declare an cache in x86 with a capacity > of 512+ objects

Re: [PATCH v5 20/21] KVM: Allow for different capacities in kvm_mmu_memory_cache structs

2022-05-15 Thread Marc Zyngier
On Fri, 13 May 2022 21:28:18 +0100, David Matlack wrote: > > Allow the capacity of the kvm_mmu_memory_cache struct to be chosen at > declaration time rather than being fixed for all declarations. This will > be used in a follow-up commit to declare an cache in x86 with a capacity > of 512+

Re: [PATCH] KVM: arm64: Don't hypercall before EL2 init

2022-05-15 Thread Marc Zyngier
On Fri, 13 May 2022 10:26:07 +0100, Quentin Perret wrote: > > Will reported the following splat when running with Protected KVM > enabled: > > [2.427181] [ cut here ] > [2.427668] WARNING: CPU: 3 PID: 1 at arch/arm64/kvm/mmu.c:489 >

Re: [PATCH v4 0/4] KVM: arm64: Do not communicate host pmu event changes by accessing hyp data

2022-05-15 Thread Marc Zyngier
On Tue, 10 May 2022 09:57:06 +, Fuad Tabba wrote: > This series changes the way KVM communicates host pmu event changes to the > hypervisor in nvhe and protected mode. Instead of accessing hyp data directly > from the host, the data is passed to hyp via the loaded vcpu. This provides > more

Re: [PATCH] KVM: arm64: vgic-v3: List M1 Pro/Max as requiring the SEIS workaround

2022-05-15 Thread Marc Zyngier
On Sat, 14 May 2022 11:25:24 +0100, Marc Zyngier wrote: > Unsusprisingly, Apple M1 Pro/Max have the exact same defect as the > original M1 and generate random SErrors in the host when a guest > tickles the GICv3 CPU interface the wrong way. > > Add the part numbers for both the CPU types found in

Re: [PATCH] selftests: KVM: aarch64: Let hypercalls use UAPI *_BIT_COUNT

2022-05-15 Thread Marc Zyngier
On 2022-05-05 14:32, Paolo Bonzini wrote: On 5/5/22 14:04, Marc Zyngier wrote: diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h index e523bb6eac67..3cde9f958eee 100644 --- a/arch/arm64/include/uapi/asm/kvm.h +++ b/arch/arm64/include/uapi/asm/kvm.h @@ -342,6

Re: [PATCH v4 0/4] KVM: arm64: Do not communicate host pmu event changes by accessing hyp data

2022-05-15 Thread Marc Zyngier
Hi Fuad, On 2022-05-10 10:57, Fuad Tabba wrote: Hi, This series changes the way KVM communicates host pmu event changes to the hypervisor in nvhe and protected mode. Instead of accessing hyp data directly from the host, the data is passed to hyp via the loaded vcpu. This provides more

Re: [PATCH] KVM: arm64: vgic-v3: List M1 Pro/Max as requiring the SEIS workaround

2022-05-15 Thread Catalin Marinas
On Sat, May 14, 2022 at 11:25:24AM +0100, Marc Zyngier wrote: > Unsusprisingly, Apple M1 Pro/Max have the exact same defect as the > original M1 and generate random SErrors in the host when a guest > tickles the GICv3 CPU interface the wrong way. > > Add the part numbers for both the CPU types