target/i386: svm: do not discard high 32 bits of EXITINFO1
commit687758565ab39028f7310c30355a765f171ff1bf
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Mar 2021 14:02:06 +0000 (18 10:02 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Mar 2021 12:48:18 +0000 (19 08:48 -0400)
tree6dceb5deb51f951c07b00e0cd66e1537b6299b40
parentda3f3b020f5346f59c30241ff6f3da60be87ed78
target/i386: svm: do not discard high 32 bits of EXITINFO1

env->error_code is only 32-bits wide, so the high 32 bits of EXITINFO1
are being lost.  However, even though saving guest state and restoring
host state must be delayed to do_vmexit, because they might take tb_lock,
it is always possible to write to the VMCB.  So do this for the exit
code and EXITINFO1, just like it is already being done for EXITINFO2.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/helper-tcg.h
target/i386/tcg/seg_helper.c
target/i386/tcg/svm_helper.c