OSDN Git Service

target/i386: Added VGIF feature
authorLara Lazier <laramglazier@gmail.com>
Fri, 30 Jul 2021 07:07:42 +0000 (09:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Sep 2021 11:56:26 +0000 (13:56 +0200)
commit900eeca579a87011b701e523b15069e9d23b19cf
tree5469a7262c596467ceb91db7852461b7783ae36e
parent97afb47e1509198bed58498358adc9b0fe6b0d75
target/i386: Added VGIF feature

VGIF allows STGI and CLGI to execute in guest mode and control virtual
interrupts in guest mode.
When the VGIF feature is enabled then:
 * executing STGI in the guest sets bit 9 of the VMCB offset 60h.
 * executing CLGI in the guest clears bit 9 of the VMCB offset 60h.

Signed-off-by: Lara Lazier <laramglazier@gmail.com>
Message-Id: <20210730070742.9674-1-laramglazier@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/svm.h
target/i386/tcg/sysemu/svm_helper.c