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] [PATCH 2/2] MTRR/PAT virtualization

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 2/2] MTRR/PAT virtualization
From: "Su, Disheng" <disheng.su@xxxxxxxxx>
Date: Mon, 8 Oct 2007 15:37:01 +0800
Delivery-date: Mon, 08 Oct 2007 00:38:18 -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: AcgJfgOMNYMjMAQ5SNKtmVOEvHhrmg==
Thread-topic: [PATCH 2/2] MTRR/PAT virtualization
mtrr_pat.patch: basic MTRR/PAT virtualization.
The basic idea is listed below:
          a. MTRR/PAT MSRs are per vcpu. The value of guest MTRR is
initialized in host, after guest E820 table is build. The value of guest
PAT is initialized as SDM. The host PAT is initialized to cover all the
page attributes.        
          b. The guest page attribute is virtualized through shadow page
attribute. First, get the effective guest page attribute, by calculating
from the combination of guest MTRR/PAT. Then the shadow page attribute
is calculated from effective guest page attribute and host MTRR. If
conflict occurs(e.g effective guest page attribute is WB, host MTRR of
this range is UC, can't set this page attribute as guest required), set
this range as UC. Some lookup tables are added to accelerate above
procedure.

Signed-off-by: Disheng Su <disheng.su@xxxxxxxxx>

Best Regards,
Disheng, Su

Attachment: mtrr_pat.patch
Description: mtrr_pat.patch

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