|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v14 07/17] pvh: vmx-specific changes
On 07/11/13 00:27, Tim Deegan wrote: At 12:14 +0000 on 04 Nov (1383563696), George Dunlap wrote: Your real question is, why is GS_BASE *less* restricted for PVH mode: in HVM mode (as far as I can tell), we exit on accesses to MSR_SHADOW_GS_BASE. It looks like the others are trapped because updating them is rare and saving / restoring them on every context switch would be expensive. But according to a comment in vmx.c:
/*
* We cannot cache SHADOW_GS_BASE while the VCPU runs, as it can
* be updated at any time via SWAPGS, which we cannot trap.
*/
So SHADOW_GS_BASE is read and written on every context switch.
Is it OK for PVH not to exit here? If so, do we actually need to do it
in HVM mode, or is that an artifact of doing things differently once
upon a time?
FWIW, at the moment, it looks like the trap for SHADOW_GS_BASE is pointless for HVM as well -- all the handler does is pass through the read or write without doing anything else -- not even updating v->arch.hvm_vmx.shadow_gs. SHADOW_GS_BASE is saved & restored unconditionally on a context switch, so I think we probably could just stop intercepting it. Or, for this series, I think I'll take out the special case, and separately send a patch to disable the intercept for SHADOW_GS_BASE for all HVM domains. -George -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |