mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/arm/kvm64: max cpu: Enable SVE when available
Enable SVE in the KVM guest when the 'max' cpu type is configured and KVM supports it. KVM SVE requires use of the new finalize vcpu ioctl, so we add that now too. For starters SVE can only be turned on or off, getting all vector lengths the host CPU supports when on. We'll add the other SVE CPU properties in later patches. Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> Reviewed-by: Beata Michalska <beata.michalska@linaro.org> Message-id: 20191031142734.8590-7-drjones@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
40b3fd21fb
commit
14e99e0fbb
5 changed files with 69 additions and 4 deletions
|
@ -51,6 +51,11 @@ int kvm_arm_vcpu_init(CPUState *cs)
|
|||
return kvm_vcpu_ioctl(cs, KVM_ARM_VCPU_INIT, &init);
|
||||
}
|
||||
|
||||
int kvm_arm_vcpu_finalize(CPUState *cs, int feature)
|
||||
{
|
||||
return kvm_vcpu_ioctl(cs, KVM_ARM_VCPU_FINALIZE, &feature);
|
||||
}
|
||||
|
||||
void kvm_arm_init_serror_injection(CPUState *cs)
|
||||
{
|
||||
cap_has_inject_serror_esr = kvm_check_extension(cs->kvm_state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue