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][HVM] Removing 1:1 mapping from qemu-dm

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH][HVM] Removing 1:1 mapping from qemu-dm
From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Date: Wed, 28 Jun 2006 08:15:10 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Jun 2006 08:15:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcaamFj0ducm5SPwTNGUI6KQ9eG6RgAJ4WNw
Thread-topic: [Xen-devel] [PATCH][HVM] Removing 1:1 mapping from qemu-dm
Keir Fraser wrote:
> On 28 Jun 2006, at 08:13, Nakajima, Jun wrote:
> 
>> The patch removes the 1:1 mapping against HVM guests from qemu-dm,
>> allowing to have bigger guests than qemu-dm. This is also the first
>> step for enabling balloning with HVM guests.
>> 
>> It sets up mapping dynamically, and thus it can cause some latency
>> for I/O operations for HVM guests. I don't see visible latency yet,
>> but I think we need to tune the hashing size.
> 
> What do all the shadow-mode changes do? I see you add an extra
> writable-mapping refcount to tlbflush_timestamp (only 4 bits) -- why
> is that needed?

Since the write refcount in type_info can change at any time now because
of map/unmap by qemu-dm at runtime, I stopped using it to avoid a hack
in mm.c. The extra code is a scaled-down version of write refcount
dedicated for guest page table pages, and I think 4 bits would be
sufficient in normal cases because normal guests don't establish that
many translations (i.e. using different virtual addresses) against page
table pages. 

Since the number cannot exceed the length of the shadow hash chains
anyway, I can add an extra logic that detects overflow and scans the
entire chains if detected. With this we can just have a 2-bit ref count,
0 - no, 1 (most cases), and 2 - more than one.  

Jun
---
Intel Open Source Technology Center

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