[kvm-unit-tests PATCH v2 1/2] arm/arm64: mmu: Teach virt_to_pte_phys() about block descriptors

2022-11-24 Thread Alexandru Elisei
The arm and arm64 architectures allow a virtual address to be mapped using a block descriptor (or huge page, as Linux calls it), and the function mmu_set_ranges_sect() is made available for a test to do just that. But virt_to_pte_phys() assumes that all virtual addresses are mapped with page

[kvm-unit-tests PATCH v2 0/2] arm/arm64: teach virt_to_pte_phys() about block descriptors

2022-11-24 Thread Alexandru Elisei
I was writing a quick test when I noticed that arm's implementation of __virt_to_phys(), which ends up calling virt_to_pte_phys(), doesn't handle block mappings and returns a bogus value. When fixing it I got confused about mmu_get_pte() and get_pte(), so I (hopefully) improved things by renaming

[kvm-unit-tests PATCH v2 2/2] arm/arm64: mmu: Rename mmu_get_pte() -> follow_pte()

2022-11-24 Thread Alexandru Elisei
The function get_pte() from mmu.c returns a pointer to the PTE associated with the requested virtual address, mapping the virtual address in the process if it's not already mapped. mmu_get_pte() returns a pointer to the PTE if and only if the virtual is mapped in pgtable, otherwise returns NULL.

Re: [External] Re: [v2 0/6] KVM: arm64: implement vcpu_is_preempted check

2022-11-24 Thread Usama Arif
On 18/11/2022 00:20, Marc Zyngier wrote: On Mon, 07 Nov 2022 12:00:44 +, Usama Arif wrote: On 06/11/2022 16:35, Marc Zyngier wrote: On Fri, 04 Nov 2022 06:20:59 +, Usama Arif wrote: This patchset adds support for vcpu_is_preempted in arm64, which allows the guest to check if

Re: [PATCH v5 0/8] KVM: arm64: permit MAP_SHARED mappings with MTE enabled

2022-11-24 Thread Marc Zyngier
On Fri, 04 Nov 2022 17:42:27 +, Peter Collingbourne wrote: > > On Fri, Nov 4, 2022 at 9:23 AM Marc Zyngier wrote: > > > > On Fri, 04 Nov 2022 01:10:33 +, > > Peter Collingbourne wrote: > > > > > > Hi, > > > > > > This patch series allows VMMs to use shared mappings in MTE enabled > > >

Re: [PATCH v4 13/16] KVM: arm64: PMU: Implement PMUv3p5 long counter support

2022-11-24 Thread Marc Zyngier
On Wed, 23 Nov 2022 17:11:41 +, Reiji Watanabe wrote: > > Hi Marc, > > On Wed, Nov 23, 2022 at 3:11 AM Marc Zyngier wrote: > > > > On Wed, 23 Nov 2022 05:58:17 +, > > Reiji Watanabe wrote: > > > > > > Hi Marc, > > > > > > On Sun, Nov 13, 2022 at 8:46 AM Marc Zyngier wrote: > > > > >