diff options
author | Oliver Upton <[email protected]> | 2020-04-14 22:47:45 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2020-04-15 12:08:35 -0400 |
commit | b045ae906b42afb361dc7ecf1a3cea110fb0a65f (patch) | |
tree | 45334ed7633cd79deece32df67ece2f106487b9b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 97daa028f3f621adff2c4f7b15fe0874e5b5bd6c (diff) |
kvm: nVMX: reflect MTF VM-exits if injected by L1
According to SDM 26.6.2, it is possible to inject an MTF VM-exit via the
VM-entry interruption-information field regardless of the 'monitor trap
flag' VM-execution control. KVM appropriately copies the VM-entry
interruption-information field from vmcs12 to vmcs02. However, if L1
has not set the 'monitor trap flag' VM-execution control, KVM fails to
reflect the subsequent MTF VM-exit into L1.
Fix this by consulting the VM-entry interruption-information field of
vmcs12 to determine if L1 has injected the MTF VM-exit. If so, reflect
the exit, regardless of the 'monitor trap flag' VM-execution control.
Fixes: 5f3d45e7f282 ("kvm/x86: add support for MONITOR_TRAP_FLAG")
Signed-off-by: Oliver Upton <[email protected]>
Reviewed-by: Peter Shier <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions