aboutsummaryrefslogtreecommitdiff
path: root/target/s390x/machine.c
diff options
context:
space:
mode:
authorWei Huang <wei.huang2@amd.com>2021-01-26 14:24:56 -0600
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-08 14:43:54 +0100
commit5447089c2b3b084b51670af36fc86ee3979e04be (patch)
tree1efbe8b7df78168638b603ca66ea6909b06737fd /target/s390x/machine.c
parentc518d6c2bffdef9d98177dba7f25d5cb4193822e (diff)
x86/cpu: Populate SVM CPUID feature bits
Newer AMD CPUs will add CPUID_0x8000000A_EDX[28] bit, which indicates that SVM instructions (VMRUN/VMSAVE/VMLOAD) will trigger #VMEXIT before CPU checking their EAX against reserved memory regions. This change will allow the hypervisor to avoid intercepting #GP and emulating SVM instructions. KVM turns on this CPUID bit for nested VMs. In order to support it, let us populate this bit, along with other SVM feature bits, in FEAT_SVM. Signed-off-by: Wei Huang <wei.huang2@amd.com> Message-Id: <20210126202456.589932-1-wei.huang2@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/s390x/machine.c')
0 files changed, 0 insertions, 0 deletions