Merge pull request #11257 from mythi/coco-guest-hardening

confidential guest kernel hardening changes
This commit is contained in:
Fabiano Fidêncio
2025-05-16 08:52:36 +02:00
committed by GitHub
8 changed files with 20 additions and 12 deletions

View File

@@ -806,8 +806,8 @@ func (q *qemu) CreateVM(ctx context.Context, id string, network Network, hypervi
qemuConfig.IOThreads = []govmmQemu.IOThread{*ioThread}
}
// Add RNG device to hypervisor
// Skip for s390x as CPACF is used
if machine.Type != QemuCCWVirtio {
// Skip for s390x (as CPACF is used) or when Confidential Guest is enabled
if machine.Type != QemuCCWVirtio && !q.config.ConfidentialGuest {
rngDev := config.RNGDev{
ID: rngID,
Filename: q.config.EntropySource,