KVM: emulate: warn on invalid or uninitialized exception numbers
authorPaolo Bonzini <[email protected]>
Wed, 20 Aug 2014 08:08:23 +0000 (10:08 +0200)
committerPaolo Bonzini <[email protected]>
Wed, 20 Aug 2014 11:01:26 +0000 (13:01 +0200)
commite0ad0b477c36fde6b0923670647495d07bf42f94
tree36b2efe539ed3bffea8e923962bbbd0bf968da21
parent592f085847f4ea753586dfe6ce75ba37d5992a45
KVM: emulate: warn on invalid or uninitialized exception numbers

These were reported when running Jailhouse on AMD processors.

Initialize ctxt->exception.vector with an invalid exception number,
and warn if it remained invalid even though the emulator got
an X86EMUL_PROPAGATE_FAULT return code.

Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c