target/s390x/cpu_models: Allow some additional feature bits for the "qemu" CPU
commitfc7fbcbc4829563469fa33b68e6b771d455229ac
authorThomas Huth <thuth@redhat.com>
Thu, 25 May 2017 09:22:12 +0000 (25 11:22 +0200)
committerRichard Henderson <rth@twiddle.net>
Tue, 6 Jun 2017 21:34:32 +0000 (6 14:34 -0700)
treebc9f29d9cc206d70486fc651045c214513038382
parentd376f123c7de4cb82c743cb42421653aa305150e
target/s390x/cpu_models: Allow some additional feature bits for the "qemu" CPU

Currently we only present the plain z900 feature bits to the guest,
but QEMU already emulates some additional features (but not all of
the next CPU generation, so we can not use the next CPU level as
default yet). Since newer Linux kernels are checking the feature bits
and refuse to work if a required feature is missing, it would be nice
to have a way to present more of the supported features when we are
running with the "qemu" CPU.
This patch now adds the supported features to the "full_feat" bitmap,
so that additional features can be enabled on the command line now,
for example with:

 qemu-system-s390x -cpu qemu,stfle=true,ldisp=true,eimm=true,stckf=true

Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1495704132-5675-1-git-send-email-thuth@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/s390x/cpu_models.c