WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 00 of 12] xenpaging fixes for xen-unstable

To: Olaf Hering <olaf@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 00 of 12] xenpaging fixes for xen-unstable
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Wed, 08 Jun 2011 17:01:15 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 08 Jun 2011 09:02:48 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=h9xsYy/36pHhppYwMBmmip6V+L1IOVZLvjw9JDJElXw=; b=DC5Y7w6McK+4JfI+YNvaNurHbjqasb6qvlCrRFcwS3/NfWJfHCvohaFbCFfrE0oTn+ nA7W2bVQugMeapLaJEsTGB7kkYDQ72nzb+0VPzPgsHEhrBpL181/pXtQCd+vTHb2kdAt reFPkYK/t6Vfj1lUv8FCjNreZpy9RjHoGV2Oc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=HdaJuZzeZ7yEIJriwDx+6P/xzrz9fasNk03S0nPyTWfgjd5DWxQQQgwOMT2UxlohAZ 77Z1EFzzqQC8GsjLIvc21DgyGW5AKN4DUvqO4Imvjd0vX5xPI4m0s3PbtC3LSAuN6JOH DFpe/ZYnaZ41RFx5sD0DsgTFeLJXAR+STQ8U0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110607133847.GA15418@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acwl9UtzQGATNk3Q6UqDmbeKK1QkOA==
Thread-topic: [Xen-devel] [PATCH 00 of 12] xenpaging fixes for xen-unstable
User-agent: Microsoft-Entourage/12.29.0.110113
On 07/06/2011 14:38, "Olaf Hering" <olaf@xxxxxxxxx> wrote:

> On Tue, Jun 07, Keir Fraser wrote:
> 
>> Once they're in, what is left to do? Do you need help with the in-Xen
>> waitqueue stuff? Do you have test cases that fail, a private patch queue,
>> etc?
> 
> Keir,
> 
> I have no new patches, just returned to xenpaging end of last week.
> A few months ago I collected my TODO list below.
> 
> One thing that I would need help with is the machine_to_phys_mapping[]
> handling, an attempt to fix it was reverted before the 4.1 release. See
> the thread in the URL below.

I'm taking a look at this. The hard way I describe in the referenced thread
seemed like a mistake when I tried it, so I'll sort out a simpler fix for
the original patch.

 -- Keir

> My testcase was a SLES11SP1 pv-on-hvm guest, rebooted in an endless
> loop. That catched all of the issues. With the
> waitqueue/HVMCOPY_gfn_paged_out issue its best to customize the
> xenpaging policy to page the range of gfns were the guest pagetables are
> stored.
> 
> I will send a series of patches to try later.
> 
> Olaf
> 
> 
> Todo:
> - implement xl support
> - implement stopping of xenpaging
> - implement live migration
> - implement config option for XENPAGING_DEBUG and XENPAGING_POLICY_MRU_SIZE
> - implement config option for xenpaging_dir
> - implement better starting gfn in xenpaging policy
>   an initial gfn number in the middle of the gfn range may avoid page-ins
>   during BIOS startup
> - fix machine_to_phys_mapping[] array handling during page deallocation
>   the gfn of a released page must be maintained properly in the array
>   http://lists.xensource.com/archives/html/xen-devel/2011-01/msg00824.html
> - fix HVMCOPY_gfn_paged_out handling
>   some callers of __hvm_copy() do not handle HVMCOPY_gfn_paged_out, such
>   as hypercalls and the MMIO emulation
>   the recently added waitqueue feature in Xen 4.1 should be used
> - remove all retry code from gfn_to_mfn() calls
>   use the waitqueue feature to hide page-in from the caller and cover
>   all cases where a retry is currently missing
> - do not bounce p2mt to xenpaging
>   p2m_mem_paging_populate/p2m_mem_paging_resume dont make use of p2mt
> - cleanup typeof gfn which is passed around in xenpaging
>   unsigned long, uint64_t, xen_pfn_t
> - cleanup return types of functions
>   some functions return 0 unconditionally, could be void
> - remove srand function
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel