From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH v4 0/9] toolstack-based approach to pvhvm guest kexec Date: Thu, 11 Dec 2014 16:30:29 +0100 Message-ID: <20141211153029.GA1772@aepfle.de> References: <1417626981-8432-1-git-send-email-vkuznets@redhat.com> <20141211142428.GA19820@aepfle.de> <5489B721.6010504@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xz5hU-0006Q4-Kf for xen-devel@lists.xenproject.org; Thu, 11 Dec 2014 15:30:44 +0000 Content-Disposition: inline In-Reply-To: <5489B721.6010504@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: Andrew Jones , Keir Fraser , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich , xen-devel@lists.xenproject.org, Wei Liu , Vitaly Kuznetsov List-Id: xen-devel@lists.xenproject.org On Thu, Dec 11, David Vrabel wrote: > Nothing special needs to be done with ballooned pages. If frames are > not populated in the original domain, they will be unpopulated in the > new domain. > > It's the responsibility of the guest to ensure it either doesn't kexec > when it is ballooned or that the kexec kernel can handle this (e.g., by > using a crash region that is never ballooned out). There is a difference between kexec and kdump. The kdump kernel does not care because there is code in /proc/vmcore to handle ballooned pages in the crashed kernel gracefully. But a kexec boot will likely access pages which are not backed by RAM. Unfortunately there is no flag left to mark a page as ballooned. So what you are saying means that kexec-tools needs to continue to balloon up before doing the actual kexec. I had hoped this suggested approach would get rid of that limitation. Olaf