// SPDX-License-Identifier: GPL-2.0-only /* * AMD SVM-SEV command line parsing support * * Copyright (C) 2023 - 2024 Advanced Micro Devices, Inc. * * Author: Michael Roth */ #include #include #include #include struct sev_config sev_cfg __read_mostly; static int __init init_sev_config(char *str) { char *s; while ((s = strsep(&str, ","))) { if (!strcmp(s, "debug")) { sev_cfg.debug = true; continue; } pr_info("SEV command-line option '%s' was not recognized\n", s); } return 1; } __setup("sev=", init_sev_config);