Re: [PATCH v2 1/2] x86/pv: Fix consistency of 64bit segment bases

2020-09-07 Thread Jan Beulich
On 04.09.2020 15:52, Andrew Cooper wrote: > The comments in save_segments(), _toggle_guest_pt() and write_cr() are false. > The %fs and %gs bases can be updated at any time by the guest. > > As a consequence, Xen's fs_base/etc tracking state is always stale when the > vcpu is in context, and must

[PATCH v2 1/2] x86/pv: Fix consistency of 64bit segment bases

2020-09-04 Thread Andrew Cooper
The comments in save_segments(), _toggle_guest_pt() and write_cr() are false. The %fs and %gs bases can be updated at any time by the guest. As a consequence, Xen's fs_base/etc tracking state is always stale when the vcpu is in context, and must not be used to complete MSR_{FS,GS}_BASE reads, etc