diff options
| author | Bandan Das <bsd@redhat.com> | 2021-01-26 03:18:29 -0500 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-04 05:27:28 -0500 |
| commit | 82a11e9c6fa2b50a7fff542fb782359dc1eab6bf (patch) | |
| tree | 3afb28bded821eb651fa50340c3bccc4afe609d3 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | KVM: x86: Factor out x86 instruction emulation with decoding (diff) | |
| download | linux-82a11e9c6fa2b50a7fff542fb782359dc1eab6bf.tar.gz linux-82a11e9c6fa2b50a7fff542fb782359dc1eab6bf.zip | |
KVM: SVM: Add emulation support for #GP triggered by SVM instructions
While running SVM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD
CPUs check EAX against reserved memory regions (e.g. SMM memory on host)
before checking VMCB's instruction intercept. If EAX falls into such
memory areas, #GP is triggered before VMEXIT. This causes problem under
nested virtualization. To solve this problem, KVM needs to trap #GP and
check the instructions triggering #GP. For VM execution instructions,
KVM emulates these instructions.
Co-developed-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Bandan Das <bsd@redhat.com>
Message-Id: <20210126081831.570253-3-wei.huang2@amd.com>
[Conditionally enable #GP intercept. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
