mbox series

[kvmtool,v3,0/2] arm64: Add MTE support

Message ID 20220328103328.18768-1-alexandru.elisei@arm.com (mailing list archive)
Headers show
Series arm64: Add MTE support | expand

Message

Alexandru Elisei March 28, 2022, 10:33 a.m. UTC
Add Memory Tagging Extension (MTE) support in kvmtool.

Changes since v2:

* Gathered Reviewed-by and Tested-by tags from Vladimir, thank you!
* Slight tweaks to the kvmtool debug and user messages.
* Do not set kvm->arch.cfg.mte_disabled is the MTE capability is not
  available. It is not used anywhere outside of the MTE setup function and
  kvm->arch.cfg is for user config options.

Changes since v1:

* Update headers to v5.17
* MTE capability is now enabled by default and the command line option
  --disable-mte has been added.

Alexandru Elisei (2):
  update_headers.sh: Sync ABI headers with Linux v5.17
  aarch64: Add support for MTE

 arm/aarch32/include/kvm/kvm-arch.h        |  3 +++
 arm/aarch64/include/asm/kvm.h             |  5 +++++
 arm/aarch64/include/kvm/kvm-arch.h        |  1 +
 arm/aarch64/include/kvm/kvm-config-arch.h |  2 ++
 arm/aarch64/kvm.c                         | 22 ++++++++++++++++++++++
 arm/include/arm-common/kvm-config-arch.h  |  1 +
 arm/kvm.c                                 |  2 ++
 include/linux/kvm.h                       | 18 ++++++++++++++++++
 x86/include/asm/kvm.h                     | 19 ++++++++++++++++++-
 9 files changed, 72 insertions(+), 1 deletion(-)

Comments

Will Deacon April 4, 2022, 10:34 a.m. UTC | #1
On Mon, 28 Mar 2022 11:33:26 +0100, Alexandru Elisei wrote:
> Add Memory Tagging Extension (MTE) support in kvmtool.
> 
> Changes since v2:
> 
> * Gathered Reviewed-by and Tested-by tags from Vladimir, thank you!
> * Slight tweaks to the kvmtool debug and user messages.
> * Do not set kvm->arch.cfg.mte_disabled is the MTE capability is not
>   available. It is not used anywhere outside of the MTE setup function and
>   kvm->arch.cfg is for user config options.
> 
> [...]

Applied to arm64 (master), thanks!

[1/2] update_headers.sh: Sync ABI headers with Linux v5.17
      https://git.kernel.org/arm64/c/af1b793cb616
[2/2] aarch64: Add support for MTE
      https://git.kernel.org/arm64/c/5657dd3e48b4

Cheers,
Will Deacon April 4, 2022, 12:05 p.m. UTC | #2
On Mon, Apr 04, 2022 at 11:34:55AM +0100, Will Deacon wrote:
> On Mon, 28 Mar 2022 11:33:26 +0100, Alexandru Elisei wrote:
> > Add Memory Tagging Extension (MTE) support in kvmtool.
> > 
> > Changes since v2:
> > 
> > * Gathered Reviewed-by and Tested-by tags from Vladimir, thank you!
> > * Slight tweaks to the kvmtool debug and user messages.
> > * Do not set kvm->arch.cfg.mte_disabled is the MTE capability is not
> >   available. It is not used anywhere outside of the MTE setup function and
> >   kvm->arch.cfg is for user config options.
> > 
> > [...]
> 
> Applied to arm64 (master), thanks!
> 
> [1/2] update_headers.sh: Sync ABI headers with Linux v5.17
>       https://git.kernel.org/arm64/c/af1b793cb616
> [2/2] aarch64: Add support for MTE
>       https://git.kernel.org/arm64/c/5657dd3e48b4

Sorry, b4 got confused by my scripts here. The SHAs are correct, but these
have obviously been applied to the kvmtool repository, not the arm64 kernel
tree!

Will