-
- Downloads
KVM: x86: Save&restore interrupt shadow mask
The interrupt shadow created by STI or MOV-SS-like operations is part of the VCPU state and must be preserved across migration. Transfer it in the spare padding field of kvm_vcpu_events.interrupt. As a side effect we now have to make vmx_set_interrupt_shadow robust against both shadow types being set. Give MOV SS a higher priority and skip STI in that case to avoid that VMX throws a fault on next entry. Signed-off-by:Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
Showing
- Documentation/kvm/api.txt 10 additions, 1 deletionDocumentation/kvm/api.txt
- arch/x86/include/asm/kvm.h 6 additions, 1 deletionarch/x86/include/asm/kvm.h
- arch/x86/include/asm/kvm_emulate.h 0 additions, 3 deletionsarch/x86/include/asm/kvm_emulate.h
- arch/x86/kvm/emulate.c 2 additions, 2 deletionsarch/x86/kvm/emulate.c
- arch/x86/kvm/svm.c 1 addition, 1 deletionarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 4 additions, 4 deletionsarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 10 additions, 2 deletionsarch/x86/kvm/x86.c
- include/linux/kvm.h 1 addition, 0 deletionsinclude/linux/kvm.h
Loading
Please register or sign in to comment