Re: [PATCH v5 00/12] AMD broadcast TLB invalidation

Andrew Cooper
2025-01-17T00:00:40Z

On 16/01/2025 10:37 pm, Peter Zijlstra wrote:
> On Thu, Jan 16, 2025 at 06:14:00PM +0000, Michael Kelley wrote:
>> So CoCo
>> VMs may still use the paravirtualization that makes hypercalls to do
>> TLB flushes. It's future work to *always* use INVLPGB (if available)
>> in a CoCo VM.
> That would place a limit on the number of CPUs, to be no larger than the
> number of available ASIDs.

Can you please be specific between PCID (the x86 architectural thing
commonly called ASID) or ASID (the thing named by the AMD architecture).

INVLPGB instruction under virt can use PCIDs to its hearts content, but
ASIDs are rewritten behind the scenes because VM does not usually know
the ASID the VMM assigned to it.

~Andrew