> Steal time accounts for time a virtual CPU waits to run on the host.
> VMware updates a counter in guest memory, but encrypted guests currently
> register private memory which the host cannot write.
> 
> Allocate the counters together instead of embedding them in every CPU's
> per-CPU area, and share them before registering any address. Move setup
> for all guests to an early initcall, after the page allocator is available
> and before secondary CPUs start, so it can use the normal conversion API.
> 
> Keep the allocation for CPU hotplug. Enable accounting only after boot-CPU
> registration succeeds, and retain pages whose encryption state is unknown
> on failure. A secondary CPU's registration failure must not prevent the
> other CPUs from unregistering their counters.
> 
> Suggested-by: Borislav Petkov <[email protected]>
> Suggested-by: Peter Zijlstra <[email protected]>
> Link: 
> https://lore.kernel.org/r/20261001235950.GHar7z9v3zfk8odoTh@fat_crate.local
> Link: 
> https://lore.kernel.org/r/[email protected]
> Co-developed-by: Bo Gan <[email protected]>
> Signed-off-by: Bo Gan <[email protected]>
> Co-developed-by: Alexey Makhalov <[email protected]>
> Signed-off-by: Alexey Makhalov <[email protected]>
> Signed-off-by: Zack Rusin <[email protected]>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1


Reply via email to