[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] write_tsc in a PV domain?



On 08/25/09 14:54, Dan Magenheimer wrote:
> Is it "legal" to write to the TSC, e.g. via wrmsr(0x10,x,y),
> in a PV kernel?  Assuming this were executed and would cause
> a GPF, I can't find the code in Xen that would handle it, or
> even ignore it.
>   

arch/x86/traps.c:emulate_privileged_op(), case 0x30.  It looks like
writing to 0x10 would be silently ignored.  Allowing it would require
careful handling to avoid screwing up timekeeping (you'd need to update
the timekeeping parameters), but also fairly pointless because it would
only affect the pcpu that the vcpu happens to be running on at that moment.

    J

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.