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][SVM] Remove redundant update to V_TPR register

To: Travis Betak <travis.betak@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][SVM] Remove redundant update to V_TPR register
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 01 Feb 2007 18:05:45 +0000
Delivery-date: Thu, 01 Feb 2007 10:05:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.64.0701312102060.5896@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AcdGK5fw1kwlg7IeEduEiQAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH][SVM] Remove redundant update to V_TPR register
User-agent: Microsoft-Entourage/11.2.5.060620
No, vlapic_set_reg() only writes to the software field. It doesn't call out
to update_vtpr().

 -- Keir

On 1/2/07 03:09, "Travis Betak" <travis.betak@xxxxxxx> wrote:

> This patch removes the redundant update to the V_TPR VMCB field.  The
> update is already done in the preceding call to vlapic_set_reg.
> 
> This fix is for changeset 13762 in xen-unstable.hg
> 
> Please apply.
> 
> Signed-off-by: Travis Betak <travis.betak@xxxxxxx>
> 
> ---
> 
> diff -r 588dd80b56b5 xen/arch/x86/hvm/svm/svm.c
> --- a/xen/arch/x86/hvm/svm/svm.c Wed Jan 31 19:37:44 2007 +0000
> +++ b/xen/arch/x86/hvm/svm/svm.c Wed Jan 31 20:59:02 2007 -0600
> @@ -1948,7 +1948,6 @@ static int mov_to_cr(int gpreg, int cr,
> 
>       case 8:
>           vlapic_set_reg(vlapic, APIC_TASKPRI, ((value & 0x0F) << 4));
> -        vmcb->vintr.fields.tpr = value & 0x0F;
>           break;
> 
>       default:
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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

<Prev in Thread] Current Thread [Next in Thread>