[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/24] i386: adjust the expected KVM_GET_SUPPORTED_HV_CPUID array
From: |
Eduardo Habkost |
Subject: |
[PULL 19/24] i386: adjust the expected KVM_GET_SUPPORTED_HV_CPUID array size |
Date: |
Tue, 1 Jun 2021 14:10:09 -0400 |
From: Vitaly Kuznetsov <vkuznets@redhat.com>
SYNDBG leaves were recently (Linux-5.8) added to KVM but we haven't
updated the expected size of KVM_GET_SUPPORTED_HV_CPUID output in
KVM so we now make serveral tries before succeeding. Update the
default.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20210422161130.652779-13-vkuznets@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
target/i386/kvm/kvm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index 413f57df367..9005a4233f0 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -962,7 +962,8 @@ static struct kvm_cpuid2 *try_get_hv_cpuid(CPUState *cs,
int max)
static struct kvm_cpuid2 *get_supported_hv_cpuid(CPUState *cs)
{
struct kvm_cpuid2 *cpuid;
- int max = 7; /* 0x40000000..0x40000005, 0x4000000A */
+ /* 0x40000000..0x40000005, 0x4000000A, 0x40000080..0x40000080 leaves */
+ int max = 10;
int i;
/*
--
2.30.2
- [PULL 12/24] i386: introduce hyperv_feature_supported(), (continued)
- [PULL 12/24] i386: introduce hyperv_feature_supported(), Eduardo Habkost, 2021/06/01
- [PULL 14/24] i386: drop FEAT_HYPERV feature leaves, Eduardo Habkost, 2021/06/01
- [PULL 17/24] i386: move eVMCS enablement to hyperv_init_vcpu(), Eduardo Habkost, 2021/06/01
- [PULL 20/24] i386: prefer system KVM_GET_SUPPORTED_HV_CPUID ioctl over vCPU's one, Eduardo Habkost, 2021/06/01
- [PULL 21/24] i386: use global kvm_state in hyperv_enabled() check, Eduardo Habkost, 2021/06/01
- [PULL 16/24] i386: split hyperv_handle_properties() into hyperv_expand_features()/hyperv_fill_cpuids(), Eduardo Habkost, 2021/06/01
- [PULL 23/24] sev: use explicit indices for mapping firmware error codes to strings, Eduardo Habkost, 2021/06/01
- [PULL 15/24] i386: introduce hv_cpuid_cache, Eduardo Habkost, 2021/06/01
- [PULL 18/24] i386: switch hyperv_expand_features() to using error_setg(), Eduardo Habkost, 2021/06/01
- [PULL 24/24] sev: add missing firmware error conditions, Eduardo Habkost, 2021/06/01
- [PULL 19/24] i386: adjust the expected KVM_GET_SUPPORTED_HV_CPUID array size,
Eduardo Habkost <=
- [PULL 22/24] target/i386/sev: add support to query the attestation report, Eduardo Habkost, 2021/06/01
- Re: [PULL 00/24] x86 queue, 2021-06-01, Peter Maydell, 2021/06/02