Thread (12 messages) 12 messages, 3 authors, 2025-05-01

Re: [PATCH v5 3/5] x86/tdx: Add tdx_mcall_extend_rtmr() interface

From: Dave Hansen <hidden>
Date: 2025-05-01 17:51:05
Also in: lkml

On 4/24/25 13:12, Cedric Xing wrote:
+	ret = __tdcall(TDG_MR_RTMR_EXTEND, &args);
+	if (ret) {
+		if (TDCALL_RETURN_CODE(ret) == TDCALL_INVALID_OPERAND)
+			return -ENXIO;
+		if (TDCALL_RETURN_CODE(ret) == TDCALL_OPERAND_BUSY)
+			return -EBUSY;
+		return -EIO;
+	}
This a pretty ugly switch statement. ;)

I assume there are more of these around, but it would be _nice_ if these
could eventually look like:

	...
	err = __tdcall(...);

	return tdx_err_to_errno(err);

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help