Tags: kata-containers/qemu
Tags
i386/tdx: Modify mwait/tsx settings to support new requirements Modify mwait/tsx enabling rules for TD guest as below: 1. Add HLE/RTM/MONITOR CPUID flags to tdx_fixed1 configuration, although adding the flags is not necessary per current design logics, this is to explictly tell the patch is to enable TSX/MWAIT support for TD guest. 2. Clear the HLE/RTM flags if platform is not enable to support them due to various reasons, e.g., some HW bugs. 3. Clear MONITOR/MWAIT flag if user doesn't add -overcommit cpu-pm=on option when launch TD guest. Per current TDX configuration, the flag in CPUID is always enabled even the option is omitted only if TDX module supports it. But this experience is not aligned with legacy guest case, so add the check to force the same usage. Signed-off-by: Yang Weijiang <[email protected]>
migration/cgs-tdx: fix a argument negative issue strerror() only accept a positive parameter for the errno. Reported by Coverity code scan. Signed-off-by: Chenyi Qiang <[email protected]>
target/i386: Fix wrong XSAVE feature names The previous patch changes the name from FEAT_XSAVE_COMP_{LO|HI} to FEAT_XSAVE_XCR0_{LO|HI}, the changes for CPUID.0x12.0x1 should be FEAT_XSAVE_XCR0_{LO|HI}, the SGX can't work in VM if these are not right Fixes: 301e906 ("target/i386: Enable support for XSAVES based features") Signed-off-by: Xiaocheng Dong <[email protected]>
i386/tdx: setup a timer for the qio channel To avoid no response from QGS server, setup a timer for the transaction. If timeout, make it an error and interrupt guest. Define the threshold of time to 30s at present, maybe change to other value if not appropriate. Extract the common cleanup code to make it more clear. Signed-off-by: Chenyi Qiang <[email protected]>
kvm: fix bug which causes SIMD kvm unit test failure Previous patch to fix ABI compatible issue only considers MOVDIR64B/ENQCMD(s) instructions which operand is 64B. But some other instructions, e.g. SIMD, have 16B operand or other length. So, the operand data is not correctly handled. Fix that. Fixes: 530a08658098 ("kvm: refine codes to make ABI compatible") Signed-off-by: Yi Sun <[email protected]>
PreviousNext