All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org
Cc: Izik Eidus <izik.eidus-atKUWr5tajBWk0Htik3J/w@public.gmane.org>,
	kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: user-allocated memory
Date: Tue, 14 Aug 2007 16:01:55 +0300	[thread overview]
Message-ID: <46C1A7C3.6050809@qumranet.com> (raw)
In-Reply-To: <46C1A5F4.4070006-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>

Carsten Otte wrote:
> Avi Kivity wrote:
>> kvm only tracks dirty bits if requested by userspace (for live 
>> migration).  Checking the pte is not so easy because the pte contains 
>> only host addresses, not page addresses (well, we could consult the 
>> guest page table, but...).
> As far as I undstand this code, this function is used to release a 
> memory page. Hopefully at this time the guest has not set up any page 
> table entries to this page, because we're releasing the target page. 
> When the guest migrates the dirty bit from its pte to its struct page 
> (it always does this at least when removing the pte), we could 
> indicate this to the hypervisor e.g. via hypercall. This way the 
> hypervisor would know if the page is dirty or not, without asking the 
> guest if the guest is paravirtual.
> That said, for ept/npt/s390 we have the information anyway without the 
> need to do above trick, due to the double dirty/reference tracking 
> approach. That would also work for non-paravirtual guests in that case.

We can actually make it work for non-paravirt, non-npt as well; when 
removing the shadow pte, set the page dirty bit.  I forgot that the gfn 
is immaterial for this.


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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

      parent reply	other threads:[~2007-08-14 13:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-12 19:59 (no subject) Izik Eidus
     [not found] ` <64F9B87B6B770947A9F8391472E032160CBECF40-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-08-12 21:37   ` Anthony Liguori
     [not found]     ` <64F9B87B6B770947A9F8391472E032160CBECF4A@ehost011-8.exch011.intermedia.net>
2007-08-12 22:43       ` FW: " Izik Eidus
2007-08-13  8:10     ` Avi Kivity
2007-08-14 10:38   ` Carsten Otte
     [not found]     ` <64F9B87B6B770947A9F8391472E032160CBECF52@ehost011-8.exch011.intermedia.net>
2007-08-14 11:11       ` FW: " Izik Eidus
     [not found]     ` <46C18616.5000005-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-08-14 11:52       ` user-allocated memory Avi Kivity
     [not found]         ` <46C19778.4090502-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-14 12:54           ` Carsten Otte
     [not found]             ` <46C1A5F4.4070006-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-08-14 13:01               ` 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=46C1A7C3.6050809@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org \
    --cc=izik.eidus-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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.