Commit b060ca3
kvm: vmx: Handle VMLAUNCH/VMRESUME failure properly
On an early VMLAUNCH/VMRESUME failure (i.e. one which sets the
VM-instruction error field of the current VMCS), the launch state of
the current VMCS is not set to "launched," and the VM-exit information
fields of the current VMCS (including IDT-vectoring information and
exit reason) are stale.
On a late VMLAUNCH/VMRESUME failure (i.e. one which sets the high bit
of the exit reason field), the launch state of the current VMCS is not
set to "launched," and only two of the VM-exit information fields of
the current VMCS are modified (exit reason and exit
qualification). The remaining VM-exit information fields of the
current VMCS (including IDT-vectoring information, in particular) are
stale.
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 7881f96 commit b060ca3
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9424 | 9424 | | |
9425 | 9425 | | |
9426 | 9426 | | |
9427 | | - | |
9428 | | - | |
9429 | | - | |
9430 | | - | |
9431 | | - | |
9432 | | - | |
9433 | 9427 | | |
9434 | 9428 | | |
9435 | 9429 | | |
| |||
9451 | 9445 | | |
9452 | 9446 | | |
9453 | 9447 | | |
| 9448 | + | |
| 9449 | + | |
| 9450 | + | |
| 9451 | + | |
| 9452 | + | |
| 9453 | + | |
| 9454 | + | |
| 9455 | + | |
9454 | 9456 | | |
9455 | 9457 | | |
9456 | 9458 | | |
| |||
0 commit comments