* Guest memory access within hypervisor Inbox x
@ 2013-09-26 21:49 Piyus Kedia
2013-09-27 10:10 ` Stefan Hajnoczi
0 siblings, 1 reply; 3+ messages in thread
From: Piyus Kedia @ 2013-09-26 21:49 UTC (permalink / raw)
To: kvm
Hi,
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.
Thanks,
Piyus Kedia
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Guest memory access within hypervisor Inbox x
2013-09-26 21:49 Guest memory access within hypervisor Inbox x Piyus Kedia
@ 2013-09-27 10:10 ` Stefan Hajnoczi
2013-09-27 10:16 ` Piyus Kedia
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hajnoczi @ 2013-09-27 10:10 UTC (permalink / raw)
To: Piyus Kedia; +Cc: kvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Guest memory access within hypervisor Inbox x
2013-09-27 10:10 ` Stefan Hajnoczi
@ 2013-09-27 10:16 ` Piyus Kedia
0 siblings, 0 replies; 3+ messages in thread
From: Piyus Kedia @ 2013-09-27 10:16 UTC (permalink / raw)
To: Stefan Hajnoczi, kvm
Thanks.
On Fri, Sep 27, 2013 at 3:40 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-27 10:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 21:49 Guest memory access within hypervisor Inbox x Piyus Kedia
2013-09-27 10:10 ` Stefan Hajnoczi
2013-09-27 10:16 ` Piyus Kedia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox