]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
hvf: correctly inject VMCS_INTR_T_HWINTR versus VMCS_INTR_T_SWINTR.
authorCameron Esfahani <dirty@apple.com>
Mon, 2 Dec 2019 23:55:41 +0000 (15:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Dec 2019 08:11:42 +0000 (09:11 +0100)
commit64bef038e777208e4c35beae7f980fbd994b87eb
tree9ab8fa418b38c20013700ff8958e36c75f26d921
parent39032981fa851d25fb27527f25f046fed800e585
hvf: correctly inject VMCS_INTR_T_HWINTR versus VMCS_INTR_T_SWINTR.

Previous implementation in hvf_inject_interrupts() would always inject
VMCS_INTR_T_SWINTR even when VMCS_INTR_T_HWINTR was required.  Now
correctly determine when VMCS_INTR_T_HWINTR is appropriate versus
VMCS_INTR_T_SWINTR.

Make sure to clear ins_len and has_error_code when ins_len isn't
valid and error_code isn't set.

Signed-off-by: Cameron Esfahani <dirty@apple.com>
Message-Id: <bf8d945ea1b423786d7802bbcf769517d1fd01f8.1575330463.git.dirty@apple.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/hvf.c
target/i386/hvf/x86hvf.c