Revert "qemu: tdx: Adapt command line" (partially)

This reverts commit b7cccfa019.

The `private=on` bit has never made its way upstream, and was removed
from the latest iteration that we're using.  With that in mind, let's
revert its usage in the code.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio
2024-04-23 16:53:53 +02:00
parent 1c3037fd25
commit 416d00228c
3 changed files with 0 additions and 45 deletions

View File

@@ -615,17 +615,6 @@ func (q *qemu) CreateVM(ctx context.Context, id string, network Network, hypervi
return err
}
if q.config.ConfidentialGuest {
// At this point we're safe to just check for the protection field
// on the hypervisor specific code, as availableGuestProtection()
// has been called earlier and we know we have the value stored.
if q.arch.getProtection() == tdxProtection {
// TDX relies on ",private=on" passed to the memory object.
knobs.Private = true
}
}
kernelPath, err := q.config.KernelAssetPath()
if err != nil {
return err