From: Stefan Hajnoczi <stefanha@gmail.com>
To: Piyus Kedia <piyuskedia@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Guest memory access within hypervisor Inbox x
Date: Fri, 27 Sep 2013 12:10:37 +0200 [thread overview]
Message-ID: <20130927101037.GD9972@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CAFqkpAZqYE7AXWFkxLnUkkFVE93n1Wmth5MPweL3kO1BU5nfTw@mail.gmail.com>
On Fri, Sep 27, 2013 at 03:19:28AM +0530, Piyus Kedia wrote:
> I am working on record replay in KVM. I just want to confirm that KVM
> doesn't access guest memory except for DMA. The functions
> kvm_read_guest_page() and kvm_write_guest_page() in kvm_main.c are
> only used for mmio emulation which access memory that is always
> emulated. It will be nice if somebody else also confirm this.
kvmclock comes to mind, I think it has a shared page between the guest
and the host kernel where clock updates are published from host ->
guest. I think kvmclock can be disabled by choosing another clocksource
in the guest Linux kernel.
There are other exceptions like the ivshmem device which is rarely used
but can provide shared memory between guest <-> host or guest <-> guest.
I think that memory is an MMIO PCI BAR in the guest just that neither
kvm.ko nor QEMU may be catch the update if another process on the host
is writing to it.
Stefan
next prev parent reply other threads:[~2013-09-27 10:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 21:49 Guest memory access within hypervisor Inbox x Piyus Kedia
2013-09-27 10:10 ` Stefan Hajnoczi [this message]
2013-09-27 10:16 ` Piyus Kedia
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=20130927101037.GD9972@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=piyuskedia@gmail.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