[MODERATED] Re: [PATCH v5 6/8] NX 6

Ben Hutchings <[email protected]>
Newsgroups org.kernel.lore.historical-speck
Message-ID <[email protected]>
On Wed, 2019-10-09 at 15:52 -0700, speck for Junaid Shahid wrote:
> On 10/9/19 3:42 PM, speck for Ben Hutchings wrote:
> > I've started trying to backport the NX patches to stable branches, and
> > I think I can take them back as far as 4.9.
> > 
> > However, kvm_mmu_zap_all() is a relatively new addition and looks hard
> > to backport.  I intend to make the nx_huge_pages parameter read-only
> > (0444 permissions) and delete this "if (new_val != old_val)" block. 
> > Does that seem reasonable?
> > 
> 
> You could also just replace the call to kvm_mmu_zap_all() with
> kvm_mmu_invalidate_zap_all_pages(), which is present as far back as
> 3.11

I found that but I wasn't confident that it was safe to call from this
context.

Ben.

-- 
Ben Hutchings
Humans are not rational beings; they are rationalising beings.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAl2eZ7wACgkQ57/I7JWG
EQmvVA/9ESwUI4GYktiobkAYVzdOLf1kDdAJt94f1gWElYirYxh2c/4WwBd3Sthg
NLhFj5RcxbY/aACXzYj1LKGduUQtAQue4fQfpNLeMLVVomY9poURE46nH1bYdYkb
uX0M+Nbs9mE3SzRMHJQMKzc35rFQAqbVNOtcEXqc2AVz4M908qkAeTSGMF2UPxBz
Dhen7NmoCAKjBDWJ6LhFKYYDk0zv0jCGVrZEwM+fFrbEMUTAcqEVzGwXgoe99Rg3
4wty8oWc6MYg7D54cs9qHfYlSiII69Df7KPwajFrQTIl6XtUJnbOQJQ8lfccjcTm
hlDRkWTQXfkhfiVnPpXrS0JMLmI+P2Flx2r6t5iWiYMvXlRoIJPKtDYSD7WpjNrk
NkvHHj81lRnkLbND5Drc/8qdMJprFdE8Q8F9ak19OeNsCIvkY/tG7u9eXr6mgE4Y
oFWr6O0jTHGMU5c8/OH88vKC2ZZYFIZKnP3H/WZjtmyY0l+RqJmXH8kZ+K35XCuO
l1F1uiCYnNiad6rZWZVJ+qVw1nZETka838HUHBvMnHZLvlzZofWcBqhciudPyDcM
HbbbBSGx2jjsa80YCpRaMEspNQqJ5xyTKOKe8ctfqPg3GnWxt3cHS8lQ2gxCnhHt
FGXvYmZhgEi0D/4CA2UmPgM/vFf421qAhGmCuw2u33Vgcjfz/9s=
=3M8S
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.