Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added vm_secure_guest_object_options for secure guest object #3928

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions virttest/qemu_devices/qcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3966,6 +3966,10 @@ def _gen_tdx_obj_props(obj_id, params):
raise ValueError("Unsupported tdx-guest object")

backend, tdx_obj_props = "tdx-guest", {"id": obj_id}
tdx_opts = params.get_dict("vm_secure_guest_object_options")
if tdx_opts:
tdx_obj_props.update(tdx_opts)

return backend, tdx_obj_props

obj_props_handlers = {"sev": _gen_sev_obj_props, "tdx": _gen_tdx_obj_props}
Expand Down
4 changes: 4 additions & 0 deletions virttest/shared/cfg/base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,10 @@ uuid_dimm = ""
# Note: The following types are supported: sev
# Disable secure guest: vm_secure_guest_type[_vm1] = ""
#
# Set the secure guest object options, use a blank to join more options (optional)
# TODO: Currently this param is used for tdx guest object only
#vm_secure_guest_object_options[_vm1] = "debug=on mrconfigid=xx mrowner=yy"
#
# AMD SEV secure guest params
#
# Set the cbitpos, or specify per-vm values (required)
Expand Down
Loading