mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Windows can access CRB registers with byte-sized writes and reads. The TPM device model used the byte offset as a u32 register index, which corrupted unaligned accesses and could expose invalid CRB state. Preserve the containing register on partial writes, read from the correct byte lane, allow exact-end buffer accesses. Assisted-by: Copilot:GPT-5.5 Signed-off-by: Wei Liu <liuwe@microsoft.com>