Re: [PATCH] arm/kvm: add support for MTE

2024-09-11 Thread Peter Maydell
On Wed, 11 Sept 2024 at 07:50, Ganapatrao Kulkarni wrote: > > > > On 10-09-2024 05:53 pm, Peter Maydell wrote: > > On Tue, 10 Sept 2024 at 12:57, Ganapatrao Kulkarni > > wrote: > >> On 16-07-2024 09:15 pm, Peter Maydell wrote: > >>> Since Cornelia first wrote the patch this is based on, we've > >

Re: [PATCH] arm/kvm: add support for MTE

2024-09-10 Thread Ganapatrao Kulkarni
On 10-09-2024 05:53 pm, Peter Maydell wrote: On Tue, 10 Sept 2024 at 12:57, Ganapatrao Kulkarni wrote: On 16-07-2024 09:15 pm, Peter Maydell wrote: Since Cornelia first wrote the patch this is based on, we've landed gdbstub support for MTE (so gdb can find out which addresses in the memory

Re: [PATCH] arm/kvm: add support for MTE

2024-09-10 Thread Peter Maydell
On Tue, 10 Sept 2024 at 12:57, Ganapatrao Kulkarni wrote: > On 16-07-2024 09:15 pm, Peter Maydell wrote: > > Since Cornelia first wrote the patch this is based on, we've > > landed gdbstub support for MTE (so gdb can find out which > > addresses in the memory map have tags and read and write > > t

Re: [PATCH] arm/kvm: add support for MTE

2024-09-10 Thread Ganapatrao Kulkarni
Hi Peter, On 16-07-2024 09:15 pm, Peter Maydell wrote: In target/arm/cpu.c:arm_cpu_realizefn() there is this code: if (cpu_isar_feature(aa64_mte, cpu)) { /* * The architectural range of GM blocksize is 2-6, however qemu * doesn't support blocksize of 2 (see

Re: [PATCH] arm/kvm: add support for MTE

2024-08-02 Thread Cornelia Huck
On Fri, Aug 02 2024, Ganapatrao Kulkarni wrote: > Hi Peter, > > On 16-07-2024 09:15 pm, Peter Maydell wrote: >> On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni >> wrote: >>> >>> Extend the 'mte' property for the virt machine to cover KVM as >>> well. For KVM, we don't allocate tag memory, but

Re: [PATCH] arm/kvm: add support for MTE

2024-08-02 Thread Ganapatrao Kulkarni
Hi Peter, On 16-07-2024 09:15 pm, Peter Maydell wrote: On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni wrote: Extend the 'mte' property for the virt machine to cover KVM as well. For KVM, we don't allocate tag memory, but instead enable the capability. If MTE has been enabled, we need to

Re: [PATCH] arm/kvm: add support for MTE

2024-07-31 Thread Ganapatrao Kulkarni
On 29-07-2024 04:10 pm, Ganapatrao Kulkarni wrote: On 29-07-2024 03:44 pm, Alex Bennée wrote: Ganapatrao Kulkarni writes: Hi Peter, [Apologies for the delayed response] On 16-07-2024 09:15 pm, Peter Maydell wrote: On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni wrote: Extend the

Re: [PATCH] arm/kvm: add support for MTE

2024-07-29 Thread Ganapatrao Kulkarni
On 29-07-2024 03:44 pm, Alex Bennée wrote: Ganapatrao Kulkarni writes: Hi Peter, [Apologies for the delayed response] On 16-07-2024 09:15 pm, Peter Maydell wrote: On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni wrote: Extend the 'mte' property for the virt machine to cover KVM as we

Re: [PATCH] arm/kvm: add support for MTE

2024-07-29 Thread Alex Bennée
Ganapatrao Kulkarni writes: > Hi Peter, > > > [Apologies for the delayed response] > > On 16-07-2024 09:15 pm, Peter Maydell wrote: >> On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni >> wrote: >>> >>> Extend the 'mte' property for the virt machine to cover KVM as >>> well. For KVM, we don't all

Re: [PATCH] arm/kvm: add support for MTE

2024-07-29 Thread Ganapatrao Kulkarni
Hi Peter, [Apologies for the delayed response] On 16-07-2024 09:15 pm, Peter Maydell wrote: On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni wrote: Extend the 'mte' property for the virt machine to cover KVM as well. For KVM, we don't allocate tag memory, but instead enable the capability

Re: [PATCH] arm/kvm: add support for MTE

2024-07-16 Thread Peter Maydell
On Tue, 9 Jul 2024 at 07:05, Ganapatrao Kulkarni wrote: > > Extend the 'mte' property for the virt machine to cover KVM as > well. For KVM, we don't allocate tag memory, but instead enable > the capability. > > If MTE has been enabled, we need to disable migration, as we do not > yet have a way to

Re: [PATCH] arm/kvm: add support for MTE

2024-07-15 Thread Ganapatrao Kulkarni
Hi Peter/Richard, On 09-07-2024 11:34 am, Ganapatrao Kulkarni wrote: Extend the 'mte' property for the virt machine to cover KVM as well. For KVM, we don't allocate tag memory, but instead enable the capability. If MTE has been enabled, we need to disable migration, as we do not yet have a wa

Re: [PATCH] arm/kvm: add support for MTE

2024-07-11 Thread Ganapatrao Kulkarni
On 10-07-2024 09:12 pm, Cornelia Huck wrote: On Mon, Jul 08 2024, Ganapatrao Kulkarni wrote: Extend the 'mte' property for the virt machine to cover KVM as well. For KVM, we don't allocate tag memory, but instead enable the capability. If MTE has been enabled, we need to disable migration

Re: [PATCH] arm/kvm: add support for MTE

2024-07-10 Thread Cornelia Huck
On Mon, Jul 08 2024, Ganapatrao Kulkarni wrote: > Extend the 'mte' property for the virt machine to cover KVM as > well. For KVM, we don't allocate tag memory, but instead enable > the capability. > > If MTE has been enabled, we need to disable migration, as we do not > yet have a way to migrate

[PATCH] arm/kvm: add support for MTE

2024-07-09 Thread Ganapatrao Kulkarni
Extend the 'mte' property for the virt machine to cover KVM as well. For KVM, we don't allocate tag memory, but instead enable the capability. If MTE has been enabled, we need to disable migration, as we do not yet have a way to migrate the tags as well. Therefore, MTE will stay off with KVM unles