]> git.proxmox.com Git - mirror_qemu.git/commit
i386: make 'hv-spinlocks' a regular uint32 property
authorRoman Kagan <rkagan@virtuozzo.com>
Tue, 18 Jun 2019 11:07:06 +0000 (11:07 +0000)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:08:03 +0000 (17:08 -0300)
commit915aee93e7fc54c272872b28630e7423252d05ca
tree6654576208c2c02ef8e532ad63e9eae3664fb650
parent4f2beda4539a0e6665fca52c2bc37cca7fc792a3
i386: make 'hv-spinlocks' a regular uint32 property

X86CPU.hv-spinlocks is a uint32 property that has a special setter
validating the value to be no less than 0xFFF and no bigger than
UINT_MAX.  The latter check is redundant; as for the former, there
appears to be no reason to prohibit the user from setting it to a lower
value.

So nuke the dedicated getter/setter pair and convert 'hv-spinlocks' to a
regular uint32 property.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20190618110659.14744-1-rkagan@virtuozzo.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c