Skip to contentSkip to conversation

x86 VMCS guest interruptibility state save/load

Qemu-devel Hang Yuan 1 participant 2 messages Jul 30, 2019 – Aug 6, 2019 1 message not in the archive

lore
Share & tools
lore

Hang Yuan

author
#0 lore raw

Hello all,

When I read QEMU and KVM codes on saving/loading snapshot, I don't find the interruptibility state in x86 VMCS structure is saved and loaded in QEMU though KVM supports getting/setting this field from/into VMCS. (No "env.interrupt.shadow" in QEMU vmstate_x86_cpu.fields.) I understand it may cause guest-state error if this field is not restored but other registers or VMCS fields are restored. Do you think it's a valid issue?

Thanks,
Henry

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

In summary, sounds all non-register guest states in VMCS structure are not saved in snapshot. I don't understand why they don't need to save in snapshot and load from snapshot to construct VMCS. Does anyone have any idea?

Thanks,
Henry

Quoted 6 lines · Hang Yuan

Hello all,

When I read QEMU and KVM codes on saving/loading snapshot, I don't find the interruptibility state in x86 VMCS structure is saved and loaded in QEMU though KVM supports getting/setting this field from/into VMCS. (No "env.interrupt.shadow" in QEMU vmstate_x86_cpu.fields.) I understand it may cause guest-state error if this field is not restored but other registers or VMCS fields are restored. Do you think it's a valid issue?

Thanks,
Henry