target-i386: Cleanup 'foo' feature handling
commit258f5abe9a8786c410f98367e9e042ee16c249f2
authorIgor Mammedov <imammedo@redhat.com>
Fri, 14 Dec 2012 00:16:00 +0000 (14 01:16 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 24 Dec 2013 12:47:25 +0000 (24 13:47 +0100)
tree390da8f8de5bfe525a5179e973459a1f16b5a622
parent912ffc479c0008bd983f5733daa52438b359be6f
target-i386: Cleanup 'foo' feature handling

Features check, enforce, hv_relaxed and hv_vapic are treated as boolean
set to 'on' when passed from command line, so it's not necessary to
handle each of them separately. Collapse them to one catch-all branch
which will treat any feature in format 'foo' as boolean set to 'on'.

Any unknown feature will be rejected by CPU property setter so there is no
need to check for unknown feature in cpu_x86_parse_featurestr(), therefore
it's replaced by above mentioned catch-all handler.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c