aboutsummaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorAlexander Shishkin <[email protected]>2023-10-10 17:52:19 +0300
committerIngo Molnar <[email protected]>2023-10-11 10:15:47 +0200
commit6e74b125155dc8c747d76fb45d8e6d20e9e4fb4d (patch)
tree1c06f55d492e7cebcb31bd499e6724cdeb045e25 /drivers/cdx/controller/cdx_controller.c
parentc9babd5d95abf3fae6e798605ce5cac98e08daf9 (diff)
x86/sev: Move sev_setup_arch() to mem_encrypt.c
Since commit: 4d96f9109109b ("x86/sev: Replace occurrences of sev_active() with cc_platform_has()") ... the SWIOTLB bounce buffer size adjustment and restricted virtio memory setting also inadvertently apply to TDX: the code is using cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) as a gatekeeping condition, which is also true for TDX, and this is also what we want. To reflect this, move the corresponding code to generic mem_encrypt.c. No functional changes intended. Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions