diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2020-05-15 13:48:47 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-09-18 13:49:54 -0400 |
commit | f701c082e72d4786686dfd1d9d877b64dc1d2804 (patch) | |
tree | 46c8fbd06b4942b1b10236bdaa764aac40da72e2 /target/i386/cpu.c | |
parent | 053a4177817db307ec854356e95b5b350800a216 (diff) | |
download | qemu-f701c082e72d4786686dfd1d9d877b64dc1d2804.zip qemu-f701c082e72d4786686dfd1d9d877b64dc1d2804.tar.gz qemu-f701c082e72d4786686dfd1d9d877b64dc1d2804.tar.bz2 |
i386/kvm: correct the meaning of '0xffffffff' value for hv-spinlocks
Hyper-V TLFS prior to version 6.0 had a mistake in it: special value
'0xffffffff' for CPUID 0x40000004.EBX was called 'never to retry', this
looked weird (like why it's not '0' which supposedly have the same effect?)
but nobody raised the question. In TLFS version 6.0 the mistake was
corrected to 'never notify' which sounds logical. Fix QEMU accordingly.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200515114847.74523-1-vkuznets@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386/cpu.c')
-rw-r--r-- | target/i386/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 49d8958..37725bd 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -7263,7 +7263,7 @@ static Property x86_cpu_properties[] = { DEFINE_PROP_BOOL("pmu", X86CPU, enable_pmu, false), DEFINE_PROP_UINT32("hv-spinlocks", X86CPU, hyperv_spinlock_attempts, - HYPERV_SPINLOCK_NEVER_RETRY), + HYPERV_SPINLOCK_NEVER_NOTIFY), DEFINE_PROP_BIT64("hv-relaxed", X86CPU, hyperv_features, HYPERV_FEAT_RELAXED, 0), DEFINE_PROP_BIT64("hv-vapic", X86CPU, hyperv_features, |