[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-devel] Re: [PATCH] Enable Core 2 Duo Performance Counters inHVM guest
Hi, Keir,
Thanks for your detailed comments. I have worked out an
updated patch.
I removed my own MSR macros definitions and hard TAB
indentation. Also, I removed LVTPC write-through in vlapic_write. Now, only when
guest both enables counting and interrupt, physical LVTPC is written. And when
vcpu is scheduled out, LVTPC is masked.
In addition, I employed a "first come, first service"
policy to grant PMU access to xenoprof/hvm_guest. When access is granted to hvm
guest, oprofile will get "Device Busy" . On the contrary, guest can not use PMU
like before.
HVM save/restore is tested, the patch will not break
current code.
Can you have a look and give me your comments? Thanks
in advance!
Best
Regards From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Keir Fraser Sent: 2007年12月11日 23:02 To: Shan, Haitao Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Jiang, Yunhong Subject: [Xen-devel] Re: [PATCH] Enable Core 2 Duo Performance Counters inHVM guest Ignore my comment about save/restore ― I misread your context-switching code as HVM save/restore code! -- Keir On 11/12/07 13:32, "Shan, Haitao" <haitao.shan@xxxxxxxxx> wrote: * Poking the LVTPC as a one-off event only when the VCPU writes its virtual LVTPC is not going to fly. What if the VCPU is subsequently migrated to a different physical CPU? In any case the LVTPC is a shared resource that needs synchronised access via e.g., context switching or mutual exclusion (see the next point below). Attachment:
pmu.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |