All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Cc: Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2] x86/HVM: correct page dirty marking in hvm_map_guest_frame_rw()
Date: Tue, 22 Sep 2015 14:02:03 +0100	[thread overview]
Message-ID: <5601514B.9050203@citrix.com> (raw)
In-Reply-To: <56016B5A02000078000A4575@prv-mh.provo.novell.com>

On 22/09/15 13:53, Jan Beulich wrote:
> Rather than dirtying a page when establishing a (permanent) mapping,
> dirty it when the page gets unmapped, or - if still mapped - on the
> final iteration of a save operation (or in other cases where the guest
> is paused or already shut down). (Transient mappings continue to get
> dirtied upon getting mapped, to avoid the overhead of tracking.)
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> ---
> v2: Refine predicate for calling hvm_mapped_guest_frames_mark_dirty()
>      (now including all shut down domains as well as tool stack paused
>      ones).

I am still convinced that it is wrong for Xen to second-guess what libxc 
is actually doing.

libxc should explicitly ask for the permanent mappings (or not) via 
another bit in a shadow op.  Anything else risks not getting the bits 
set (so memory corruption), or having too many bits set in 
non-interested cases (unwanted overhead).

~Andrew

  reply	other threads:[~2015-09-22 13:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22 12:53 [PATCH v2] x86/HVM: correct page dirty marking in hvm_map_guest_frame_rw() Jan Beulich
2015-09-22 13:02 ` Andrew Cooper [this message]
2015-09-22 13:31   ` Jan Beulich

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=5601514B.9050203@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xenproject.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.