Function report |
Source Code:arch\x86\kernel\cpu\bugs.c |
Create Date:2022-07-28 07:56:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:spectre_v2_parse_cmdline
Proto:static enum spectre_v2_mitigation_cmd __init spectre_v2_parse_cmdline(void)
Type:enum spectre_v2_mitigation_cmd
Parameter:Nothing
| 715 | cmd = SPECTRE_V2_CMD_AUTO |
| 719 | If cmdline_find_option_bool(boot_command_line, "nospectre_v2") || cpu_mitigations_off() Then Return SPECTRE_V2_CMD_NONE |
| 723 | ret = cmdline_find_option(boot_command_line, "spectre_v2", arg, size of arg ) |
| 724 | If ret < 0 Then Return SPECTRE_V2_CMD_AUTO |
| 736 | Return SPECTRE_V2_CMD_AUTO |
| 744 | Return SPECTRE_V2_CMD_AUTO |
| 747 | If cmd == SPECTRE_V2_CMD_RETPOLINE_AMD && CPU vendor != X86_VENDOR_HYGON && CPU vendor != X86_VENDOR_AMD Then |
| 750 | pr_err("retpoline,amd selected but CPU is not AMD. Switching to AUTO select\n") |
| 751 | Return SPECTRE_V2_CMD_AUTO |
| 754 | spec_v2_print_cond(option, secure) |
| 756 | Return cmd |
| Name | Describe |
|---|---|
| spectre_v2_select_mitigation |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |