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

2023-05-16 Thread Richard Henderson
On 4/28/23 02:55, Cornelia Huck 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 the tags as well. Th

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

2023-05-16 Thread Peter Maydell
On Fri, 28 Apr 2023 at 10:55, Cornelia Huck 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 migr

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

2023-05-05 Thread Richard Henderson
On 5/4/23 16:01, Cornelia Huck wrote: I'm wondering whether we should block migration with MTE enabled in general... OTOH, people probably don't commonly try to migrate with tcg, unless they are testing something? Yes, savevm/loadvm is an extremely useful tcg debugging tool. r~

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

2023-05-04 Thread Cornelia Huck
On Tue, May 02 2023, Richard Henderson wrote: > On 5/2/23 10:03, Cornelia Huck wrote: >> Has anyone been able to access a real system with MTE? (All the systems >> where I had hoped that MTE would be available didn't have MTE in the end >> so far, so I'd be interested to hear if anybody else alre

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

2023-05-02 Thread Richard Henderson
On 5/2/23 10:03, Cornelia Huck wrote: Has anyone been able to access a real system with MTE? (All the systems where I had hoped that MTE would be available didn't have MTE in the end so far, so I'd be interested to hear if anybody else already got to play with one.) Honestly, I don't want to even

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

2023-05-02 Thread Juan Quintela
Cornelia Huck wrote: > On Mon, May 01 2023, Richard Henderson wrote: > >> On 4/28/23 18:50, Juan Quintela wrote: >>> Pardon my ignorance here, but to try to help with migration. How is >>> this mte tag stored? >>> - 1 array of 8bits per page of memory >>> - 1 array of 64bits per page of memory >

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

2023-05-02 Thread Cornelia Huck
On Mon, May 01 2023, Richard Henderson wrote: > On 4/28/23 18:50, Juan Quintela wrote: >> Pardon my ignorance here, but to try to help with migration. How is >> this mte tag stored? >> - 1 array of 8bits per page of memory >> - 1 array of 64bits per page of memory >> - whatever >> >> Lets asume

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

2023-05-01 Thread Richard Henderson
On 4/28/23 18:50, Juan Quintela wrote: Pardon my ignorance here, but to try to help with migration. How is this mte tag stored? - 1 array of 8bits per page of memory - 1 array of 64bits per page of memory - whatever Lets asume that it is 1 byte per page. For the explanation it don't matter, onl

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

2023-04-28 Thread Juan Quintela
Cornelia Huck 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, And I was wondering why I was cc'd in a patch that talks about arm,

[PATCH v7 1/1] arm/kvm: add support for MTE

2023-04-28 Thread Cornelia Huck
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