summary refs log tree commit diff stats
path: root/include/hw/boards.h
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2019-06-15 17:05:05 -0300
committerEduardo Habkost <ehabkost@redhat.com>2019-07-05 17:08:03 -0300
commit4f2beda4539a0e6665fca52c2bc37cca7fc792a3 (patch)
treeb6e31a13cf738b96c77e32d48e6da924e146d0a0 /include/hw/boards.h
parentfea306520ea4b2f189dd23c70a6afd2fc4ffafdc (diff)
downloadfocaccia-qemu-4f2beda4539a0e6665fca52c2bc37cca7fc792a3.tar.gz
focaccia-qemu-4f2beda4539a0e6665fca52c2bc37cca7fc792a3.zip
i386: Fix signedness of hyperv_spinlock_attempts
The current default value for hv-spinlocks is 0xFFFFFFFF (meaning
"never retry").  However, the value is stored as a signed
integer, making the getter of the hv-spinlocks QOM property
return -1 instead of 0xFFFFFFFF.

Fix this by changing the type of X86CPU::hyperv_spinlock_attempts
to uint32_t.  This has no visible effect to guest operating
systems, affecting just the behavior of the QOM getter.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190615200505.31348-1-ehabkost@redhat.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
0 files changed, 0 insertions, 0 deletions