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

2023-01-26 Thread Cornelia Huck
On Thu, Jan 26 2023, Cornelia Huck wrote: > On Mon, Jan 23 2023, Eric Auger wrote: > >> Hi Connie, >> On 1/11/23 17:13, Cornelia Huck wrote: >>> if (vms->mte && (kvm_enabled() || hvf_enabled())) { >>> error_report("mach-virt: %s does not support providing " >>> -

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

2023-01-26 Thread Cornelia Huck
On Mon, Jan 23 2023, Eric Auger wrote: > Hi Connie, > On 1/11/23 17:13, Cornelia Huck wrote: >> Introduce a new cpu feature flag to control MTE support. To preserve >> backwards compatibility for tcg, MTE will continue to be enabled as >> long as tag memory has been provided. >> >> If MTE has be

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

2023-01-23 Thread Eric Auger
Hi Connie, On 1/11/23 17:13, Cornelia Huck wrote: > Introduce a new cpu feature flag to control MTE support. To preserve > backwards compatibility for tcg, MTE will continue to be enabled as > long as tag memory has been provided. > > If MTE has been enabled, we need to disable migration, as we do

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

2023-01-18 Thread Cornelia Huck
On Tue, Jan 17 2023, Richard Henderson wrote: > On 1/11/23 06:13, Cornelia Huck wrote: >> @@ -2136,7 +2136,7 @@ static void machvirt_init(MachineState *machine) >> >> if (vms->mte && (kvm_enabled() || hvf_enabled())) { >> error_report("mach-virt: %s does not support providing "

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

2023-01-17 Thread Richard Henderson
On 1/11/23 06:13, Cornelia Huck wrote: @@ -2136,7 +2136,7 @@ static void machvirt_init(MachineState *machine) if (vms->mte && (kvm_enabled() || hvf_enabled())) { error_report("mach-virt: %s does not support providing " - "MTE to the guest CPU", +

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

2023-01-17 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > On Tue, 17 Jan 2023 at 16:51, Dr. David Alan Gilbert > wrote: > > > > * Peter Maydell (peter.mayd...@linaro.org) wrote: > > > On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: > > > > +MTE CPU Property > > > > + > > > > + > > >

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

2023-01-17 Thread Dr. David Alan Gilbert
* Cornelia Huck (coh...@redhat.com) wrote: > On Tue, Jan 17 2023, "Dr. David Alan Gilbert" wrote: > > > * Peter Maydell (peter.mayd...@linaro.org) wrote: > >> On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: > >> > > >> > Introduce a new cpu feature flag to control MTE support. To preserve > >

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

2023-01-17 Thread Cornelia Huck
On Tue, Jan 17 2023, "Dr. David Alan Gilbert" wrote: > * Peter Maydell (peter.mayd...@linaro.org) wrote: >> On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: >> > >> > Introduce a new cpu feature flag to control MTE support. To preserve >> > backwards compatibility for tcg, MTE will continue to

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

2023-01-17 Thread Peter Maydell
On Tue, 17 Jan 2023 at 16:51, Dr. David Alan Gilbert wrote: > > * Peter Maydell (peter.mayd...@linaro.org) wrote: > > On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: > > > +MTE CPU Property > > > + > > > + > > > +The ``mte`` property controls the Memory Tagging Extension. For T

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

2023-01-17 Thread Cornelia Huck
On Tue, Jan 17 2023, Peter Maydell wrote: > On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: >> >> Introduce a new cpu feature flag to control MTE support. To preserve >> backwards compatibility for tcg, MTE will continue to be enabled as >> long as tag memory has been provided. >> >> If MTE h

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

2023-01-17 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: > > > > Introduce a new cpu feature flag to control MTE support. To preserve > > backwards compatibility for tcg, MTE will continue to be enabled as > > long as tag memory has been provided. > >

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

2023-01-17 Thread Peter Maydell
On Wed, 11 Jan 2023 at 16:13, Cornelia Huck wrote: > > Introduce a new cpu feature flag to control MTE support. To preserve > backwards compatibility for tcg, MTE will continue to be enabled as > long as tag memory has been provided. > > If MTE has been enabled, we need to disable migration, as we

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

2023-01-11 Thread Cornelia Huck
Introduce a new cpu feature flag to control MTE support. To preserve backwards compatibility for tcg, MTE will continue to be enabled as long as tag memory has been provided. 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,