x86/xen: don't write ptes directly in 32-bit PV guests
authorJuergen Gross <jgross@suse.com>
Tue, 21 Aug 2018 15:37:54 +0000 (17:37 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 27 Aug 2018 13:31:26 +0000 (09:31 -0400)
commitf7c90c2aa4004808dff777ba6ae2c7294dd06851
tree73c9a3d2b1daf567501a9cc0eaad622607e36a32
parent75f2d3a0cef5cd8cd41772c9f8ada37dee9c9369
x86/xen: don't write ptes directly in 32-bit PV guests

In some cases 32-bit PAE PV guests still write PTEs directly instead of
using hypercalls. This is especially bad when clearing a PTE as this is
done via 32-bit writes which will produce intermediate L1TF attackable
PTEs.

Change the code to use hypercalls instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/mmu_pv.c