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 3/5] vtdt: Modify vlapic code to add vtdt support

To: Keir Fraser <keir@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 3/5] vtdt: Modify vlapic code to add vtdt support
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Tue, 14 Dec 2010 17:30:20 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Tue, 14 Dec 2010 01:31:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C92CE77F.CCC9%keir@xxxxxxx>
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: <F26D193E20BBDC42A43B611D1BDEDE7124EADAFA5E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C92CE77F.CCC9%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcubPslPXD79XKNoRpanX8il5iAsXgAMXEvzAAAbfHA=
Thread-topic: [Xen-devel] [PATCH 3/5] vtdt: Modify vlapic code to add vtdt support
Keir Fraser wrote on 2010-12-14:
> On 14/12/2010 03:27, "Wei, Gang" <gang.wei@xxxxxxxxx> wrote:
> 
>> @@ -643,7 +669,11 @@ static int vlapic_write(struct vcpu *v,
>>          break;
>>      case APIC_LVTT:         /* LVT Timer Reg */
>> +        destroy_periodic_time(&vlapic->pt);
>>          vlapic->pt.irq = val & APIC_VECTOR_MASK;
>> +        vlapic_set_reg(vlapic, APIC_TMICT, 0);
>> +        vlapic_set_reg(vlapic, APIC_TMCCT, 0);
>> +        vlapic->hw.tdt_msr = 0;
> 
> Writing any value to LVTT zaps TMICT,TMCCT,MSR_TDT? That seems pretty
> unlikely to me! This obviously has effects on behaviour outside TDT
> emulation as it affects TMICT/TMCCT emulation. Looks dangerous, as well as 
> wrong.

It should be better to do the zaps only while the mode bits of LVTT changes.

> 
> Also I now notice that this patch is not against tip of xen-unstable,
> as these changes should be to new function vlapic_reg_write().

Sorry for that. I had rebased it to the tip, but happened to send out the old 
one. I will resend this patch.

Jimmy

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