|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [PATCH] vmx: fix debugctl handling
Oh, yes. Sorry for my bad memory. The spec does say that there is no
branch trace activities during VMExit/VMEntry. It should work.
But anyhow, I think it is better to try and see whether it works.:)
For PEBS, this actually can happen during VMExit/VMEntry. I have been
debugging this for a long time when I made the patch to enable PMU usage
in HVM guests. If you programme the PMCs and enable PEBS and DS in
guest, while in host these features are disabled, events happened during
VMExit/VMEntry will be lost. And it is hard to emulate the lost one in
VMM. So I disabled these features through IA32_MISC_ENABLE. You can see
in current Xen's code.
Best Regards
Haitao Shan
Jan Beulich wrote:
>>>> "Haitao Shan" <maillists.shan@xxxxxxxxx> 17.03.08 14:38 >>>
>> Yes, I agree. Once allowing guest to modify this MSR, you have to
>> implement some save/load functions. I am wondering what you are
>> trying to enable? As far as I know, DS area
>
> Yes, I'm considering adding support for DS, since Linux 2.6.25-rc
> briefly had support for this (it's now disabled again), so it's
> likely that pretty soon the functionality in the kernel will be
> there. Hence the hypervisor ought to support it.
>
>> (both PEBS and BTS) is not working properly now. You should assume
>> that any events which will trigger DS write might happen right at
>> the moment that CPU is in VMExit/VMEntry. Only using HW to switch
>> related MSRs is not enough.
>
> That would be very bad - it would mean that you cannot reliably
> virtualize this. But - are you sure here? For PEBS, I could see this
> to be true (although it should be properly dealt with in hardware),
> but
> BTS shouldn't have any activity during vmexit/vmentry as there are
> no branches during that time.
>
> Jan
>
>
> _______________________________________________
> 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
|
|
|
|
|