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

[Xen-devel] [RESEND][PATCH 5/5]MTRR/PAT virtualization

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [RESEND][PATCH 5/5]MTRR/PAT virtualization
From: "Su, Disheng" <disheng.su@xxxxxxxxx>
Date: Wed, 17 Oct 2007 16:45:41 +0800
Delivery-date: Wed, 17 Oct 2007 01:47:11 -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: AcgQmhkEL6J0p3KpR26/UYCURgEVdg==
Thread-topic: [RESEND][PATCH 5/5]MTRR/PAT virtualization
When guest changes MTRR/PAT, must flush cache and destroy shadow page
table in xen. This can be done in do_msr_write when guest changes
MTRR/PAT related MSRs. But there is a window that MTRR/PAT is different
between VCPUs when changing MTRR/PAT, it may bring some troubles or
incorrect. So we try another way to do it: 
        The guest will enter no-fill cache mode(set CR0:CD/NW) befor
changing MTRR/PAT, then update MTRR/PAT and exit no-fill mode. We
intercept the changing of cache mode. If one of vcpu is in no-fill mode
or MTRR/PAT is different between vcpus, set shadow pte as UC. When all
the vcpus exit from no-fill mode, and MTRR/PAT is the same between
vcpus, set shadow pte as usual.

Best Regards,
Disheng, Su

Attachment: mtrr_05_no_fill_mode.patch
Description: mtrr_05_no_fill_mode.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [RESEND][PATCH 5/5]MTRR/PAT virtualization, Su, Disheng <=