Re: [RFC PATCH 3/3] nSVM: use svm->nested.save to load vmcb12 registers and avoid TOC/TOU races

From: Paolo Bonzini
Date: Tue Sep 28 2021 - 12:21:36 EST


On 14/09/21 11:12, Maxim Levitsky wrote:
But actually that you mention it, I'll say why not to create vmcb_control_area_cached
as well indeed and change the type of svm->nested.save to it. (in a separate patch)

I think you should have two structs, struct vmcb12_control_area_cache and struct vmcb12_save_area_cache. Otherwise the two series that Emanuele posted are nice and can be combined into just one.

Paolo