From: Jan Kiszka <jan.kiszka@web.de>
To: Gleb Natapov <gleb@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: Debugging an inconsistent shadow page table
Date: Sun, 26 Apr 2009 13:41:27 +0200 [thread overview]
Message-ID: <49F44867.3010008@web.de> (raw)
In-Reply-To: <20090426113952.GU24095@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]
Gleb Natapov wrote:
> On Sun, Apr 26, 2009 at 01:36:22PM +0200, Jan Kiszka wrote:
>> Gleb Natapov wrote:
>>> On Sun, Apr 26, 2009 at 01:11:40PM +0200, Jan Kiszka wrote:
>>>> That raise a question for a kvm-mmu newbie like me:
>>>>
>>>> If a page of the qemu process gets pushed around (here likely due to
>>>> fork()->exec(smbd)->COW), how will kvm's shadow table catch up? Via
>>>> MMU_NOTIFIER?
>>>>
>>>> I'm on a 2.6.25 kernel, and that means without CONFIG_MMU_NOTIFIER. So
>>>> far I assumed that kernels without this feature do not work optimally,
>>>> but they won't break my guests...
>>>>
>>> Guest memory is not COWed on fork (madvise(MADV_DONTFORK))
>> Yeah... but that's missing upstream! Will cross-check and then post a
>> fix for qemu.
>>
>> Out of curiosity: What's the mechanism to update the shadow table after
>> swap-out/swap-in?
>>
> I don't think guest memory is swappable without mmu notifiers.
Given the experience with COW: How is this ensured, or where is this
done upstream?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev 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 [this message]
2009-04-26 11:42 ` Avi Kivity
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=49F44867.3010008@web.de \
--to=jan.kiszka@web.de \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.