s390x/s390-virtio-hcall: prepare for more diag500 hypercalls
authorDavid Hildenbrand <david@redhat.com>
Thu, 19 Dec 2024 14:41:04 +0000 (15:41 +0100)
committerDavid Hildenbrand <david@redhat.com>
Sat, 21 Dec 2024 14:59:59 +0000 (15:59 +0100)
commit6e9cc2da4e8b997fd6ff3249034f436b84fc7974
treee607689a3d8aedeba47a620b8798a8a93c0bf1d5
parent4be0fce498d0a08f18b3a9accdb9ded79484d30a
s390x/s390-virtio-hcall: prepare for more diag500 hypercalls

Let's generalize, abstracting the virtio bits. diag500 is now a generic
hypercall to handle QEMU/KVM specific things. Explicitly specify all
already defined subcodes, including legacy ones (so we know what we can
use for new hypercalls).

Move the PGM_SPECIFICATION injection into the renamed function
handle_diag_500(), so we can turn it into a void function.

We'll rename the files separately, so git properly detects the rename.

Message-ID: <20241219144115.2820241-4-david@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
hw/s390x/s390-virtio-hcall.c
hw/s390x/s390-virtio-hcall.h
target/s390x/kvm/kvm.c
target/s390x/tcg/misc_helper.c