xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: "Liu, Jinsong" <jinsong.liu@intel.com>
Cc: Christoph Egger <Christoph.Egger@amd.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"Keir (Xen.org)" <keir@xen.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 4/5] Xen/MCE: Abort live migration when vMCE occur
Date: Mon, 22 Oct 2012 12:32:06 +0100	[thread overview]
Message-ID: <50852EB6.4060705@eu.citrix.com> (raw)
In-Reply-To: <DE8DF0795D48FD4CA783C40EC829233536111E@SHSMSX101.ccr.corp.intel.com>

On 19/10/12 21:32, Liu, Jinsong wrote:
>> Wouldn't your patch 5 be sufficient to deal with this case?  It seems
>> like the broken page would get marked as such, and then get marked
>> broken on the receiving side, wouldn't it?
>>
>>   -George
> Seems no, patch 4 is to handle the case mce occur during migration --> under such case the broken page would mapped (at that time the page is a good page) and copy to target; While patch 5 is to handle the case mce occur beofre migration --> under such case the broken page would not mapped and so would not copy to target.

In the "during migration", there are actually two cases to consider:
1. The page breaks before the domain save code maps it.
2. The page breaks after the domain save code has mapped it once

Patch 5 will detect a broken page when it tries to map it, and send it 
as type "broken", without data.

So in the case of #1, it will be taken care of by patch 5 without any 
changes.

In the case of #2, it seems like we could probably modify patch 5 to 
handle it.  If we mark a page dirty, then the domain save code will try 
to send it again.  When it tries to map it, it will discover that the 
page has been marked "broken", and will send it as a "broken" page, 
without data.  As long as the domain restore code marks the 
already-received page as "broken" when it receives this message, then 
everything should work as normal.

What do you think?

  -George

  reply	other threads:[~2012-10-22 11:32 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10 14:46 [PATCH 4/5] Xen/MCE: Abort live migration when vMCE occur Liu, Jinsong
2012-10-16 10:42 ` Liu, Jinsong
2012-10-19 14:52 ` Ian Jackson
2012-10-19 20:13   ` Liu, Jinsong
2012-10-22 11:32     ` Liu, Jinsong
2012-10-25 11:21       ` Ian Jackson
2012-10-25 12:32         ` Jan Beulich
2012-10-25 12:38           ` Ian Jackson
2012-10-25 12:44           ` Liu, Jinsong
2012-10-25 12:51             ` Ian Jackson
2012-10-19 16:51 ` George Dunlap
2012-10-19 20:32   ` Liu, Jinsong
2012-10-22 11:32     ` George Dunlap [this message]
2012-10-24 14:30       ` Liu, Jinsong
2012-10-29 15:21       ` [Patch 4/5] X86/vMCE: handle broken page occurred before migration Liu, Jinsong
2012-10-29 16:35         ` Jan Beulich
2012-10-29 17:19           ` Liu, Jinsong
2012-10-30  9:02         ` Jan Beulich
2012-10-31 10:55           ` Liu, Jinsong
2012-10-30  9:25         ` George Dunlap
2012-10-30  9:27         ` George Dunlap
2012-10-31 10:58           ` Liu, Jinsong
2012-10-29 15:22       ` [PATCH 5/5] Xen/MCE: handle broken page occurs during migration Liu, Jinsong
  -- strict thread matches above, loose matches on Subject: below --
2012-09-19  8:14 [PATCH 4/5] Xen/MCE: Abort live migration when vMCE occur Liu, Jinsong
2012-09-18 13:16 Liu, Jinsong
2012-09-18 15:29 ` Christoph Egger
2012-09-19  7:52   ` Liu, Jinsong
2012-10-10  9:10 ` Ian Campbell
2012-10-10 14:14   ` Liu, Jinsong

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=50852EB6.4060705@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Christoph.Egger@amd.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=jinsong.liu@intel.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xensource.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;
as well as URLs for NNTP newsgroup(s).