tdx

package
v0.2500.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package tdx implements the TDX runtime provisioner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQemuProvisioner added in v0.2500.0

func NewQemuProvisioner(cfg QemuConfig) (host.Provisioner, error)

NewQemuProvisioner creates a new QEMU-based TDX runtime provisioner.

Types

type QemuConfig

type QemuConfig struct {
	// DataDir is the runtime data directory.
	DataDir string
	// HostInfo provides information about the host environment.
	HostInfo *protocol.HostInfo

	// CommonStore is a handle to the node's common persistent store.
	CommonStore *persistent.CommonStore

	// PCS is the Intel Provisioning Certification Service quote service.
	PCS pcs.QuoteService
	// Consensus is the consensus layer backend.
	Consensus consensus.Backend
	// Identity is the node identity.
	Identity *identity.Identity

	// RuntimeAttestInterval is the interval for periodic runtime re-attestation. If not specified
	// a default will be used.
	RuntimeAttestInterval time.Duration
}

QemuConfig is the configuration of the QEMU-based TDX runtime provisioner.

type QemuExtraConfig

type QemuExtraConfig struct {
	// CID is the VSOCK cid to use for this runtime. If zero, the CID is automatically assigned.
	CID uint32
}

QemuExtraConfig is the per-runtime QEMU-specific extra configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL