Re: [PATCH v3 29/49] i386/sev: Don't disable block discarding for SNP

2024-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2024 at 03:39:25AM -0500, Michael Roth wrote: > SEV/SEV-ES rely on pinned memory to back guest RAM so discarding > isn't actually possible. With SNP, only guest_memfd pages are used > for private guest memory, so discarding of shared memory is still > possible, so only disable disca

[PATCH v3 29/49] i386/sev: Don't disable block discarding for SNP

2024-03-20 Thread Michael Roth
SEV/SEV-ES rely on pinned memory to back guest RAM so discarding isn't actually possible. With SNP, only guest_memfd pages are used for private guest memory, so discarding of shared memory is still possible, so only disable discard for SEV/SEV-ES. Signed-off-by: Michael Roth --- target/i386/sev.