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] VMX virtual-apic: Update the p2m mapping alongsi

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] VMX virtual-apic: Update the p2m mapping alongside the control bit
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Wed, 26 May 2010 09:57:54 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 26 May 2010 01:59:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C8228AD3.15CA5%keir.fraser@xxxxxxxxxxxxx>
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>
References: <fef1e7dc74e64cf25d81.1274798527@xxxxxxxxxxxxxxxxxxxxxxxx> <C8228AD3.15CA5%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
At 08:22 +0100 on 26 May (1274862163), Keir Fraser wrote:
> On 25/05/2010 15:42, "Tim Deegan" <Tim.Deegan@xxxxxxxxxx> wrote:
> > Otherwise a VM migrated from a system which supports the feature to one
> > which doesn't ends up with a data page where its vlapic should be.
> 
> I don't see that this problem exists, let alone that this patch would fix it
> if it did.

I've seen it happen, if that helps. :) 

> The dummy data page should not be migrated because it has p2m type
> mmio_direct, which will fail the p2m_is_ram() check in mod_l1_entry() when
> dom0 attempts to map the page to save/migrate it.

Ah, so it will; I hadn't seen that.  The full failure mode is actually
on migrating from Xen 3.3 (where mod_l1_entry() didn't have that check)
to a newer Xen on a machine where the HW APIC virt isn't supported.  The
sender sends the contents of the dummy page (incorrectly) and the
receiver doesn't do anything (assuming that there'll be a hole in the
p2m where the APIC should be).

There might be a more correcter thing to do (maybe detect the RAM page
and explicitly free it back to Xen?).  Or, of course, we could finally
get round to explicitly registering all mmio_dm areas...

Sorry for the confusion - I'm trying to tidy up patches from our product
patchqueue and some of them have been around for a while. :|

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

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