public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Gleb Natapov <gleb@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: Debugging an inconsistent shadow page table
Date: Sun, 26 Apr 2009 14:42:35 +0300	[thread overview]
Message-ID: <49F448AB.3090802@redhat.com> (raw)
In-Reply-To: <49F44736.6000001@web.de>

Jan Kiszka wrote:
> Out of curiosity: What's the mechanism to update the shadow table after
> swap-out/swap-in?
>   

With mmu notifiers, the kernel informs kvm that a host pte has been 
invalidated, kvm looks in its reverse mappings and drops any sptes that 
correspond to the same hva.

Without mmu notifiers, the page reference count is kept elevated, so the 
kernel can't swap anything which has an spte pointing to it.

In both cases, the spte is reestablished on first guest access (which 
may or may not be immediately after swapin).

-- 
error compiling committee.c: too many arguments to function


      parent reply	other threads:[~2009-04-26 11:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25 10:36 Debugging an inconsistent shadow page table Jan Kiszka
2009-04-26 10:32 ` Avi Kivity
2009-04-26 11:11   ` Jan Kiszka
2009-04-26 11:27     ` Gleb Natapov
2009-04-26 11:34       ` Avi Kivity
2009-04-26 11:36       ` Jan Kiszka
2009-04-26 11:39         ` Gleb Natapov
2009-04-26 11:41           ` Jan Kiszka
2009-04-26 11:42         ` Avi Kivity [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=49F448AB.3090802@redhat.com \
    --to=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.org \
    /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