public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Yang Weijiang <weijiang.yang@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: Migration for SPP(Sub-Page Protection) bitmaps
Date: Sun, 28 Apr 2019 10:31:18 +0800	[thread overview]
Message-ID: <20190428023118.GA29269@local-michael-cet-test> (raw)
In-Reply-To: <1936609002.15679158.1556350659850.JavaMail.zimbra@redhat.com>

On Sat, Apr 27, 2019 at 03:37:39AM -0400, Paolo Bonzini wrote:
> 
> > > The destination userspace should simply call KVM_SUBPAGES_SET_ACCESS,
> > > and KVM will process it just like it would on the source.  In other
> > > words, it shouldn't matter if the ioctl is done as part of migration or
> > > the first time a VM is setup.  And in both cases, lazy setup should be
> > > fine.
> > 
> > The problem is in current patch (as in link), it assumes
> > the target pages are there in EPT, but in migration case, these pages
> > are not setup in ETP, so KVM_SUBPAGES_SET_ACCESS during migration or
> > destination bootup will fail, should I modify the patch to setup the
> > ETP in lazy mode?
> 
> Yes, definitely.  Remember that EPT page tables come and go (pages could
> be swapped out, or moved from one host physical address to another; there
> is also a shrinker that will release EPT page tables if memory is low),
> so SPP support should be ready for that.  Migration is just a special case.
> 
> Paolo
 OK, got it, thanks a lot for the reply!

      reply	other threads:[~2019-04-28  2:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-17  9:59 Migration for SPP(Sub-Page Protection) bitmaps Yang Weijiang
2019-04-26  8:06 ` Paolo Bonzini
2019-04-26  8:57   ` Yang Weijiang
2019-04-27  7:37     ` Paolo Bonzini
2019-04-28  2:31       ` Yang Weijiang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190428023118.GA29269@local-michael-cet-test \
    --to=weijiang.yang@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox