public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Need advice on timed access to guest pages
@ 2008-07-03 15:04 Sukanto Ghosh
  2008-07-03 15:41 ` Andrea Arcangeli
  0 siblings, 1 reply; 6+ messages in thread
From: Sukanto Ghosh @ 2008-07-03 15:04 UTC (permalink / raw)
  To: dor.laor; +Cc: kvm

> The current kvm without mmu-notifiers, can transparently swap guest
> pages only if they are not pointed by the shadow page tables.
> One a spte is instantiated the page cannot go to swap.

Can you explain why spte's must be unmapped as well ?
The memory region occupied by the structures maintaining the spte's
(kvm_mmu_page) they are also part of Linux VM. So why won't they be
swapped by Linux VM.
I didn't get the problem behind secondary MMU.

( I was going through the slides of presentation "Integrating  with
the KVM Linux Memory Management" by Andrea Arcangeli : KVM Forum 2008
)



--
Regards,
Sukanto Ghosh

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Need advice on timed access to guest pages
@ 2008-07-02  6:11 Arn
  2008-07-02 11:41 ` Dor Laor
  0 siblings, 1 reply; 6+ messages in thread
From: Arn @ 2008-07-02  6:11 UTC (permalink / raw)
  To: kvm

Hi KVM devs,

I'm trying to write a guest kernel module (or modify kernel code) to
do the following :

Say I have a kvm guest with 512 MB RAM running on a host with 2 GB
RAM. Now I run a process on the host that will cause increasing memory
pressure which will in turn cause the host to swap out some of the
guests pages (without the guest knowing). My guest kernel module will
randomly access some of its physical pages (say read a byte from a
page) and time the accesses.

In theory an attempt by the guest to access a page that has been
swapped out by the host should take much longer than accessing a page
that is in memory.

Since I'm still a novice can someone advise/guide me on this and let
me know if I'm missing something crucial in my assumptions ? I'm using
an amd64 machine with host/guest kernel 2.6.22 and kvm-64

Thanks in advance
a. rn

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-04  7:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 15:04 Need advice on timed access to guest pages Sukanto Ghosh
2008-07-03 15:41 ` Andrea Arcangeli
2008-07-04  7:10   ` Sukanto Ghosh
  -- strict thread matches above, loose matches on Subject: below --
2008-07-02  6:11 Arn
2008-07-02 11:41 ` Dor Laor
2008-07-02 21:06   ` Arn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox