- slow_path.c: KEY_MISS -> PCKC re-derive (retry OK); EPOCH -> refresh cap epoch via out_cap (retry OK); STALE_CAP permanent; MAC_FAILED/POISONED -> PCKC invalidate + DRR fault report; RETRY passthrough - status.h: add UTSM_ERR_MAC_FAILED (-11); utrw.h: slow path takes cap/rights/offset/len/reason + out_cap - selftest: EPOCH refresh + KEY_MISS re-derive + POISONED passthrough coverage, full SELFTEST PASS in QEMU (.build_tmp/qemu_serial_u2slowpath.log)
20 lines
454 B
C
20 lines
454 B
C
#ifndef UTSM_STATUS_H
|
|
#define UTSM_STATUS_H
|
|
|
|
typedef enum {
|
|
UTSM_OK = 0,
|
|
UTSM_ERR_INVALID = -1,
|
|
UTSM_ERR_NO_MEMORY = -2,
|
|
UTSM_ERR_ACCESS = -3,
|
|
UTSM_ERR_BOUNDS = -4,
|
|
UTSM_ERR_STALE_CAP = -5,
|
|
UTSM_ERR_EPOCH = -6,
|
|
UTSM_ERR_KEY_MISS = -7,
|
|
UTSM_ERR_STATE = -8,
|
|
UTSM_ERR_POISONED = -9,
|
|
UTSM_ERR_RETRY = -10,
|
|
UTSM_ERR_MAC_FAILED = -11 /* U2: 页 MAC 校验失败(slow path 处置) */
|
|
} utsm_status;
|
|
|
|
#endif
|