s390x/s390-skeys: Mark the storage key devices with user_creatable = false
commit574ee06de9c4fe63c90be90dc9c747fc9382bb2b
authorThomas Huth <thuth@redhat.com>
Thu, 24 Aug 2017 10:08:48 +0000 (24 12:08 +0200)
committerCornelia Huck <cohuck@redhat.com>
Wed, 30 Aug 2017 16:23:25 +0000 (30 18:23 +0200)
treea8db804e65e435ae249401fa42daf143f4c5109c
parent1ecb285dc9333ebbf1b32b55d03650414fbdbe41
s390x/s390-skeys: Mark the storage key devices with user_creatable = false

QEMU currently aborts if the user tries to create a skey device:

$ s390x-softmmu/qemu-system-s390x -nographic -device s390-skeys-qemu
qemu-system-s390x: hw/s390x/s390-skeys.c:30: s390_get_skeys_device:
 Assertion `ss' failed.
Aborted (core dumped)

The storage key devices are only meant to be instantiated one time,
internally. They can not be used by the user, so mark them with
user_creatable = false.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1503569328-22197-1-git-send-email-thuth@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-skeys-kvm.c
hw/s390x/s390-skeys.c