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

2024-09-19 Thread Cornelia Huck
On Thu, Sep 19 2024, Ganapatrao Kulkarni wrote: > I have modified as below diff to keep TCG if loop as it is and adding if > for KVM case to clear/mask the MTE bits if MTE in KVM mode is not > enabled by user command(if no mte=on). > > Is below diff makes sense? > > diff --git a/target/arm/cpu

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

2024-09-19 Thread Ganapatrao Kulkarni
On 19-09-2024 08:35 pm, Cornelia Huck wrote: On Thu, Sep 19 2024, Ganapatrao Kulkarni wrote: I have modified as below diff to keep TCG if loop as it is and adding if for KVM case to clear/mask the MTE bits if MTE in KVM mode is not enabled by user command(if no mte=on). Is below diff make

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

2024-09-19 Thread Ganapatrao Kulkarni
Hi Gustavo, On 19-09-2024 08:31 am, Gustavo Romero wrote: Hi Cornelia and Ganapatrao, On 9/17/24 11:13, Cornelia Huck wrote: On Thu, Sep 12 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 ins

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

2024-09-19 Thread Ganapatrao Kulkarni
On 19-09-2024 08:52 am, Gustavo Romero wrote: Hi Ganapatrao, On 9/12/24 06:16, 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 disabl

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

2024-09-18 Thread Gustavo Romero
Hi Ganapatrao, On 9/12/24 06:16, 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 migrat

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

2024-09-18 Thread Gustavo Romero
Hi Cornelia and Ganapatrao, On 9/17/24 11:13, Cornelia Huck wrote: On Thu, Sep 12 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

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

2024-09-17 Thread Cornelia Huck
On Thu, Sep 12 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 V2] arm/kvm: add support for MTE

2024-09-12 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