]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Enable NPT and NRIPSAVE for AMD CPUs
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 21 Jan 2019 15:50:51 +0000 (16:50 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 28 Jan 2019 17:51:54 +0000 (15:51 -0200)
commit9fe8b7be17eaac4cfde4083000cc96747d7cf4f8
tree8fbf6c17b7711fc5588fa6550ddd2b0b550fce9b
parentb0a1980384fc265d91de7e09aa5fe531a69e6288
i386: Enable NPT and NRIPSAVE for AMD CPUs

Modern AMD CPUs support NPT and NRIPSAVE features and KVM exposes these
when present. NRIPSAVE apeared somewhere in Opteron_G3 lifetime (e.g.
QuadCore AMD Opteron 2378 has is but QuadCore AMD Opteron HE 2344 doesn't),
NPT was introduced a bit earlier.

Add the FEAT_SVM leaf to Opteron_G4/G5 and EPYC/EPYC-IBPB cpu models.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20190121155051.5628-1-vkuznets@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
target/i386/cpu.c