aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2023-04-28 09:36:09 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2023-04-28 09:36:09 -0700
commit7b664cc38ea7bdd5e3ce018bba98583741921bd4 (patch)
treeb7065facbbdf5b312bdd99a2bf67dff2fc9e0144 /arch/x86/boot
parentMerge tag 'x86_fpu_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
parentx86/tdx: Drop flags from __tdx_hypercall() (diff)
downloadlinux-7b664cc38ea7bdd5e3ce018bba98583741921bd4.tar.gz
linux-7b664cc38ea7bdd5e3ce018bba98583741921bd4.tar.bz2
linux-7b664cc38ea7bdd5e3ce018bba98583741921bd4.zip
Merge tag 'x86_tdx_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 tdx update from Dave Hansen: "The original tdx hypercall assembly code took two flags in %RSI to tweak its behavior at runtime. PeterZ recently axed one flag in commit e80a48bade61 ("x86/tdx: Remove TDX_HCALL_ISSUE_STI"). Kill the other flag too and tweak the 'output' mode with an assembly macro instead. This results in elimination of one push/pop pair and overall easier to read assembly. - Do conditional __tdx_hypercall() 'output' processing via an assembly macro argument rather than a runtime register" * tag 'x86_tdx_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/tdx: Drop flags from __tdx_hypercall()
Diffstat (limited to 'arch/x86/boot')
-rw-r--r--arch/x86/boot/compressed/tdx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/tdx.c b/arch/x86/boot/compressed/tdx.c
index 918a7606f53c..2d81d3cc72a1 100644
--- a/arch/x86/boot/compressed/tdx.c
+++ b/arch/x86/boot/compressed/tdx.c
@@ -26,7 +26,7 @@ static inline unsigned int tdx_io_in(int size, u16 port)
.r14 = port,
};
- if (__tdx_hypercall(&args, TDX_HCALL_HAS_OUTPUT))
+ if (__tdx_hypercall_ret(&args))
return UINT_MAX;
return args.r11;
@@ -43,7 +43,7 @@ static inline void tdx_io_out(int size, u16 port, u32 value)
.r15 = value,
};
- __tdx_hypercall(&args, 0);
+ __tdx_hypercall(&args);
}
static inline u8 tdx_inb(u16 port)