Re: [Xen-devel] [PATCH v2] x86/32on64: don't modify guest descriptors without need

2016-09-30 Thread Andrew Cooper
On 30/09/16 14:36, Jan Beulich wrote: > System gates with type 0 shouldn't have what might be their DPL altered > - such descriptors can't be used anyway without incurring a #GP, and > hence adjusting its DPL is only risking to confuse the guest. > > Also bail right away for non-present descriptors

[Xen-devel] [PATCH v2] x86/32on64: don't modify guest descriptors without need

2016-09-30 Thread Jan Beulich
System gates with type 0 shouldn't have what might be their DPL altered - such descriptors can't be used anyway without incurring a #GP, and hence adjusting its DPL is only risking to confuse the guest. Also bail right away for non-present descriptors - no need to write back anything in that case.