]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-i386: Check for host features before filter_features_for_kvm()
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 2 Apr 2013 20:48:12 +0000 (17:48 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Apr 2013 19:01:33 +0000 (14:01 -0500)
commit46f9071a23385933e7318a7c1f540852689ee0ca
treefc8c20f63ff58f28d3fd2ccbc6a245d3839c1d4c
parentf85e082a3668dea5ca74759a314e284432f2d46b
target-i386: Check for host features before filter_features_for_kvm()

commit 5ec01c2e96910e1588d1a0de8609b9dda7618c7f broke "-cpu ..,enforce",
as it has moved kvm_check_features_against_host() after the
filter_features_for_kvm() call. filter_features_for_kvm() removes all
features not supported by the host, so this effectively made
kvm_check_features_against_host() impossible to fail.

This patch changes the call so we check for host feature support before
filtering the feature bits.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-id: 1364935692-24004-1-git-send-email-ehabkost@redhat.com
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit a509d632c877f7b5fa07368879b8ae5919a6d345)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-i386/cpu.c