Re: [RFC 02/14] x86/apic: Initialize Secure AVIC APIC backing page
From: Borislav Petkov
Date: Wed Oct 23 2024 - 12:31:46 EST
On Wed, Oct 09, 2024 at 11:22:58PM +0530, Neeraj Upadhyay wrote:
> I will start with 4K. For later, I will get the performance numbers to propose
> a change in allocation scheme - for ex, allocating a bigger contiguous
> batch from the total allocation required for backing pages (num_possible_cpus() * 4K)
> without doing 2M reservation.
Why does performance matter here if you're going to allocate simply a 4K page
per vCPU and set them all up in the APIC setup path? And then you can do the
page conversion to guest-owned as part of the guest vCPU init path?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette