[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 0/2] MTE support for KVM guest
From: |
Catalin Marinas |
Subject: |
Re: [PATCH v5 0/2] MTE support for KVM guest |
Date: |
Wed, 9 Dec 2020 12:44:43 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Dec 08, 2020 at 06:21:12PM +0000, Marc Zyngier wrote:
> On 2020-12-08 17:21, Catalin Marinas wrote:
> > On Mon, Dec 07, 2020 at 07:03:13PM +0000, Marc Zyngier wrote:
> > > I wonder whether we will have to have something kernel side to
> > > dump/reload tags in a way that matches the patterns used by live
> > > migration.
> >
> > We have something related - ptrace dumps/resores the tags. Can the same
> > concept be expanded to a KVM ioctl?
>
> Yes, although I wonder whether we should integrate this deeply into
> the dirty-log mechanism: it would be really interesting to dump the
> tags at the point where the page is flagged as clean from a dirty-log
> point of view. As the page is dirtied, discard the saved tags.
>From the VMM perspective, the tags can be treated just like additional
(meta)data in a page. We'd only need the tags when copying over. It can
race with the VM dirtying the page (writing tags would dirty it) but I
don't think the current migration code cares about this. If dirtied, it
copies it again.
The only downside I see is an extra syscall per page both on the origin
VMM and the destination one to dump/restore the tags. Is this a
performance issue?
--
Catalin
- Re: [PATCH v5 0/2] MTE support for KVM guest, Haibo Xu, 2020/12/04
- Re: [PATCH v5 0/2] MTE support for KVM guest, Steven Price, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Peter Maydell, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Steven Price, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Marc Zyngier, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Catalin Marinas, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Marc Zyngier, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Catalin Marinas, 2020/12/08
- Re: [PATCH v5 0/2] MTE support for KVM guest, Marc Zyngier, 2020/12/08
- Re: [PATCH v5 0/2] MTE support for KVM guest,
Catalin Marinas <=
- Re: [PATCH v5 0/2] MTE support for KVM guest, Marc Zyngier, 2020/12/09
- Re: [PATCH v5 0/2] MTE support for KVM guest, Catalin Marinas, 2020/12/09
- Re: [PATCH v5 0/2] MTE support for KVM guest, Richard Henderson, 2020/12/09
- Re: [PATCH v5 0/2] MTE support for KVM guest, Catalin Marinas, 2020/12/09
- Re: [PATCH v5 0/2] MTE support for KVM guest, Richard Henderson, 2020/12/09
- Re: [PATCH v5 0/2] MTE support for KVM guest, Peter Maydell, 2020/12/09
- Re: [PATCH v5 0/2] MTE support for KVM guest, Dr. David Alan Gilbert, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Peter Maydell, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Dr. David Alan Gilbert, 2020/12/07
- Re: [PATCH v5 0/2] MTE support for KVM guest, Haibo Xu, 2020/12/08