[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest
From: |
Peter Maydell |
Subject: |
Re: [RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest |
Date: |
Mon, 8 Feb 2021 17:31:39 +0000 |
On Fri, 5 Feb 2021 at 13:58, Steven Price <steven.price@arm.com> wrote:
>
> The VMM may not wish to have it's own mapping of guest memory mapped
> with PROT_MTE because this causes problems if the VMM has tag checking
> enabled (the guest controls the tags in physical RAM and it's unlikely
> the tags are correct for the VMM).
>
> Instead add a new ioctl which allows the VMM to easily read/write the
> tags from guest memory, allowing the VMM's mapping to be non-PROT_MTE
> while the VMM can still read/write the tags for the purpose of
> migration.
>
> Signed-off-by: Steven Price <steven.price@arm.com>
> ---
> arch/arm64/include/uapi/asm/kvm.h | 13 +++++++
> arch/arm64/kvm/arm.c | 57 +++++++++++++++++++++++++++++++
> include/uapi/linux/kvm.h | 1 +
> 3 files changed, 71 insertions(+)
Missing the update to the docs in Documentation/virtual/kvm/api.txt :-)
thanks
-- PMM
- [PATCH v8 0/5] MTE support for KVM guest, Steven Price, 2021/02/05
- [PATCH v8 2/5] arm64: kvm: Introduce MTE VM feature, Steven Price, 2021/02/05
- [PATCH v8 1/5] arm64: mte: Sync tags for pages where PTE is untagged, Steven Price, 2021/02/05
- [PATCH v8 3/5] arm64: kvm: Save/restore MTE registers, Steven Price, 2021/02/05
- [PATCH v8 4/5] arm64: kvm: Expose KVM_ARM_CAP_MTE, Steven Price, 2021/02/05
- [RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest, Steven Price, 2021/02/05
- Re: [RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest,
Peter Maydell <=