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] MTRR MSRs Save/Restore

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] MTRR MSRs Save/Restore
From: "Su, Disheng" <disheng.su@xxxxxxxxx>
Date: Tue, 11 Dec 2007 13:51:16 +0800
Delivery-date: Mon, 10 Dec 2007 21:58:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C382DAF8.19A4E%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <FF386CB4AE0E4648B0A96060EC00F36C5BC3FF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C382DAF8.19A4E%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acg68gh/4L7r9r3ASeCKLXA/OREcrwAMkl1tACS5WTA=
Thread-topic: [Xen-devel] [PATCH] MTRR MSRs Save/Restore
Keir Fraser wrote:
> Define a new save/restore structure, with its own save/restore
> routines, rather than appending to hvm_hw_vcpu. Do not declare extern
> functions in .c files (decalring those functions as save/restore
> handlers for your new state structure may get rid of those externs
> anyway). You cannot include Xen private header files from public
> header files, so you cannot get at <asm/mtrr.h>. You'll need to
> define appropriate array sizes in the save.h header file
> independently of private Xen header files. Hopefully the state you
> are saving is architectural and so has 'well known' sizes and ranges
> that we won't mind hardcoding in a public header file? 
> 
Attached patch is per your comments. 
The 
>  -- Keir
> 
> On 10/12/07 06:00, "Su, Disheng" <disheng.su@xxxxxxxxx> wrote:
> 
>> This patch adds the MTRR MSRs save/restore support.
>> 
>> Signed-off-by: Disheng Su <disheng.su@xxxxxxxxx>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel



Best Regards,
Disheng, Su

Attachment: mtrr_save.patch
Description: mtrr_save.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>