s390x/virtio: use qemu_check_nic_model()
commite11f463295d95abab631e236d28d7c886eacc8e1
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 15 Dec 2015 16:49:15 +0000 (15 17:49 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 13 Jan 2016 09:53:42 +0000 (13 10:53 +0100)
treee6215184c0d114696a6be6ac395e525143e4f8de
parentde37b0b87f9aee78a7181d9ca603e013e08b3f11
s390x/virtio: use qemu_check_nic_model()

Switching to the generally used interface changes the output of

s390x-softmmu/qemu-system-s390x -net nic,model=?

from

S390 only supports VirtIO nics

to the rather more useful

qemu: Supported NIC models: virtio

while still giving us a sensible error message for unsupported
models:

s390x-softmmu/qemu-system-s390x -net nic,model=foo
qemu-system-s390x: Unsupported NIC model: foo

Acked-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio.c